=== Minimal DB Optimizer ===
Contributors: simpliplugin
Tags: database, optimization, cleanup, revisions, performance
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Lightweight one-click database cleanup for post revisions, trash, spam comments, and expired transients.

== Description ==

Over time, WordPress databases accumulate bloat that slows down queries and increases storage usage. **Minimal DB Optimizer** offers a simple, one-click solution to clean up the most common database junk — without a complicated settings screen.

= What it cleans =

* **Post Revisions** — WordPress saves every draft edit forever. Remove hundreds of unnecessary rows from `wp_posts`.
* **Trash Items** — Permanently deletes posts, pages, and comments that have been in the Trash longer than your site's retention period.
* **Spam Comments** — Clears the entire comment spam queue.
* **Expired Transients** — Removes expired temporary cached options left behind in `wp_options`.

= Minimal UI =

Before you optimize, the plugin shows a quick summary of how much bloat was found (e.g. "320 Revisions found"). Then click **Optimize Database Now** — that's it.

= Why Minimal? =

Unlike heavy database plugins with dozens of checkboxes, this tool focuses on the four cleanup tasks that deliver the biggest impact for most WordPress sites. No bloat in the plugin itself.

== Installation ==

1. Upload the `spp-minimal-db-optimizer` folder to the `/wp-content/plugins/` directory, or install through the WordPress Plugins screen.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **Tools → DB Optimizer** to view your bloat summary and optimize.

== Frequently Asked Questions ==

= Will this delete my published posts? =

No. Only post revisions, old trash items, spam comments, and expired transients are removed. Published content is never touched.

= Should I back up my database first? =

Yes. Although the plugin only targets safe cleanup categories, we always recommend a backup before any database maintenance.

= How old must trash items be before they are deleted? =

The plugin respects WordPress's `EMPTY_TRASH_DAYS` setting (30 days by default). Only items in the Trash longer than that period are permanently deleted.

= Does this plugin store any data? =

No. The plugin does not create custom tables or save options. It scans and cleans on demand.

== Screenshots ==

1. Bloat summary and one-click optimize button on the Tools → DB Optimizer screen.

== Changelog ==

= 1.0.0 =
* Initial release.
* Scan and clean post revisions, trash items, spam comments, and expired transients.
* Minimal admin UI with bloat summary and one-click optimization.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
