🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
NHR Database Cleaner & Optimizer – Revisions, Transients, Autoload & Options Manager icon
Actively maintained Tested with WP 7.1 #5 in autoload

NHR Database Cleaner & Optimizer – Revisions, Transients, Autoload & Options Manager

Clean, optimize and manage your database: revisions, spam, transients and leftovers. Edit options and meta, tune autoload, optimize tables.

Active installs100+100+ tier
Downloads · 30d432▼ -41.3% vs prev. 30d
Rating5/53 reviews
Health score71/100Good
All-time downloads5.7KSince Jun 2024
Support resolved—No recent threads
RequiresWP 6.0PHP 7.4+
Downloads · 7d106▼ -17.2% week over week
Our verdict

Solid choice

NHR Database Cleaner & Optimizer is a solid plugin choice in 2026, with a few things worth checking first. It runs on 100+ sites, is rated 5/5 and was last updated 2 months ago, and scores 71/100 on our health check.

  • Tested with the latest WordPress (7.1)
  • Small user base (100+ active installs)
  • Very few reviews so far

How does it stack up?

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

Daily downloads

275481Sep 4Oct 18Dec 2
Yesterday29
Daily average (1y)9
Peak day108Oct 10, 2026
Last 12 months3.2K

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

Rankings

Where NHR Database Cleaner & Opti… stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
autoload #8 581 Best autoload plugins →
cleanup >100 7,109 Best cleanup plugins →
database #78 10,000 Best database plugins →
Optimize >100 3,382 Best Optimize plugins →
revisions #27 2,076 Best revisions plugins →

Version adoption

Share of active sites per release.

  • 2.283.1%
  • 1.38.5%
  • 1.48.5%

Rating breakdown

★★★★★★★★★★ 5 from 3 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About NHR Database Cleaner & Optimizer

From the official readme · v2.2.0

Description

🚀 GitHub Repository – Found a bug or have a feature request? Let us know!
💬 Slack Community – Got questions or just want to chat? Come hang out with us on Slack!

A WordPress database collects data it no longer needs: old post revisions, auto-drafts, trashed posts, spam comments, expired transients, meta left behind by deleted content, and options and tables left behind by plugins you removed. This plugin shows you all of it, lets you preview exactly what would be deleted, and cleans it up on demand or on a schedule.

It is a database cleaner and optimizer, not a malware scanner: it removes unused data, it does not look for malicious code.

<?php echo 'Small database, fast site.'; ?>

🚀 Everything in One Place

Cleanup, table optimization, a scheduled-events (cron) manager, and the deepest wp_options and autoload tools available: a tracker that finds autoloaded options your site never actually reads, per-option history with one-click restore, and automatic snapshots before risky changes.

