No cleanup on plugin deactivation
-
Hi! I liked your plugin, though it should be a bit more explicit about disclosing use of fulltext indexes on the database, as they can become a big (literally) issue on a larger site. Those indexes can easily double the disk space required for your database to work. If you know that going in, thats one thing, but if people are not doing a code review before installing this, they can be in for a nasty surprise.
But the main issue is that this plugin does not clean up after itself. There is no uninstall/deactivation hook that would remove the indexes it creates. This means that even after you remove the plugin, your database still have those big indexes in it. Please add a deactivation hook that would call
crp_delete_index()
when the plugin is deactivated. Your plugin’s (former) users will be very grateful.
- The topic ‘No cleanup on plugin deactivation’ is closed to new replies.