Cleanup runtime testing database tables during uninstallation
维护者通常 1 天内回复
还没有人认领这个 Issue。
- #1416 来自 @faisalahammad —— 已关闭,未合并
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
调研方向
从 Runtime_Environment_Setup::clean_up 和插件的卸载处理开始。使用 Elementor 重现失败的运行时检查,然后验证测试数据库表在冲突发生后以及插件卸载时都会被移除。
由索引模型根据 Issue 内容生成。
描述
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
- I agree to follow this project's Code of Conduct
- 主要语言
- PHP
- 星标
- 365
- 派生
- 135
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 20
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
WordPress/plugin-check 的其他 Issue
-
False positive trademarked_term warning for "wc" inside the word "Flowchart"可能已有人在做 @anandrajaram21 于 3 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
WordPress/plugin-check#1556 · 1 条评论 ·
维护者通常 1 天内回复
-
Add opt-in .distignore exclusions for local and CI scans可能已有人在做 @jakaria-istauk 于 1 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 42/100
WordPress/plugin-check#1559 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 58/100
WordPress/plugin-check#1557 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
WordPress/plugin-check#1555 · 1 条评论 ·
维护者通常 1 天内回复
-
PHPErrorReportingSniff flags debug constants used as values in const declarations可能已有人在做 @elphizu 于 7 天前认领。 未关闭
难度 3/5 半天 新手友好度 35/100
WordPress/plugin-check#1553 ·
维护者通常 1 天内回复
查看 WordPress/plugin-check 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
quantum-php/project#222 ·
-
support
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
15.0
难度 2/5 1-3 小时 新手友好度 66/100
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
mailcow/mailcow-dockerized#7717 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
mage-os/devdocs-website#75 ·