✨ Key Features

  • Database Cleanup – Remove post revisions, auto-drafts, trashed posts, spam, trashed and pending comments, pingbacks and trackbacks, orphaned post/comment/term/user meta, duplicate meta, orphaned term relationships, oEmbed caches, expired transients, and content left behind by post types that no longer exist. Every type shows a live count.
  • Preview Before You Delete – See exactly which rows a cleanup would remove, and keep the last N days of anything with a date.
  • Scheduled Cleanups – Give each cleanup type its own schedule (hourly, twice daily, daily, weekly or monthly) with its own keep-the-last-N-days rule. No limit on the number of schedules.
  • Action Scheduler Cleanup – Clear finished, failed and canceled actions and their logs (WooCommerce and many other plugins fill these tables).
  • Tables: Sizes, Optimize, Repair – Every database table with its rows, size, overhead and engine. Optimize and repair tables, convert MyISAM to InnoDB, and find tables left behind by removed plugins; those can be emptied or dropped after you type the table name to confirm.
  • Scheduled Events (Cron) Manager – See every scheduled event with its next run and owner, run one now, delete it, and spot events that may belong to plugins you removed.
  • Database Health Dashboard – An at-a-glance scorecard (0–100) with database size, autoload size, cleanable rows, transient and orphan counts and last backup, with prioritized one-click recommendations.
  • Activity Log – A recent-activity summary on the Dashboard plus a dedicated, searchable and filterable Activity tab showing every change and who made it. The log keeps the latest 300 changes within your retention period.
  • No Extra Tables – The plugin adds no database tables of its own. Its history and snapshots are stored as non-autoloaded options with fixed size limits, and all settings live in a single option.
  • Modern React Interface – A fast, dashboard-first admin app organized into Dashboard, Browse, Optimize, Tools, Integrations, and Settings.
  • Autoload Usage Tracker – Records which autoloaded options are actually used on real front-end page loads, then flags the ones that are never used so you can safely turn off their autoload; filter the list by usage status and bulk-disable every unused option at once.
  • Autoload Health Check – Analyze total autoloaded data size and identify heavy options that slow down your site.
  • Transients Manager – Dedicated view of every transient with size, expiration, status, and its guessed owner (a plugin, theme, or WordPress core); filter by status or owner, add and edit values (with expiration) directly, and select rows to bulk delete.
  • Manage Options – Add, edit, and delete options with sortable columns, search, pagination, and bulk delete; filter the list by guessed owner (a plugin, theme, or WordPress core).
  • Usermeta, Postmeta, Commentmeta & Termmeta Support – Browse, add, edit, and delete user, post, comment, and term meta entries just like options; narrow usermeta or postmeta to a single user or post by searching its name/title in a type-ahead picker. On multisite, user meta (shared by every site in the network) is available only to network administrators.
  • Serialized Data Handling – Serialized and JSON values open as structured data you can edit safely, and are saved back in their original format.
  • Scheduled Backups & Snapshots – Create restorable snapshots of your wp_options table manually or on a daily/weekly schedule, with automatic snapshots taken before Search & Replace and Import. Snapshots are compressed and skip transients, so they stay a small fraction of the table they protect; a scheduled snapshot is skipped when nothing has changed. The latest 15 are kept (the oldest is removed automatically), and the Backups panel shows how much space they use.
  • Option History & Rollback – Every option edit and delete is recorded with its previous value. Open any option’s History from its row in Browse, or use the Activity tab, and restore a previous version in one click.
  • Orphan Scanner – Find and clean up leftovers from uninstalled plugins.
  • Options Table Analytics – See every option grouped by its name prefix with a row count, sorted highest first, so you can spot which plugin’s options weigh the most on your wp_options table.
  • History Retention – Keep the change history for as many days as you choose, pruned daily or on demand with “Prune history now”. Settings shows how many entries the history holds and how much space it uses.
  • Global Search & Replace – Safely replace strings across the options table, with a live count of matching options as you type and a dry-run preview that lists every match.
  • Import / Export – Export every option, or search and pick just the ones you need. Import shows a preview first (new, modified, unchanged or protected, with the current value) so you choose exactly which options to bring in; files are checksum-verified, and exports from older versions import too.
  • Integrations – Browse third-party plugin tables (WP Recipe Maker ratings, analytics and changelog; Better Payment) from the same interface with search and sortable columns. Tables whose plugin is no longer active are flagged.
  • Allow HTML in Option Values – Off by default: HTML is stripped from option values you add or edit. Turn it on to store values exactly as entered. Follows WordPress’s own rule: only users allowed to save unfiltered HTML can store it.
  • Core Option Protection – WordPress core options can’t be deleted by accident.
  • Multisite Ready – Network-activate it and every site gets its own Database Cleaner for its own data, history, snapshots and schedules. A Network Admin screen lists every site with its database and autoload size, and lets network administrators browse and clean network-wide options and site transients. User meta, which is shared across the network, is limited to network administrators, and uninstalling cleans up every site.
  • WP-CLI Support – wp nhrotm list and delete for options, wp nhrotm cleanup list and cleanup run <type> [--older-than=<days>] [--dry-run] for cleanups, and wp nhrotm tables list and tables optimize. Every list takes --format=json. The earlier wp nhr-options command name still works.
  • AI Agent & MCP Ready – On WordPress 6.9 and later the plugin registers its features with the WordPress Abilities API, so AI agents and MCP clients (through the WordPress MCP Adapter) can read the health score, cleanup counts, autoload report, tables and cron events, preview a cleanup, and run the safe actions: a cleanup (dry run by default), disabling autoload for an option, optimizing a table and taking a snapshot. Administrators only. Option values are never returned, and nothing irreversible beyond a cleanup is offered.

