Describe the bug
During the runtime check process, our plugin installs new database tables for testing purposes. These tables are intended to be removed in the Runtime_Environment_Setup::clean_up method. However, in certain cases, such as when encountering conflicts with other plugins (e.g., Elementor), the tables are created but not removed.
Additionally, when a user deactivates our plugin, the tables remain in the database, leading to potential orphaned tables and unnecessary data.
To address this, we propose implementing a solution to remove these testing tables during the plugin uninstallation process. This will ensure proper cleanup and prevent any lingering database artifacts.
We suggest the following steps to resolve this issue:
@jjgrainger @felixarntz @joemcgill Please share your thoughts and suggestions regarding this approach.
WDYT?
Steps to Reproduce
- Clone the plugin code to your local system.
- Set up a local WordPress installation.
- Install and activate the Elementor plugin from the WordPress repository.
- In the WordPress admin area, navigate to "Tools" > "Plugin Check."
- Select "Elementor" from the dropdown menu on the Plugin Check page.
- Open the developer tools in your web browser and switch to the "Network" tab.
- Click on the "Check it!" button on the Plugin Check page.
- Monitor the network requests in the developer tools and wait for an error in the Ajax request.
- Upon encountering the error, note that the DB table is created.
- Deactivate the Plugin Check plugin.
- Access the WordPress database.
- Verify the presence of the DB table related to the Plugin Check plugin.
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct
Describe the bug
During the runtime check process, our plugin installs new database tables for testing purposes. These tables are intended to be removed in the
Runtime_Environment_Setup::clean_upmethod. However, in certain cases, such as when encountering conflicts with other plugins (e.g., Elementor), the tables are created but not removed.Additionally, when a user deactivates our plugin, the tables remain in the database, leading to potential orphaned tables and unnecessary data.
To address this, we propose implementing a solution to remove these testing tables during the plugin uninstallation process. This will ensure proper cleanup and prevent any lingering database artifacts.
We suggest the following steps to resolve this issue:
@jjgrainger @felixarntz @joemcgill Please share your thoughts and suggestions regarding this approach.
WDYT?
Steps to Reproduce
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct