Skip to content
WordPress.org
  • Showcase
  • Plugins
  • Themes
  • Hosting
  • News
    • Learn WordPress
    • Documentation
    • Education
    • Forums
    • Developers
    • Blocks
    • Patterns
    • Photos
    • Openverse ↗︎
    • WordPress.tv ↗︎
    • About WordPress
    • Make WordPress
    • Events
    • Five for the Future
    • Enterprise
    • Gutenberg ↗︎
    • Job Board ↗︎
  • Swag ↗︎
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

Mega Database Cleanup

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

Mega Database Cleanup

By MegaWix Technologies
Download
  • Details
  • Reviews
  • Installation
  • Development
Support

Description

Mega Database Cleanup is a modern, high-performance database optimization utility built to remove unused, bloated, and orphaned data from your WordPress database – safely and automatically.

Instead of leaving your database cluttered with post revisions, spam, expired transients, and orphaned metadata, this plugin gives you a centralized control center to clean, monitor, and automate your database health. It connects directly to the Mega Plugin Hub dashboard so you can manage all settings remotely without touching your WordPress admin every time.

Ideal for site owners, developers, agencies, and power users who want a faster, leaner database without risking important data.

External services

This plugin relies on external third-party services and APIs to provide licensing and settings synchronization features. By using this plugin, you agree to their respective terms and privacy policies:

  1. Mega Plugin Hub (https://api.megapluginhub.com / https://www.megapluginhub.com)
    • Usage: Used to verify your license key, sync plugin settings, and trigger cleanup actions remotely from the Mega Plugin Hub dashboard.
    • Data Sent: Sends your license key and plugin settings during sync. No database content or user data is ever transmitted.
    • Terms & Privacy: Terms of Service: https://www.megapluginhub.com/terms-condition/ , Privacy Policy: https://www.megapluginhub.com/privacy-policy/

Highlights

  • Real-Time Health Dashboard
    Monitor your database health score, junk size, overhead, and last cleanup time at a glance from the plugin dashboard.

  • Targeted Cleanup Modules
    Fast, one-click optimization for Post Revisions, Trashed Content, Spam Comments, and Expired Transients.

  • Empty & Orphaned Meta Scanner
    Detects empty, null, serialized-empty, or JSON-empty metadata across Post, User, Term, and Comment tables.

  • ACF Cleanup Engine
    Automatically identifies patterns used by Advanced Custom Fields to detect and remove orphan entries safely.

  • Automated Background Cleanup
    Schedule automatic cleanups to run hourly, daily, or weekly using WordPress Cron – completely hands-free.

  • Safety Vault System
    Automatically secures deleted data in a temporary vault before any cleanup operation for easy recovery.

  • Snapshot Management
    Create manual snapshots of your metadata before cleanup and restore them whenever needed.

  • Hub Settings Sync
    Settings are synced in real-time from the Mega Plugin Hub dashboard via secure webhook with license-key authentication.

  • WooCommerce Junk Cleaner
    Clean expired shop sessions, failed order entries, and abandoned shopping cart records with a single click.

  • 100% Clean Uninstall
    When you delete the plugin, all settings, custom tables, and scheduled tasks are cleanly removed from your database.

Who Is This For?

Website Owners
– Improve site performance by keeping your database lean and fast.

Agencies & Developers
– Manage and automate database cleanup for client sites from one centralized dashboard.

WooCommerce Stores
– Clean up expired sessions, failed orders, and junk data to keep your store running smoothly.

Why Mega Database Cleanup Is Different

  • Built around a Hub-Connected Architecture – manage everything from one dashboard
  • Safety-first design – every cleanup is backed by a vault and snapshot system
  • No bloat – lightweight plugin that offloads settings management to the cloud
  • Real-time webhooks – settings sync to your site instantly when you change them in the Hub

Privacy Policy

Mega Database Cleanup is committed to transparency regarding user data:

  • No external data transmission – No database content ever leaves your site.
  • License sync only – Only your license key and plugin settings are sent to Mega Plugin Hub for verification and sync. No user data, posts, or database rows are transmitted.
  • Database backups – Backup data is stored in a dedicated custom table on your own database server and never sent externally.
  • Activation popup (optional) – If you enter your email in the welcome popup, it is saved to your site’s wp_options table only. It is never sent to any third-party server.
  • Deactivation feedback (optional) – If you submit a deactivation reason, it is saved locally to your site’s wp_options table. It is never sent externally.

Developer Hooks

Filters

  • mega_db_cleanup_patterns – Modify cleanup patterns
  • mega_db_cleanup_retention_limit – Change default “keep latest N” count

Actions

  • mega_db_cleanup_before_delete – Fires before deletion
  • mega_db_cleanup_after_delete – Fires after deletion

Credits

Developed with ❤️ by MegaWix Technologies

  • Plugin Development: MegaWix Technologies
  • Testing & QA: MegaWix Technologies

Support

Need help? Have a question or feature request?

  • Website: https://www.megapluginhub.com
  • Email: support@megapluginhub.com

We are committed to providing reliable support and regular updates to ensure this plugin remains compatible with the latest WordPress versions.

Screenshots

Overview & Health Dashboard - A futuristic real-time control center displaying database health metrics, optimization scores, and automated cleanup activity.
Overview & Health Dashboard – A futuristic real-time control center displaying database health metrics, optimization scores, and automated cleanup activity.
Database Cleanup - Watch our automated system sweep away junk data, orphaned blocks, and bloat to keep your database crystal clean.
Database Cleanup – Watch our automated system sweep away junk data, orphaned blocks, and bloat to keep your database crystal clean.
Meta Scanner - Advanced scanner detects corrupted metadata, empty blocks, and broken arrays with deep diagnostic filtering.
Meta Scanner – Advanced scanner detects corrupted metadata, empty blocks, and broken arrays with deep diagnostic filtering.
Auto Cleanup - Set it and forget it! A smart scheduling system runs hands-free automated cleanups to optimize your database around the clock.
Auto Cleanup – Set it and forget it! A smart scheduling system runs hands-free automated cleanups to optimize your database around the clock.
Safety Vault - Your data is protected by our secure safety vault, safely storing deleted items before cleanup for easy restoration.
Safety Vault – Your data is protected by our secure safety vault, safely storing deleted items before cleanup for easy restoration.
WooCommerce Cleanup - Specifically optimized data flow to clean up expired shopping carts, failed orders, and junk WooCommerce session data.
WooCommerce Cleanup – Specifically optimized data flow to clean up expired shopping carts, failed orders, and junk WooCommerce session data.
Hub Sync - Secure cloud API integration that synchronizes your settings and license key directly from the Mega Plugin Hub.
Hub Sync – Secure cloud API integration that synchronizes your settings and license key directly from the Mega Plugin Hub.
Activity Logs - Comprehensive analytics and monitoring logs to track every optimization and database cleanup action.
Activity Logs – Comprehensive analytics and monitoring logs to track every optimization and database cleanup action.

Installation

Automatic Installation

  1. Log in to WordPress Admin → Plugins → Add New
  2. Search for Mega Database Cleanup
  3. Click Install Now → Activate
  4. Navigate to Mega Database Cleanup in your WordPress sidebar

Manual Installation

  1. Download the plugin ZIP
  2. Go to Plugins → Add New → Upload Plugin
  3. Select the ZIP and install
  4. Click Activate Plugin

Initial Setup

  1. Open Mega Database Cleanup from your WordPress sidebar
  2. Enter your Mega Plugin Hub License Key to connect.
  3. Once connected, your settings sync automatically from the Hub dashboard.
  4. Run your first cleanup or enable automated scheduling – your database is now under control!

FAQ

Is it safe to use on a live/production site?

Yes. Mega Database Cleanup is designed with safety as the top priority. Before any cleanup operation, data is stored in the Safety Vault. You can also create manual snapshots at any time. We strongly recommend running a full backup before enabling aggressive cleanup rules on a production site.

Will it delete content I still need?

No. The plugin only removes data that WordPress itself considers orphaned or junk – such as expired transients, spam comments, and post revisions. Your published content, pages, products, and user data are never touched.

How does Hub Settings Sync work?

When you update settings in your Mega Plugin Hub dashboard, a secure webhook is sent to your WordPress site with your license key in the request header. The plugin verifies the key and applies the new settings instantly – no manual saving required on the WP side.

What is the Safety Vault?

Before any cleanup runs, deleted metadata is stored in a dedicated custom table on your own server. You can view and restore this data from the plugin’s Snapshot Manager tab. The vault is completely private and never leaves your server.

How safe is the automated cleanup scheduler?

Very safe – it follows the same rules as manual cleanup, including retention rules, vault backup, and license-tier checks.

What happens if I deactivate or uninstall the plugin?

Deactivating the plugin pauses all scheduled cleanups. Uninstalling it completely removes all settings, custom tables, and cron jobs from your database, leaving no trace behind.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Mega Database Cleanup” is open source software. The following people have contributed to this plugin.

Contributors
  • MegaWix Technologies

Translate “Mega Database Cleanup” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

3.0.0

  • New: Real-time Settings Sync via Mega Plugin Hub webhook integration.
  • New: Secure X-Mega-License header authentication for all Hub communications.
  • Improved: Modular settings architecture with per-setting toggle persistence.
  • Improved: Background cleanup actions now report status back to Hub dashboard.
  • Fixed: Settings not persisting correctly across plugin updates.

2.0.0

  • Major Overhaul: Completely redesigned modular class-based architecture.
  • New: Health Score Dashboard with real-time database diagnostics.
  • New: Support for User, Term, and Comment metadata cleanup.
  • New: Targeted cleanup modules for Revisions, Trash, Spam, and Transients.
  • New: Safety Vault system to temporarily secure deleted data.
  • New: Metadata Snapshot system for manual backups and restoration.
  • New: Modern tabbed UI with improved user experience.

1.1.1

  • Fixed: Critical PHP compatibility issue by replacing modern arrow functions with traditional anonymous functions, ensuring support for older server environments.
  • Fixed: Resolved a glitch that caused plugin deactivation during the update process due to script execution timeouts on some servers.
  • Improved: Better handling of plugin state during version transitions.

1.1.0

  • Added optional activation popup: subscribe to plugin update tips (email stored locally only)
  • Added deactivation feedback popup: 6 selectable reasons + custom text (stored locally only)
  • Plugin now appears as a top-level menu item in the WordPress sidebar
  • Quick-access link added to the WordPress admin bar (header)
  • All new features are fully WordPress.org compliant

1.0.0 – Initial Release

  • Empty meta scanner and preview mode
  • ACF orphan cleanup with pattern-based detection
  • Scheduled automatic cleanup (hourly/daily/weekly)
  • Backup table to store deleted meta rows
  • Retention rule: keep latest N entries per meta_key
  • One-click delete all empty metadata
  • Add/remove ACF patterns
  • Inline logs and real-time reports
  • Fully optimized SQL cleanup
  • Admin UI with jQuery enhancements

Meta

  • Version 3.0.0
  • Last updated 2 hours ago
  • Active installations Fewer than 10
  • WordPress version 6.0 or higher
  • Tested up to 7.1
  • PHP version 7.4 or higher
  • Tags
    acfcleanupdatabaseoptimizationpostmeta
  • Advanced View

Ratings

No reviews have been submitted yet.

Your review

See all reviews

Contributors

  • MegaWix Technologies

Support

Got something to say? Need help?

View support forum

Donate

Would you like to support the advancement of this plugin?

Donate to this plugin

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Documentation
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org
  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Code is Poetry
The WordPress® trademark is the intellectual property of the WordPress Foundation.