⚡ Easy Installation & Instant Setup

No complex configurations needed! Just install, activate, and head to Tools → Database Cleaner for the dashboard-first interface.

🎯 Safe by Design

WordPress core options, tables and scheduled events are protected. Cleanups show a count and a preview before anything is deleted, options changes can be restored from history, and a snapshot of your options is taken automatically before Search & Replace and Import. Cleanups of posts, comments and meta cannot be undone from the plugin, so keep a full database backup as you would before any maintenance.

Installation

  1. Install the plugin from Plugins → Add New, or upload the plugin folder to /wp-content/plugins/.
  2. Activate it.
  3. Go to Tools → Database Cleaner.

That’s it! You’re done.

Changelog

AI agents and MCP clients can now use the plugin through the WordPress Abilities API (WordPress 6.9+, administrators only). Tested on PHP 7.4 through 8.5.

2.2.0 – 10/10/2026

  • New: AI agent and MCP support. On WordPress 6.9+ the plugin registers twelve abilities with the WordPress Abilities API: eight read-only (health, cleanup counts and preview, autoload report, tables, cron events, option search, activity) and four safe actions (run a cleanup with dry run by default, disable autoload, optimize a table, create a snapshot). Administrators only; option values are never returned.
  • New: --format=json (also csv and yaml) for wp nhrotm cleanup list and wp nhrotm tables list.
  • Compatibility: verified on PHP 7.4 through 8.5 and on PHP 8.6 release candidates.
  • Developer: every pull request now runs the PHPCompatibilityWP ruleset plus a syntax check, the unit tests and a runtime smoke test on each supported PHP version. The security probe also covers abilities.

