=== WPCodeForge Database Cleaner Pro ===
Contributors: wpcodeforge
Tags: database cleaner, database optimisation, database maintenance, database cleanup, database optimizer
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 1.4.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Advanced WordPress database cleaning, diagnostics, optimisation, table management, metadata inspection and automated maintenance.

== Description ==

WPCodeForge Database Cleaner Pro is an advanced WordPress database maintenance toolkit for administrators who need more than basic database clean-up.

It combines routine cleaning with detailed database inspection, table tools, autoload analysis, cron diagnostics, metadata inspection, transient management, scheduled maintenance and practical guidance.

The plugin operates locally within WordPress and does not require an external database-scanning service.

Developed and maintained by James William Steven Parker, founder and owner of WPCodeForge.

Product page:
https://wpcodeforge.com/database-cleaner-pro/

Plugin guides and documentation:
https://wpcodeforge.com/topics/database-cleaner-pro/

WPCodeForge homepage:
https://wpcodeforge.com/

Support resources:
https://wpcodeforge.com/category/support/

Technical support and contact:
https://wpcodeforge.com/contact/

Donate to WPCodeForge:
https://www.paypal.com/donate/?hosted_button_id=NN83PBC59GKAQ

== Features ==

* Smart clean-up for revisions, auto-drafts, trash, comments, pingbacks and trackbacks.
* Orphaned and duplicate post, user, comment and term metadata detection.
* Orphaned taxonomy relationship detection.
* Expired transient and oEmbed cache clean-up.
* Likely orphaned option detection.
* Likely orphaned cron hook detection.
* Configurable retention periods.
* Database table inspection.
* Table size, row count, engine and collation reporting.
* Table structure and index inspection.
* Table checking, optimisation and repair where supported by the database server.
* Optional conversion of tables to InnoDB.
* Option search and autoload filtering.
* Large autoloaded option detection.
* Option value inspection with serialised and JSON formatting.
* Safe option autoload management.
* Protected handling for critical WordPress options.
* Cron event inspection and unregistered-hook detection.
* Post meta and user meta inspection.
* Transient inspection.
* Registered post type reporting.
* Database diagnostics covering size, tables, engines, autoloaded data, cron and server information.
* Automated recurring database maintenance using WordPress cron.
* Hourly, twice-daily, daily, weekly and monthly automation frequencies.
* Pause, resume and delete automation tasks.
* Local WordPress-native processing without remote database ownership scanning.
* Responsive administration interface.
* Internationalisation-ready structure.
* GPLv2-or-later licensing.

== Safety ==

Database maintenance can permanently remove data. Always make a complete, restorable backup before substantial clean-up.

Orphan and ownership detection is heuristic. A record that looks unused may still be required by a plugin, theme or custom application. Review unusual records before deleting them.

Table repair and InnoDB conversion should only be used when appropriate for the specific table and database server.

== Installation ==

1. Upload the plugin ZIP through Plugins > Add New Plugin > Upload Plugin.
2. Install and activate WPCodeForge Database Cleaner Pro.
3. Open Database Cleaner Pro in the WordPress administration menu.
4. Review Diagnostics before performing major maintenance.
5. Create a restorable database backup.
6. Use Smart Clean-up for routine maintenance or the individual inspection modules for detailed investigation.
7. Create automation tasks only for cleanup categories you are confident are safe to run automatically.

== Frequently Asked Questions ==

= Does the Pro version clean the database automatically? =

No. Automation is optional and must be explicitly configured by an administrator.

= Does it require phpMyAdmin? =

No. Database inspection and maintenance are available from the WordPress administration area.

= Can it remove orphaned data? =

Yes. It includes local heuristic detection for several orphaned metadata, relationship, option and cron categories. Results should be reviewed before deletion.

= Can it optimise database tables? =

Yes. The Tables module provides checking, optimisation and repair actions where supported.

= Can it convert tables to InnoDB? =

Yes. The Tables module can request conversion to InnoDB. Review compatibility before using this operation.

= Can I schedule clean-ups? =

Yes. The Automation module supports recurring maintenance through WordPress cron.

= Does automation require WP-Cron? =

Yes. Scheduled tasks use WordPress cron events. Actual execution depends on how WP-Cron is triggered on the website.

= Does the plugin transmit my database to WPCodeForge? =

No. Core functionality runs locally and does not require sending database contents to WPCodeForge.

