WP-Optimize combines database cleanup, page caching, image compression and file minification in one WordPress plugin. I’d use its free version when you need several of those jobs in one place, then enable only the modules your host or existing plugins aren’t already handling. Make a restorable database backup before running cleanup: WP-Optimize can delete data, but it can’t undo that deletion.

This is WP-Optimize by TeamUpdraft, with the plugin slug wp-optimize. The similarly named WPOptimizer, whose slug is wp-optimizer, is a different product.

Choose the jobs WP-Optimize should handle

Start with your host’s performance settings and your active plugins. Identify who already owns page caching, image compression and CSS/JavaScript processing. Leave overlapping WP-Optimize modules off until you’ve deliberately chosen a replacement.

JobFree starting point and paid boundary
CleanupClean selected categories of data and schedule cleanup. Premium adds more flexible per-task scheduling and optimization of specific database tables.
Page cacheCache and preload public pages. Premium adds features such as per-user or per-role caching and automatic Cloudflare cache-purge integration.
ImagesCompress images and convert to WebP. Premium adds its lazy-loading controls and unused-image cleanup.
FilesMinify HTML, CSS and JavaScript. Premium includes preload-key-request controls.

The developer’s free-versus-Premium feature table helps identify an upgrade that solves a specific missing job. You don’t need Premium just to select cleanup categories or turn on ordinary page caching.

Keep one page-cache plugin in charge. WP-Optimize’s cache compatibility guidance explains that competing page-cache plugins need the same advanced-cache.php file. If LiteSpeed Cache already handles page caching on your site, leave WP-Optimize’s cache off and consider only its other modules. Check your host’s plugin policy before enabling another cache layer.

Back up, then select the database cleanup

A database backup needs to exist before you delete anything. Confirm that it completed and that you know how to restore it; ticking a checkbox alone doesn’t establish that. UpdraftPlus is one backup option, and WP-Optimize provides an integration for taking a backup before cleanup.

Open WP-Optimize → Database → Optimizations. Read the task names and their reported counts, then select only data you intend to discard. Removing post revisions gives up earlier versions of those posts; clearing trashed content removes a recovery option. Unapproved comments may still be waiting for a moderation decision. Don’t select every category because the plugin lists it.

  1. Review the retention settings before selecting revision cleanup. Keep the recent history you still need.
  2. Select the cleanup categories you understand. Leave unfamiliar or warning-marked operations unchecked.
  3. If you use the UpdraftPlus integration, enable Take a backup with UpdraftPlus before doing this and confirm the backup succeeds.
  4. Click Run all selected optimizations. Review the result reported for each selected task.
  5. Open important posts and their editing screens, check comments and confirm that expected content is still available before scheduling the same cleanup.
WP-Optimize Optimizations panel with Run all selected optimizations
Confirm the backup and task selections before choosing Run all selected optimizations.

The official cleanup procedure documents these selection and backup controls. Its separate table-optimization instructions include an InnoDB override; I’d leave that override alone for routine housekeeping. Deleting unwanted records and rebuilding database tables are different operations.

WP-Optimize’s database restore explanation confirms that the plugin can’t restore a cleaned database itself. If you removed something needed, use the backup’s restore process rather than running another cleanup.

Enable page caching only for suitable pages

Once you’ve chosen WP-Optimize as the page-cache owner, open WP-Optimize → Cache and switch on Enable page caching. Use pretty permalinks; the developer documents limitations with plain ?p=1234 URLs and multilingual URLs that rely on query parameters.

Before relying on the cache, open Cache → Advanced settings → URLs to exclude from cache and review dynamic routes. Cart, checkout, account, custom login and personalized pages need particular attention. Some integrations declare pages uncacheable automatically; verify your own routes instead of assuming every store or membership plugin does so.

Leave caching for logged-in users off for a basic setup. A responsive design alone doesn’t need separate mobile cache files: use that option only when the server delivers different HTML to mobile visitors, such as a separate mobile theme. These conditions are explained in the plugin’s cache FAQ.

To check caching, visit a public page while signed out and reload it from the server. Without preloading, the first visit can build the cached page, so check a subsequent request too. Use View Page Source and look near the bottom for the Cached by WP Optimize comment. The official cache-check instructions explain that HTML minification, including another service’s processing, can strip this comment. Its absence alone doesn’t prove the cache is off.

Also verify behavior: change a harmless piece of content on a staging copy, purge the relevant cache and check that the signed-out page updates. Walk through login and any cart or account flow to confirm that private information stays private and actions still work. A cached home page doesn’t establish that the rest of the site is configured correctly.