2.1.0 – 04/10/2026

  • New name: NHR Database Cleaner & Optimizer. The menu item is now Tools → Database Cleaner. Nothing else changes: same plugin and same settings.
  • New: Cleanup section. Remove post revisions, auto-drafts, trashed posts, spam, trashed and pending comments, pingbacks and trackbacks, orphaned and duplicate meta, orphaned term relationships, oEmbed caches, expired transients and content of unregistered post types, each with a live count, a preview of exactly what would be deleted, and a keep-the-last-N-days rule.
  • New: Scheduled cleanups. Each cleanup type can run hourly, twice daily, daily, weekly or monthly. The old “automated daily cleanup” setting becomes a daily expired-transients schedule automatically.
  • New: Action Scheduler cleanup for finished, failed and canceled actions and their logs.
  • New: Tables in Optimize. Rows, size, overhead and engine for every table; optimize, repair and convert to InnoDB; leftover tables from removed plugins are flagged and can be emptied or dropped after typing the table name.
  • New: Scheduled events in Tools. List every cron event, run one now or delete it; events that may belong to removed plugins are flagged.
  • New: Multisite Network Admin screen with every site’s database and autoload size, and network-wide options and site transients.
  • New: WP-CLI commands cleanup list, cleanup run and tables list, tables optimize.
  • Improved: The WP-CLI command is now wp nhrotm. The earlier wp nhr-options name keeps working, so existing scripts need no change.
  • New: Search & Replace shows how many options and occurrences match as you type.
  • Improved: The Dashboard shows the database size and counts cleanable rows in the health score and recommendations.
  • Improved: Integrations flags tables whose plugin is no longer active.
  • Improved: The plugin now keeps everything it stores in four options plus one per snapshot, and only its small settings option is autoloaded.
  • Improved: The plugin no longer creates database tables. History and snapshots are now stored as non-autoloaded options, and the two tables from earlier versions are moved over and removed automatically on update. History keeps the latest 300 changes (values over 100 KB are recorded without their content and cannot be restored).
  • Security: On multisite, a site administrator could read and edit the user meta of every user in the network, including another site’s role keys (for example making themselves administrator of a different site). User meta is now available only to users who can manage network users, and role and capability keys are protected for every site and any database table prefix.
  • Improved: Snapshots are now compressed and no longer include transients (they are cache and regenerate), cutting their size by over 95%. Existing snapshots are shrunk automatically on update, and the Backups panel shows the total space snapshots use.
  • Improved: A scheduled snapshot is skipped when nothing changed since the previous one.
  • Improved: The Backups panel says how many of the 15 kept snapshots exist and how much space they use, and Settings shows how many entries the change history holds and its size.
  • New: Restore an option to its previous value straight from the Activity tab, or from the new History button on each option in Browse.
  • New: Export only the options you pick (search and add them to an export list), and preview an import before running it: every option shows whether it is new, modified, unchanged or protected, and you choose which to import. Export files now carry a checksum that import verifies.
  • New: Integrations shows the WP Recipe Maker Analytics and Changelog tables, and every integration table can be searched and sorted.
  • New: “Prune history now” button in Settings.
  • Fixed: Importing a file exported by version 1.x skipped every option.
  • Fixed: “Allow HTML in option values” had no effect in the 2.0 interface. With it off, HTML is now stripped from option values on save (keys and numbers are left untouched); with it on, values are saved exactly as entered.
  • Improved: The plugin no longer runs any database query on front-end page loads. Usage tracking, when switched on, records a sample of page loads instead of writing on every one.
  • Improved: Deleting many options at once is much faster.
  • Improved: Scheduled cleanups no longer clear the whole object cache.
  • Security: Raw HTML in values now follows WordPress’s unfiltered HTML permission. On a multisite network, a site administrator’s values are always stripped of HTML, Import and a live Search & Replace need a network administrator, table actions on the main site need a network administrator, and each site’s roles option is protected.
  • Fixed: Search & Replace handled only the first 100 matching options. It now handles every match, and the live count shows the same number.
  • Fixed: After a Search & Replace, WordPress could keep serving the old values from its cache.
  • Fixed: Activity showed the wrong time (“6 hours ago” for a change made just now) on sites not set to UTC.
  • Fixed: Restoring a snapshot did not put back an option’s autoload setting when its value had not changed.
  • Fixed: An option created in Browse could stay invisible to WordPress (still read as missing) until the object cache was cleared, when its name had been looked up before it existed.
  • Fixed: Restoring a history entry recorded for user/post/comment/term meta could write a stray row into wp_options. History entries now record which table they belong to, and only option entries can be restored.
  • Fixed: Activity labelled meta edits as option edits.
  • Fixed: The Usage tracking, Automated daily cleanup and History retention settings had no effect on sites set up with 2.0.0.
  • Fixed: Reactivating the plugin could switch scheduled backups off.
  • Fixed: On multisite, only the main site got the daily cleanup and history pruning jobs, so other sites’ history was never pruned. Every site now schedules its own jobs, including sites created later.
  • Fixed: Uninstalling on multisite left every other site’s tables and settings behind. Uninstall now cleans up every site, and network deactivation clears every site’s scheduled jobs.
  • Removed: The Classic (DataTables) view, its admin-ajax endpoints and assets. Every feature it had is now in the main app.