= Should I use it on production websites? =

It can be used on production websites, but database changes should always be preceded by a verified backup and appropriate testing.

== Privacy ==

WPCodeForge Database Cleaner Pro does not require an external account or remote database service for its core functionality. Database inspection and clean-up operations are performed locally within the WordPress installation.

== Support ==

For technical support, product enquiries and assistance with WPCodeForge plugins, visit:

https://wpcodeforge.com/contact/

For support articles and resources, visit:

https://wpcodeforge.com/category/support/

For Database Cleaner Pro product information, features and purchasing options, visit:

https://wpcodeforge.com/database-cleaner-pro/

For Database Cleaner Pro guides and documentation, visit:

https://wpcodeforge.com/topics/database-cleaner-pro/

For more information about WPCodeForge and its products, visit:

https://wpcodeforge.com/

== More plugins by WPCodeForge ==

Explore additional WordPress plugins developed by WPCodeForge:

https://wpcodeforge.com/

== Support WPCodeForge ==

WPCodeForge is an independently owned WordPress plugin business. Donations help support the continued development and maintenance of practical WordPress tools.

Donate via PayPal:

https://www.paypal.com/donate/?hosted_button_id=NN83PBC59GKAQ

== Credits ==

WPCodeForge Database Cleaner Pro is developed and maintained by WPCodeForge.

Created and owned by James William Steven Parker, founder and owner of WPCodeForge.

WPCodeForge homepage:
https://wpcodeforge.com/

Database Cleaner Pro product page:
https://wpcodeforge.com/database-cleaner-pro/

Database Cleaner Pro plugin guide:
https://wpcodeforge.com/topics/database-cleaner-pro/

Copyright (C) 2026 WPCodeForge. All rights reserved.

== Changelog ==

= 1.4.2 =
* Sanitised checkbox and confirmation inputs in admin handlers.
* Removed the optional Domain Path header because no languages directory is bundled.

= 1.4.1 =
* Improved Plugin Check compatibility and database query handling.
* Removed the obsolete manual translation loader.
* Removed an unnecessary hidden placeholder file from the language directory.

== 1.2.0 ==
* Added Smart Clean-up presets and group selection controls.
* Added confirmation modal workflow for destructive clean-up.
* Added bulk table selection and whole-database table optimisation.
* Added expired site transient cleanup.
* Added duplicate comment and term metadata cleanup.
* Added duplicate relationship and orphaned term taxonomy cleanup.
* Added Action Scheduler cleanup when its tables are present.
* Added expired WooCommerce session cleanup when WooCommerce session storage is present.
* Expanded settings and maintenance guidance.
* Fixed Maintenance Centre and Reports dashboard submenu routing.

= 1.0.0 =
* Initial Pro release.
* Added advanced smart clean-up categories.
* Added orphan and duplicate metadata detection.
* Added likely orphaned options and cron hook detection.
* Added advanced table inspection and maintenance.
* Added options and autoload management.
* Added cron inspection.
* Added metadata inspection.
* Added transient inspection.
* Added post type reporting.
* Added diagnostics.
* Added recurring automation.
* Added WPCodeForge branding and administration guidance.

== License ==

WPCodeForge Database Cleaner Pro is licensed under the GNU General Public License version 2 or later.

Copyright (C) 2026 WPCodeForge. All rights reserved.

Created and owned by James William Steven Parker.

https://www.gnu.org/licenses/gpl-2.0.html

== Licence Activation ==

WPCodeForge Database Cleaner Pro requires a valid WPCodeForge licence before its database cleaning, optimisation, diagnostics and automation features can be used.

After installation:

1. Open DB Cleaner Pro in the WordPress admin area.
2. Enter the WPCodeForge licence key supplied after purchase.
3. Click Activate Database Cleaner Pro.
4. The plugin verifies the key against the WPCodeForge licensing service and activates the installation when the licence is valid and has an available activation.

The plugin supports the WPCodeForge Database Cleaner Pro licence tiers:

* 1 Website Licence - $39.99 USD/year - 1 activation
* 5 Website Licence - $79.99 USD/year - 5 activations
* 50 Website Licence - $119.99 USD/year - 50 activations

The licence is checked periodically while the plugin is active. If the licensing service reports that the licence is no longer active, the plugin locks its premium functionality until a valid licence is restored.

The licence can be deactivated from the plugin footer so the activation can be moved to another website, subject to the licence activation limit.
