This is for a site that has been “optimized” by multiple plugins and may have .png, .jpg, and .webp versions of each image along with backups. This guide will tach you how to remove everything that is unneeded.

  1. Take a backup of the entire wp-config folder or the whole site.
  2. In any current image optimizers or caching tools that have image optimization built-in (Such as LiteSpeed), see if there is an option to revert to the original unoptimized images. Enable that if so.
  3. Disable any .webp functionality.
  4. If a plugin supports removing backups or the optimized images, run those processes.
  5. Disable any image optimization tools.
  6. Via FTP figure out where the most files are and remove any unneeded .zip backups and check the image file structure. Spot any still existing .webp images or .bk.optm.jpg image extensions.
  7. Via SSH remove all .webp and backup files. CD to the site Uploads folder and then run the following commands. You can exclude -delete to view all files first.
    • find . -name “*.bk.optm.jpg” -type f -delete
    • find . -name “*.bk.optm.jpeg” -type f -delete
    • find . -name “*.bk.optm.png” -type f -delete
    • find . -name “*.webp” -type f -delete
  8. Make sure the site is still working.
  9. Run one single optimization tool again. We recommend WP compress to optimize the local files and then serve them in .webp format from a CDN. (not stored locally)
in ServerWordpress

Related Articles