2.0.0 – 25/09/2026

  • New: Complete React interface rewrite — a dashboard-first admin app with Dashboard, Browse, Optimize, Tools, Integrations, and Settings sections. The previous DataTables view stays available via the “Classic view” link.
  • New: Database Health Dashboard with a 0–100 score, stat cards, prioritized recommendations, and a recent-activity summary.
  • New: Activity tab — a searchable, filterable log of every change and who made it.
  • New: Unified Browse view for options, usermeta, postmeta, commentmeta, termmeta, and transients with sortable columns, owner filter, add, inline edit (structured serialized/JSON editing), bulk delete, and search.
  • New: Filter Browse’s postmeta/usermeta tabs to a single post or user via a type-ahead picker.
  • New: Autoload Usage Tracker — flags autoloaded options never used on front-end page loads; filter by usage and bulk-disable autoload for every unused option.
  • New: Transients Manager — size, expiration, status, and guessed owner for every transient; add, edit, and bulk delete.
  • New: Scheduled Backups & Snapshots of the wp_options table (manual, daily/weekly cron) with restore; automatic snapshot before Search & Replace and Import.
  • New: Options Table Analytics panel — every option grouped by name prefix with a row count.
  • New: Integrations tab for WP Recipe Maker and Better Payment tables.
  • New: REST API backend (nhrotm/v1) with centralized settings.
  • Improved: Search & Replace dry run now lists every matching option, and WordPress core cache/transient data is excluded by default.
  • Improved: Owner attribution and the Orphan Scanner are more accurate — real WordPress core options are no longer flagged as orphans, and hyphenated plugin prefixes are recognized.
  • Improved: Tools → Import has a drag-and-drop file dropzone.
  • Fixed: The Orphan Scanner no longer flags data from active plugins it couldn’t match by folder name (WooCommerce’s wc_/product_ options, Yoast SEO’s wpseo_/yoast_, the bundled Action Scheduler and Jetpack packages) or WordPress core’s fresh_site/recovery_keys as orphans.
  • Fixed: “Last backup” on the Dashboard showed the wrong age (measured from midnight of the backup day).
  • Improved: The plugin’s own settings no longer autoload on every front-end page load.
  • Fixed: Uninstall now removes every option the plugin creates.
  • Security: The Classic view’s orphan scan now requires a valid nonce and the manage_options capability; it previously returned option-name prefixes to any logged-in user.
  • Security: Import skips WordPress core options and rejects values containing serialized PHP objects (other than plain stdClass), so a crafted import file can’t plant an object-injection payload.
  • Security: Search & Replace and snapshot/history restore no longer instantiate PHP classes when reading serialized option values.
  • Fixed: Searching the WP Recipe Maker ratings table in the Classic view caused a fatal error.
  • Security: The Classic view’s table queries now build sorting and search SQL only from whitelisted values and single prepared statements.
  • Developer: The whole PHP codebase now passes WordPress Coding Standards.
  • Developer: Renamed the menu capability filter from nhrotm-options-table-manager/menu/capability to nhrotm_menu_capability to follow WordPress hook naming. If you filtered the old name, update your callback.

1.4.3 – 14/05/2026

  • Enhancement: Add GitHub Actions workflow for automated plugin checks
  • Improvement: Improve input sanitization
  • Updated: Settings description for HTML preservation option

1.4.2 – 09/05/2026

  • Fixed: Database error when history table was missing; added lazy table creation logic.

1.4.1 – 09/05/2026

  • Few minor bug fixes & improvements

Full changelog on WordPress.org →

Screenshots

Dashboard — database health score, stat cards, and prioritized recommendations
Dashboard — database health score, stat cards, and prioritized recommendations
Cleanup — every cleanup type with its live count, keep-the-last rule, schedule, preview and clean
Cleanup — every cleanup type with its live count, keep-the-last rule, schedule, preview…
Browse — options with owner filter, sortable columns, per-option history, and bulk actions
Browse — options with owner filter, sortable columns, per-option history, and bulk actions
Edit modal — structured editing for serialized and JSON values
Edit modal — structured editing for serialized and JSON values
Optimize — autoload health and the Autoload Usage Tracker
Optimize — autoload health and the Autoload Usage Tracker
Optimize → Tables — size, overhead, engine and owner, with leftover tables flagged
Optimize → Tables — size, overhead, engine and owner, with leftover tables flagged
Optimize — Orphan Scanner for leftover options from uninstalled plugins
Optimize — Orphan Scanner for leftover options from uninstalled plugins
Tools — backups & snapshots and Search & Replace with dry run
Tools — backups & snapshots and Search & Replace with dry run
Tools → Scheduled events — every cron event with next run, owner, run now and delete
Tools → Scheduled events — every cron event with next run, owner, run now and delete

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 NHR Database Cleaner & Optimi… alternatives

