Any chance you can make the core file scan/restore to defaults a CRON job option so it is just automatic?
Sorry for my extremely late reply, I didn’t get any notification of any posts around this time and I have been preoccupied with my grandson’s urgent care.
I have been working on a script that can be run server-side to check the core files but it is still in the testing phase and I haven’t had time to work on it lately. There is no part of my plugin that can run independently from WordPress at this time however I am also working on a scheduled scan feature that will tie into a future release of my plugin.