• The plugin does not clean up after itself upon uninstall. It leaves the following field in the options table: wpephpcompat.scan_results.

    Please have the plugin delete all its data on uninstall, in order to be a good WordPress citizen.

    When plugins leave unnecessary junk in the database, that’s how it gets bloated and slows down websites.

    Also, the plugin really needs a way to clear its data between scans, either manually (via a button in the settings) or automatically. Thank you.

    – Scott

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Jason Stallings

    (@octalmage)

    Hi Scott,

    All add a clear data button next to the run button. I feel like this is better than a deactivation hook. Thanks for the recommendation!

    Thread Starter redsand

    (@redsand)

    Hi Jason,

    A clear data button would be great.

    But…It still needs to clear its data on uninstall though, otherwise it can be party to bloating a website owner’s WordPress database. Every plugin that is no longer used leaves data remnants, and it adds up fast. That can contribute to significant slowdowns and scalability issues. Too many plugins still don’t clean up after themselves.

    You would want to clean up data on uninstall, not deactivation, so a deactivation hook wouldn’t do the job anyway. Currently the best way to do this is with an uninstall.php file, not the uninstall hook, because the uninstall.php runs only what is necessary, and is generally considered the cleanest way to do this by plugin developers.

    No problem.

    – Scott

    Hi Scott, When will the next version be available? We really need the Clear All and complete removal upon uninstall.

    Thanks,
    Van

    Plugin Contributor Jason Stallings

    (@octalmage)

    The update is up for review here:

    https://github.com/wpengine/phpcompat/pull/93

    It should be out within a week or two.

    Plugin Contributor Jason Stallings

    (@octalmage)

    v1.3.2 is out and it includes a fix for this. Thanks for the suggestion!

    Thread Starter redsand

    (@redsand)

    @octalmage

    Thanks for the improvements. I can confirm that as of v 1.4.0, it does delete the results on uninstall. So that’s good.

    And, the “Clear results” link is a good addition, although it really should be a bit more prominent…most likely a button.

    It still does leave a couple stray options in the DB though: wpephpcompat.test_version and wpephpcompat.only_active, so please fix that.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugin Doesn’t Delete DB Data on Uninstall – Has to Be Deleted Manually’ is closed to new replies.