Miraheze will stop using SiteMatrix but wikistats pulls data for the Miraheze table from it (the list of public wikis).
It needs to be switched to use
https://meta.miraheze.org/w/api.php?action=wikidiscover
code is at usr/local/bin/wikistats/import_miraheze.php in the wikistats repo