🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Database Cleaner & Optimizer by CodeCaste icon
Actively maintained Tested with WP 7.1

Database Cleaner & Optimizer by CodeCaste

Find out what's making your WordPress database large, identify potentially unnecessary data, and safely clean it after review.

Active installs<10New
Downloads · 30d132▼ -65% vs prev. 30d
Rating—0 reviews
Health score64/100Good
All-time downloads505Since Oct 2026
Support resolved—No recent threads
RequiresWP 6.2PHP 7.4+
Downloads · 7d73▲ 3.3× week over week
Our verdict

Solid choice

Database Cleaner & Optimizer by… is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 1 week ago, and scores 64/100 on our health check.

  • Actively developed — last update 1 week ago
  • Tested with the latest WordPress (7.1)
  • Small user base (<10 active installs)
  • Very few reviews so far

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

3469104Oct 2Nov 1Dec 1
Yesterday4
Daily average (1y)8
Peak day139Oct 6, 2026
Last 12 months511

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Database Cleaner & Optimize… stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
cleanup >100 7,089 Best cleanup plugins →
database >100 10,000 Best database plugins →
health >100 3,621 Best health plugins →
optimization >100 5,750 Best optimization plugins →
transients >100 3,622 Best transients plugins →

About Database Cleaner & Optimizer by CodeCas…

From the official readme · v1.0.1

Description

Database Cleaner & Optimizer by CodeCaste 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

  • Autoloaded Options – total autoloaded option data and the largest individual options. A large autoload size is worth reviewing, but is not automatically unsafe.
  • Expired Transients – transient records that have already expired and are safe to remove.
  • Post Revisions – stored revisions beyond a configurable number of most-recent revisions to keep per post.
  • Auto-Drafts – abandoned auto-draft posts older than a day.
  • Orphaned Post Meta – postmeta rows whose post no longer exists.
  • Orphaned Term Meta – termmeta rows whose term no longer exists.
  • Orphaned Comment Meta – commentmeta rows whose comment no longer exists.
  • Action Scheduler Records – when Action Scheduler is present (e.g. via WooCommerce), old completed, failed and canceled actions.

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.

  • Batch size 500 → 20 steps of 500 records (the default, fine for most sites).
  • Batch size 100 → 100 smaller steps. Slower overall, but gentler on cheap shared hosting.
  • Batch size 2,000 → 5 big steps. Faster, but only use this on a strong server.

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.

  • Keep 5 → the 5 newest are kept, 25 older ones can be cleaned (default).
  • Keep 10 → the 10 newest are kept, 20 can be cleaned.
  • Keep 0 → all 30 can be cleaned. You will no longer be able to restore earlier versions of that post.

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).

  • Retention 30 days → only the 10 August task can be cleaned (default).
  • Retention 7 days → both tasks can be cleaned.
  • Retention 90 days → neither can be cleaned yet; you keep a longer log for troubleshooting.

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

  • Scanning never deletes data.
  • Every destructive operation requires explicit confirmation.
  • Cleanup endpoints never trust client-supplied record IDs; scanners derive eligible records from live database queries.
  • Database-table deletion requires the exact table name and a fresh reference scan immediately before the DROP TABLE operation.
  • Plugin, theme, must-use plugin, and WordPress content/drop-in PHP sources are checked for common table references.
  • Large cleanup operations use configurable batch processing to avoid PHP timeouts.
  • All queries use the WordPress database API with prepared statements.
  • All admin actions are protected by capability checks and nonces.
  • The plugin never automatically deletes active plugin or theme data, and never performs automatic optimization.

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.

How it works

  • Cleanup Items – everything the scan found, with record count and estimated size. Items that are already clean show a green tick.
  • Database Tables – custom WordPress-prefixed tables that appear to be left behind by plugins or themes that are no longer installed. Tables belonging to any currently installed plugin/theme (active or inactive) are excluded. Deleting requires typing the exact table name.
  • History – the results of past scans.
  • Settings – the options described above.

Installation

  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.

Changelog

Plugin display name updated for consistent CodeCaste branding.

1.0.1

  • Renamed plugin to “Database Cleaner & Optimizer by CodeCaste” for consistent branding across CodeCaste plugins.

1.0.0

  • Initial release.
  • Scanners for database & table size, autoloaded options, expired transients, post revisions, auto-drafts, orphaned post/term/comment meta, and Action Scheduler records.
  • Single-page dashboard with health score, stat cards, and a tabbed Cleanup Items / Database Tables / History / Settings layout.
  • Batched, confirmation-gated cleanup for every supported scanner, plus an “Optimize All” runner.
  • Database Tables scanner that flags possible orphaned tables left behind by removed plugins/themes, with exact-name confirmation before any deletion.
  • Scan progress bar and loader (scan buttons are disabled while scanning), Health Score stat card (0-100), “Optimize All” inside the Cleanup Items tab, and admin notices shown above the header.
  • Unsaved-changes prompt when leaving the Settings tab, and Last Scan / History times shown in the site’s timezone.
  • Scan history log and a Settings screen with plain-language, example-based explanations for Cleanup Batch Size, Revisions to Keep, and Action Scheduler Retention (days).

