Linux 软件免费装
Banner图

CodeCaste Database Cleaner & Optimizer

开发者 codecaste
更新时间 2026年10月27日 22:06
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

optimization database cleanup health transients

下载

1.0.0

详情介绍:

CodeCaste Database Cleaner & Optimizer is a WordPress database analysis and cleanup plugin designed to help administrators identify database bloat, unnecessary records, oversized tables, orphaned data and other potential database issues. The plugin follows a strict workflow: Scan → Analyze → Review → Clean. Scanning never modifies your data. Every cleanup action requires explicit administrator confirmation and runs in safe, batched steps so it works reliably even on large databases. Included Scanners Potentially orphaned records are always clearly labeled as potentially orphaned so you can review them before cleanup. Settings (explained simply) Open DB Optimizer → Settings. Every option has a "What does this mean? (example)" link that explains it in plain language. After changing a value, click Save Settings and then Scan Database again so the Cleanup list uses your new value. Cleanup Batch Size (default 500, range 50–5,000) Cleaning a large database in one go can overload your server, so the plugin cleans in small steps ("batches"). This number is how many records are removed in each step. It does not limit the total – the plugin keeps going until everything eligible is cleaned. Example: you have 10,000 expired transients. Not sure? Leave it at 500. Lower it only if cleanup shows an error or times out. Revisions to Keep (default 5, range 0–50) Every time you click Update on a post or page, WordPress saves an old copy called a revision. This setting is how many of the newest revisions are kept for each post. Older ones become eligible for cleanup. Example: the post "About Us" has 30 revisions. Action Scheduler Retention (days) (default 30, range 1–365) Plugins such as WooCommerce use a background task system called Action Scheduler (emails, syncing, subscription renewals and so on). Each task leaves a record behind, even after it has finished, and on busy stores these records can grow to hundreds of thousands of rows. This setting is how many days finished, failed or cancelled task records are kept before they can be cleaned. Tasks that are still waiting to run are never touched. It only applies when Action Scheduler exists on your site. Example: today is 30 September. One finished task ran on 5 September (25 days ago) and another on 10 August (51 days ago). Scan History – keeps a record of every scan (date, size, score, issues, duration) on the History tab. Active Scanners – switch off any scanner you do not want included in a scan. Safety Database Health Score The dashboard shows a simple 0–100 health score based on autoloaded data, table sizes, expired transients, revisions, orphaned metadata and Action Scheduler buildup. This score is an indicator, not an absolute technical measurement — large legitimate tables (for example WooCommerce order tables) are not automatically treated as unhealthy.

安装:

  1. Upload the codecaste-database-cleaner-optimizer folder to /wp-content/plugins/, or install the zip via Plugins → Add New → Upload Plugin.
  2. Activate the plugin.
  3. Take a database backup (recommended before any cleanup).
  4. Go to DB Optimizer in the admin menu and click Scan Database. Results appear straight away under Cleanup Items.
  5. Review each item, then click Clean on a single item, or Optimize All, and confirm.

屏幕截图:

  • Database Tables scanner listing possible leftover tables from removed plugins.
  • Settings for batch size, revisions to keep, Action Scheduler retention, and active scanners.

升级注意事项:

1.0.0 Initial release.

常见问题:

Will this plugin delete anything automatically?

No. Scanning never modifies data, and cleanup only runs after you explicitly review and confirm an action.

Why is a table from an installed plugin not shown as an orphan?

Database Tables is intended to find leftover tables from components that have been removed from the site. The scanner therefore inspects every currently installed plugin and theme, not only active components. This means a plugin that is installed but inactive can still have its custom database table protected from the orphan list. The scanner invalidates its source cache when the installed plugin/theme inventory or the current database table set changes, so a newly installed plugin or a newly created custom table is not hidden behind an older 30-minute cache.

How does the scanner detect a custom plugin table?

The scanner checks current installed component source for WordPress table-prefix patterns, CREATE TABLE definitions, exact table identifiers, custom database/table prefixes, and matching unprefixed table identifiers. It also keeps historical ownership information from earlier scans so a table can still be attributed after its plugin has been removed. Because WordPress/MySQL does not store a universal creator field for arbitrary custom tables, the feature is intentionally described as possible orphan detection rather than absolute proof.

I ran a scan and "Items to Clean" shows a number. Where are the items?

They are listed under Cleanup Items, right below the stat cards.

Why did nothing change after I edited a setting?

Settings apply to the next scan. Click Scan Database again to refresh the list.

Does this support multisite?

The initial release targets standard single-site WordPress installs. Multisite support is planned for a future release since network and site-specific tables require additional handling.

What happens to my data if I uninstall the plugin?

Deactivating the plugin leaves all of your WordPress data, plugin settings, and scan history untouched. Deleting the plugin from the Plugins screen removes only the plugin's own settings and scan-history records — it never touches your posts, comments, users, or other plugins' data.

更新日志:

1.0.0