All autoload plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 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
2 WP Healthcheck WP Healthcheck WP Healthcheck is a plugin to check the health of your WordPress install. by Tiago Hillebrandt 1K+ ★★★★★★★★★★ 5 (3) 4 months ago 66
3 Enhanced Autoload Manager Enhanced Autoload Manager Enhanced Autoload Manager - A sleek plugin to manage and optimize autoloaded data in your… by Rai Ansar 600+ ★★★★★★★★★★ 5 (2) 5 months ago 66
4 Supervisor Supervisor Supervisor is a powerful plugin designed to enhance both the performance and security of… by Tiago Hillebrandt 100+ ★★★★★★★★★★ 5 (1) 1 year ago 41
6 Aparimitlabs Database Metrics Aparimitlabs Database Metrics Monitors real-time DB queries, execution time, autoloaded wp_options size, and safely… by Aparimit Labs 80+ ★★★★★★★★★★ No reviews 3 months ago 58
7 Autoload Cleaner & Analyser Autoload Cleaner & Analyser Professional database analyzer. Detect hidden memory hogs, clean the wp_options table, and… by Siby P Varkey 40+ ★★★★★★★★★★ No reviews 6 months ago 46
8 DBStorage Insights DBStorage Insights Find out exactly what is using space on your WordPress site -- database, autoload… by WPExtent 40+ ★★★★★★★★★★ 5 (2) 5 months ago 59
9 Copywriting.cz Copywriting.cz Umožňuje nahrávat texty (i s obrázky) zakoupené na Copywriting.cz přímo na Váš web bez… by webdeal 20+ ★★★★★★★★★★ No reviews 3 years ago 24
10 SAC Database Inspector SAC Database Inspector Inspect WordPress database health, plugin footprints, autoloaded options, and questionable… by Ask Adam 10+ ★★★★★★★★★★ 5 (1) 3 months ago 69
11 Advanced Custom Fields Migration Cleanup Advanced Custom Fields Migration Cleanup Correct and prevent Advanced Custom Fields options migration autoload 'yes' to 'no'. by Michael Cannon 10+ ★★★★★★★★★★ No reviews 14 years ago 23

FAQ

NHR Database Cleaner & Optimizer: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is NHR Database Cleaner & Optimizer free?

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

Is NHR Database Cleaner & Optimizer safe to use in 2026?

NHR Database Cleaner & Optimizer is a solid plugin choice in 2026, with a few things worth checking first. It runs on 100+ sites, is rated 5/5 and was last updated 2 months ago, and scores 71/100 on our health check.

How many websites use NHR Database Cleaner & Optimizer?

NHR Database Cleaner & Optimizer is active on 100+ WordPress websites and has been downloaded 5,721 times since it launched in June 2024. It was downloaded 432 times in the last 30 days.

Does NHR Database Cleaner & Optimizer work with WordPress 7.1?

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

What PHP version does NHR Database Cleaner & Optimizer need?

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

When was NHR Database Cleaner & Optimizer last updated?

The latest version, 2.2.0, was released on October 10, 2026 (2 months ago).

Who makes NHR Database Cleaner & Optimizer?

NHR Database Cleaner & Optimizer is developed and maintained by Nazmul Hasan Robin.

What are the best alternatives to NHR Database Cleaner & Optimizer?

The most popular alternatives to NHR Database Cleaner & Optimizer are AAA Autoload Optimizer (9K+ installs), WP Healthcheck (1K+ installs) and Enhanced Autoload Manager (600+ 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