Full changelog on WordPress.org →

Screenshots

Dashboard with health score, overview stats, and Cleanup Items ready for review.
Dashboard with health score, overview stats, and Cleanup Items ready for review.
Database Tables scanner listing possible leftover tables from removed plugins.
Database Tables scanner listing possible leftover tables from removed plugins.
Settings for batch size, revisions to keep, Action Scheduler retention, and active scanners.
Settings for batch size, revisions to keep, Action Scheduler retention, and active…

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Database Cleaner & Optimizer… alternatives

All cleanup plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 WP-Sweep WP-Sweep WP-Sweep allows you to clean up unused, orphaned and duplicated data in your WordPress. It… by Lester Chan 100K+ ★★★★★★★★★★ 4.7 (138) 3 months ago 85
2 Simple Revisions Delete Simple Revisions Delete Delete the revisions of a post one by one or all at once, from the block editor, the… by Brice Capobianco 10K+ ★★★★★★★★★★ 4.9 (50) 2 months ago 63
3 Delete Duplicate Posts Delete Duplicate Posts Get rid of duplicate posts and pages (any post type) on your blog with manual or automatic… by Lars Koudal 10K+ ★★★★★★★★★★ 4.8 (153) 2 months ago 89
4 Database Cleaner: Cleanup, Optimization & Repair Database Cleaner: Cleanup, Optimization & Repair Clean up and optimize your WordPress database: revisions, transients, autoload, orphaned… by Jordy Meow 10K+ ★★★★★★★★★★ 5 (150) 1 month ago 90
5 AAA Autoload Optimizer AAA Autoload Optimizer Find and fix bloated autoloaded options slowing down your WordPress database by Progress Planner 9K+ ★★★★★★★★★★ 4.6 (25) 2 weeks ago 76
6 Freesoul Deactivate Plugins Freesoul Deactivate Plugins Load plugins only where you need them. No bloat, no conflicts, more speed. Deactivate… by Jose Mortellaro 8K+ ★★★★★★★★★★ 4.8 (105) 4 days ago 92
7 Image Regenerate & Select Crop Image Regenerate & Select Crop Advanced management for images, register new sub-sizes, sub-sizes details, regenerate and… by Iulia Cazan 7K+ ★★★★★★★★★★ 4.7 (58) 3 days ago 77
8 Optimize Images Resizing Optimize Images Resizing Plugin optimizes the process of generating custom image sizes in WordPress and offers a… by OriginalEXE 5K+ ★★★★★★★★★★ 4.6 (45) 9 years ago 44
9 Specific Content For Mobile – Customize the mobile version without redirections Specific Content For Mobile Specific Content For Mobile allows you to create pages and posts content designed for… by Jose Mortellaro 4K+ ★★★★★★★★★★ 4.8 (31) 1 month ago 73
10 DietPress – Page Cache, Speed & Performance Optimization DietPress – Page Cache, Speed & Performance Optimization Page cache, browser cache, defer JS, critical CSS, lazy load and WordPress cleanup. Speed… by Fernando Tellado 2K+ ★★★★★★★★★★ 5 (40) 2 weeks ago 92

FAQ

Database Cleaner & Optimizer by Cod…: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Database Cleaner & Optimizer by… free?

Yes. Database Cleaner & Optimizer by… is free to download and use from the official WordPress.org plugin directory.

Is Database Cleaner & Optimizer by… safe to use in 2026?

Database Cleaner & Optimizer by… is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 1 week ago, and scores 64/100 on our health check.

How many websites use Database Cleaner & Optimizer by…?

Database Cleaner & Optimizer by… is active on <10 WordPress websites and has been downloaded 505 times since it launched in October 2026. It was downloaded 132 times in the last 30 days.

Does Database Cleaner & Optimizer by… work with WordPress 7.1?

Yes. The developer has tested Database Cleaner & Optimizer by… up to WordPress 7.1.5, the latest release. It requires WordPress 6.2 or newer.

What PHP version does Database Cleaner & Optimizer by… need?

Database Cleaner & Optimizer by… requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Database Cleaner & Optimizer by… last updated?

The latest version, 1.0.1, was released on November 25, 2026 (1 week ago).

Who makes Database Cleaner & Optimizer by…?

Database Cleaner & Optimizer by… is developed and maintained by CodeCaste.

What are the best alternatives to Database Cleaner & Optimizer by…?

The most popular alternatives to Database Cleaner & Optimizer by… are WP-Sweep (100K+ installs), Simple Revisions Delete (10K+ installs) and Delete Duplicate Posts (10K+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open