onOffice-Web-Org / oo-wp-plugin

onOffice for WP-Websites
https://wp-plugin.onoffice.com
GNU General Public License v3.0
9 stars 9 forks source link

Improve the Plugins consistency - Ensuring database cleanup on Plugin uninstallation #827

Open fredericalpers opened 4 months ago

fredericalpers commented 4 months ago

Improve the Plugins consistency - Ensuring database cleanup on Plugin uninstallation

Introduction

Some data remains in the database, although it should actually be deleted when the plugin is uninstalled.

User Story

As a WordPress site owner, when I uninstall a plugin, I expect that it will not leave behind any unnecessary data in my database. Thins includes custom tables and entries that the plugin may have created or modified during its installation and usage. By ensuring a thorough clean up, my database remains optimized, reducing potential performance issues and conflicts with other plugins or future installations.

Requirements / Tasks

Design / Screenshots

database

dai-eastgate commented 3 months ago

@fredericalpers I have checked and listed the fields and tables related to the onOffice plugin that need to be deleted after uninstalling the plugin

After implementation, these tables and fields can be deleted after uninstalling the Plugin. Here is video evidence: https://files.fm/u/e7bw5kpecj#/view/gd84p5sp7v Please check and let me know your opinion. Thanks!

fredericalpers commented 3 months ago

@dai-eastgate all tables/fields seem to be deleted after uninstalling the plugin. Thank you, we will review this as soon as possible. :)