Preloading builds cached pages before visitors request them, but it also makes requests to your server. Start conservatively and check hosting load before scheduling frequent runs. Cloudflare’s proxy can sit in front of the free plugin; WP-Optimize’s automatic Cloudflare purge integration is a separate Premium feature.

Keep originals before compressing images

If another image plugin already processes uploads, choose one image processor before starting a bulk job. In WP-Optimize → Images, choose a compression preference and begin with a small, representative selection. Prioritize retention of detail is the cautious starting point when fine image detail matters; Prioritize maximum compression favors smaller files. Compare photos, fine text and transparent graphics at the sizes visitors will see before applying that choice to the rest of your library.

Open Advanced options and enable Backup original images before compression if you want WP-Optimize’s restoration path. Review Automatically delete image backups too: a deletion schedule limits how long those originals remain available. Keep your separate site backup.

WP-Optimize image options with Backup original images enabled
Keep original images before compression, and review automatic backup deletion before relying on Restore all compressed images. View full size (opens in a new tab)

The official image-optimization walkthrough shows the compression preferences, original-file backups and restore controls. EXIF preservation is an option to choose, rather than something to assume is always enabled.

After a small batch, inspect the front end and confirm that the images load and their detail is acceptable. Enable automatic compression of newly added images only after you’re satisfied with the settings. WebP conversion is available in the free plugin; verify delivery on a real page rather than treating the presence of a converted file as proof that visitors receive it.

Change file processing one setting at a time

Leave WP-Optimize’s minification off if another tool already processes your CSS and JavaScript. If you choose WP-Optimize for that job, make changes on a staging copy and check navigation, forms, sliders and checkout after each change. Combining several settings at once makes a broken interaction harder to trace.

If a layout or button breaks, revert the latest setting and clear the generated caches before retesting. The developer’s JavaScript troubleshooting steps include containing each file in its own block, disabling merging and, if necessary, disabling JavaScript processing. Use that sequence to narrow the cause; don’t leave a broken form online to preserve a performance score.

Judge the job completed, then measure page speed

WP Engine’s optimization-plugin assessment describes WP-Optimize’s database cleanup as more useful for large content libraries than for brand-new sites. That’s a useful selection criterion: a new database with little disposable data has less housekeeping to do. It doesn’t establish a loading-time improvement for your site.

I’d choose WP-Optimize for its combination of maintenance tools and selective controls, rather than a promised speed percentage. Database space recovered, cached-page response time and image bytes are different outcomes. Record the outcome of the module you changed, then compare repeated page measurements under the same URL, device, test location and cache conditions.

A slow checkout or dashboard can still need investigation after public-page caching works. WP Engine’s database best-practice guidance separates unwanted data from query, indexing and server-resource issues, and recommends a backup and staging before database changes. Repeated cleanup isn’t a substitute for identifying the remaining bottleneck.

Check the symptom before running more optimization

IssueNext check
Old contentPurge the cache layer serving the page. Review host/CDN caches as well as WP-Optimize; don’t delete database content to fix a stale page.
Lost contentStop cleanup and identify the last usable backup. Cache purging can’t restore deleted revisions or comments.
Temp dataWordPress and plugins recreate transient data when needed. Reappearance alone doesn’t mean cleanup failed.
Little savingCheck whether there was much unwanted data or uncompressed image content to remove. Don’t increase deletion just to obtain a larger number.
Broken controlsRevert the latest CSS/JavaScript processing change, clear caches and retest the affected action.

Choose the smallest set of modules that fills a real gap in your current setup. You can browse the plugin directory for other tasks without giving several plugins responsibility for the same cache or image files.

Setup guide

Install and make the first change

  1. Confirm your host permits the plugin and identify existing cache, image and file-optimization tools. Make a restorable site backup.
  2. In WordPress, open Plugins → Add New Plugin, search for WP-Optimize, verify the TeamUpdraft product and click Install Now → Activate. The official installation instructions cover this route.
  3. For database cleanup, review retention and task selections under WP-Optimize → Database → Optimizations. Confirm a completed database backup before clicking Run all selected optimizations.
  4. Keep page caching off if your host or another page-cache plugin owns it. Otherwise enable it under WP-Optimize → Cache, review exclusions and test signed-out public and private-page behavior.
  5. For images, preserve originals and check backup-deletion settings before a small compression batch. Add minification separately, with a check of important interactions after each change.
  6. Verify content, images and critical actions before scheduling cleanup or bulk processing. Keep the plugin updated through WordPress.