Clean your database for real, whatever its size is, while focusing on what can make it faster. An user-friendly UI will help you to make everything perfect. If there are too many issues to delete, it will use asynchronous requests to avoid timeouts. You will more information here: Database Cleaner on Meow Apps.
There are others database cleaners on the market, but since I felt like there were rather incomplete and old, based on my experiences with modern UIs and ways of coding plugins, I had to create this new one. Here are the current features:
- The Auto Clean Button. It will clean everything you set on Auto in Database Cleaner. That will make your life easier, once everything is set up.
- Clean the Usual Items: Revisions, drafts, trash, useless metas, useless comments, useless users, transients, etc. If I missed something, let me know: I can add support for new items right away.
- Clean your Post Types. List your post types, and help you getting rid of data in unimportant post types such as the ones used for temporary data such as logs. Those slow down your WordPress more than anything else!
- Clean your Tables. Display all your tables, their sizes, and help you getting rid of the useless ones.
- Clean your Options. Display all your options, their sizes, and help you getting rid of the useless ones. You can also set your options as being not autoloaded.
- Clean your Cron Jobs. Display all your jobs, their schedules, and help you getting rid of the useless ones.
For Post Types, Tables, Options and Cron Jobs, Database Cleaner has its own references in order to tell you by which plugins or themes they are use. For full support of this, you will need the Pro Version.
IMPORTANT: Please prepare a backup of your database before using this plugin! Better be safe than sorry 🙂
Why this plugin?
There are other similar cleaners on the market. I used them, but I always felt they were imperfect, with old UI, somehow frozen in time. There were also missing Post Types support, but I could handle this manually. At the end of 2021, I had issues with my databases (which were too big) and all those plugins simply failed; this was the last straw: I started to develop a fresh and new database cleaner plugin, with a PHP 7 base, modern concepts, and build to actually speed-up WordPress. I am now resolved to make it work for everyone, adding all the features you absolutely need.
- Upload the plugin to WordPress.
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Meow Apps -> Database Cleaner in the sidebar and check the appropriate options.
- Click on the button to clean your database automatically.
Contributors & Developers
“Database Cleaner and Optimizer (Built for 2022+)” is open source software. The following people have contributed to this plugin.Contributors
“Database Cleaner and Optimizer (Built for 2022+)” has been translated into 2 locales. Thank you to the translators for their contributions.
Interested in development?
- Fix: It was not possible to select many tables at once.
- Fix: Assigning a plugin to a specific cron task wasn’t working.
- Add: New plugins support.
- Update: Little changes in the UI and how it works, should feel natural.
- Update: Assign Plugin now refreshes the items right away.
- Update: Assign Plugin now features a filter to associate to plugins faster.
- Update: Better UX when the plugin is busy.
- Info: You are also welcome to leave a review here.
- Fix: Could not delete or optimize tables without prefix.
- Update: Use a button instead of a link to associate an item with a plugin.
- Add: Now possible to select a range of checkboxes/items by using SHIFT.
- Fix: There was a little UI issue with the columns.
- Add: Deep-Cleaning option for Pro.
- Add: We can now see/check all the data of all Posts through paging (by using the glass magnifier icon).
- Update: My library Neko UI was improved (that will impact the UI positively).
- Update: Enhanced the loading of the data of the first tab, for a smoother and nicer experience.
- Update: Additional support for other plugins.
- Update: Lot of little UI enhancements.
- Update: Additional support for other plugins.
- Fix: The handling of the _user_roles option was wrong.
- Update: Icons have been updated; the trash means some data will be removed, while the cross means the item will be entirely removed (in a case of a table, it means it will be dropped).
- Update: Better handling of the Used By column with support of regexp.
- Update: Little UI enhancements to avoid extra clicks.
- Fix: Retrieve better option value for the modal.
- Add: We can now check what is the data stored by an option.
- Fix: Better UI for handling the Used By.
- Fix: Better support for ACF and various other plugins.
- Fix: Little UI enhancements to handle the “Used By” data.
- Add: Support for item used by frameworks.
- Fix: Better support for Elementor.
- Update: Lot of UI enhancements. More to come next week!
- Fix: Removed some warnings on the PHP side which were sometimes breaking the asynchronous requests.
- Add: We can now copy/paste the whole customized data related to Used By.
- Add: Sort by name, size, used by, etc.
- Add: Search for name, used by, etc.
- Fix: There was an issue with the count for transients.
- Update: Better filters, improved UI.
- Add: User can now choose a plugin for the “Used By” column.
- Fix: Removed a few warnings and enhanced the filters.
- Fix: The count was wrong for Post Types.
- Fix: Better handling of “Used By” overrides (to make sure we get some better information about how an item is used).
- Add: Checkbox to hide the items “Used by WordPress”.
- Add: Paging for Post Types, Tables.
- Fix: Statistics were not updated after Auto Clean.
- Update: Again, many UI enhancements.
- Update: Many UI enhancements, buttons were simplified and actions moved on the left (to make it clearer which item it is linked to), smoother busy statuses.
- Add: Autoload is now a checkbox (which we can enabled/disabled).
- Update: Changed the way (and filters) the items can be selected in bulk.
- Fix: There was some issues with deleting cron jobs.
- Fix: Little UI issues.
- Update: Possibility to select more than one item at the time.
- Add: Cron Tabs.
- Fix: The percentage was sometimes off.
- Add: Support for Meow Apps plugins.
- Add: Ability to see how much the DB increased or decreased over time.
- Add: Checkbox to select tables.
- Update: Improved UI.
- Fix: Compatibility with MariaDB.
- Add: Optimize for tables.
- Update: Better UI for Options.
- Update: UI enhancements.
- Add: Support for “Used By” for WordPress Core, WooCommerce, and the whole system behind it (actions, filters).
- Update: Better SQL queries.
- Update: Better UI.
- Add: A way to look into the data which is going to be removed.
- Add: More ways to delete in bulk.
- Fix: A few UI bugs related to refreshing.
- Update: The UI is always evolving! Better and better! (and we are not done)
- Update: Better buffered deletions.
- Update: Dynamicity of the UI has improved a lot.
- Add: Finally, support for big installs, with buffered deletions!
- Update: A bunch of fixes and enhancements.
- Update: Doesn’t work with risk level anymore, but a simpler option.
- Update: UI improvements.
- Add: Logging.
- Update: More information about what the plugin is cleaning after clicking the Clean DB button.
- Update: Nice UI improvements.
- Add: Support for removing tables, and check by which plugins they are used.
- Add: Ignore status for Risk column.
- Info: Additional and various enhancements.
- Fix: The default Risk Treshold was too high.
- Update: Small improvements, tables percentages, etc.
- Add: Table statistics.
- Update: Improve UI (buttons, organization, etc).
- Info: First release.