Biddut Revision Cleaner Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
Biddut Revision Cleaner helps you take full control of WordPress post revisions. Set smart retention rules per post type, analyze your database before touching anything, preview exactly what will be deleted, and clean with a single confirmed click — safely and without guesswork.
The plugin covers all post types that support revisions — not just public ones. This includes Reusable Blocks (wp_block), Full Site Editing Templates (wp_template), Template Parts (wp_template_part), Navigation menus (wp_navigation), and any custom post type that registers revision support.
Smart Revision Retention Rules
- Global Retention Limit — Keep only the last X revisions per post site-wide. Set to -1 for unlimited, 0 to keep none.
- Per-Post-Type Limits — Override the global limit for Posts, Pages, Reusable Blocks, FSE Templates, and any Custom Post Type individually
- Age-Based Deletion — Optionally delete revisions older than a configurable number of days during cleanup
- Auto-Draft Cleanup — Option to remove orphaned auto-drafts alongside revision cleanup
One-Click Safe Cleanup
- Analyze First — Scan your full database before making any changes
- Live Stats — See total revision count, how many will be deleted, estimated space freed, and number of posts affected
- Breakdown Table — Per-post-type summary showing total revisions, revisions to delete, and active retention limit per type
- Preview List — See individual revisions (up to 50) queued for deletion — post title, date, and author shown
- Confirmation Prompt — Explicit confirmation step before any deletion takes place
Scheduled Cleanup
- Enable Auto-Cleanup — Run cleanup automatically on a schedule, no manual action required
- Daily / Weekly / Monthly — Choose the frequency that suits your site
- WP-Cron Integration — Runs silently via WordPress’s built-in task scheduler
- Next Run Indicator — Settings page shows when the next scheduled cleanup will fire
Smart Trigger Mode
- Revision Count Threshold — Automatically clean when total site-wide revisions exceed a configured number
- Database Size Threshold — Automatically clean when the estimated revision table footprint exceeds a configured MB value
- Either threshold can be disabled independently by setting its value to 0
- Runs silently in the background on page loads without impacting site visitors
Cleanup Logs
- Full Cleanup History — Every cleanup run (manual, scheduled, or smart-triggered) is logged
- Log Details — Date and time, trigger type, number of revisions deleted, auto-drafts removed, estimated space freed, and duration
- Aggregate Totals — Lifetime totals for runs, revisions cleaned, and space freed shown at the top of the logs page
- Paginated Log Table — Proper WordPress-style pagination with Prev/Next buttons, ellipsis for large page counts, and row count summary
- Trigger Badges — Color-coded badges distinguish Manual, Scheduled, and Smart trigger runs
- Clear All Logs — One-click log history reset with confirmation prompt
Post-Level Cleanup
- Per-Post Cleanup Button — Remove excess revisions for a single post directly from the post editor sidebar, without running a full site cleanup
- Revision Count Meta Box — Displays the current stored revision count and active retention limit per post
- Revision Count Column — See revision counts at a glance in the Posts, Pages, and Custom Post Type list tables
Automatic Revision Trimming
- Every time a post is saved, the plugin automatically trims revisions that exceed the configured retention limit for that post type — no manual cleanup needed for new saves
Lightweight & Secure
- Covers all revision-supporting post types via post_type_supports() — not just public ones
- Built using WordPress native APIs only — no external libraries or dependencies
- Nonce verification on every AJAX request and every admin page GET interaction
- current_user_can() checks before every privileged action — manage_options for admin operations, edit_post for per-post cleanup
- Full input sanitization (sanitize_text_field, absint, sanitize_key, wp_unslash) and output escaping throughout
- PHP 8.1+ with declare(strict_types=1)
License
Biddut Revision Cleaner is licensed under the GPL v2 or later.
See https://www.gnu.org/licenses/gpl-2.0.html for details.
Privacy
This plugin does not collect, store, or transmit any user data outside your own WordPress database. Cleanup log entries are stored locally in a custom database table ({prefix}_bdrc_cleanup_logs) and can be cleared at any time from the Cleanup Logs page.
Support or Feature Requests
Contributing
Contributions are welcome! Visit the GitHub repository to submit a pull request or open an issue.
Credits
- Built with WordPress
- Follows WordPress coding standards and best practices
- WordPress Dashicons used
Screenshots
Dashboard — Analyze and Cleanup with live stats grid and breakdown table
Analysis results with revision preview list
Settings — Global limit, per-post-type limits, scheduled cleanup, and smart trigger configuration
Cleanup Logs page with aggregate totals, paginated history, and trigger badges
Post editor meta box showing revision count and per-post cleanup button
Revision count column in the Posts list table
