Title: WPFIA Image Optimizer
Author: WPFIA
Published: <strong>October 7, 2026</strong>
Last modified: October 7, 2026

---

Search plugins

![](https://ps.w.org/wpfia-image-optimizer/assets/banner-772x250.png?rev=3731931)

![](https://ps.w.org/wpfia-image-optimizer/assets/icon-256x256.png?rev=3731931)

# WPFIA Image Optimizer

 By [WPFIA](https://profiles.wordpress.org/tofayelamin/)

[Download](https://downloads.wordpress.org/plugin/wpfia-image-optimizer.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/wpfia-image-optimizer/#description)
 * [Reviews](https://wordpress.org/plugins/wpfia-image-optimizer/#reviews)
 *  [Installation](https://wordpress.org/plugins/wpfia-image-optimizer/#installation)
 * [Development](https://wordpress.org/plugins/wpfia-image-optimizer/#developers)

 [Support](https://wordpress.org/support/plugin/wpfia-image-optimizer/)

## Description

**WPFIA Image Optimizer** is an all-in-one, high-performance image optimization,
WebP/AVIF conversion, and Google Core Web Vitals acceleration suite built specifically
for WordPress and WooCommerce.

WPFIA Image Optimizer processes and converts images directly on your local WordPress
hosting server using native PHP GD or Imagick extensions, eliminating third-party
cloud compression dependencies.

Convert images, reduce page weight by up to 85%, improve Google PageSpeed scores,
and deliver modern next-gen images without requiring external cloud compression 
subscriptions.

### ⚡ Core Features & Capabilities

 1.  **100% On-Server Unlimited WebP & AVIF Conversion (Zero Cloud Credits):**
 2.   * Process images without third-party API keys or external credits.
      * Automatically converts newly uploaded media and all registered thumbnail sizes(`
        thumbnail`, `medium`, `large`, `woocommerce_single`, etc.).
      * Preserves full transparency for PNGs and alpha channels.
      * Full support for Animated GIF to WebP conversion with complete frame rate and
        animation preservation.
 3.  **Google Core Web Vitals: LCP Hero Booster:**
 4.   * Eliminates delayed above-the-fold hero images caused by generic lazy loading.
      * Automatically identifies the primary featured or hero image on posts, pages,
        and WooCommerce products.
      * Dynamically applies `fetchpriority="high"`, `decoding="async"`, and removes`
        loading="lazy"` from the viewport hero image.
      * Preloads the WebP hero image in the HTML `<head>` for faster rendering.
 5.  **Google Core Web Vitals: CLS Layout Shift Eliminator:**
 6.   * Prevents jarring screen jumping while images load.
      * Scans content images and dynamically calculates and injects missing `width`
        and `height` attributes to preserve exact visual aspect ratios.
 7.  **Zero-Configuration `<picture>` Tag Responsive Delivery:**
 8.   * No complex `.htaccess` modifications, Nginx rewrite configurations, or server
        restarts required.
      * Delivers modern WebP/AVIF images via semantic `<picture>` HTML elements with
        automatic graceful fallback to original JPEG/PNG for older legacy browsers.
      * Fully compatible with Cloudflare, LiteSpeed Cache, WP Rocket, Nginx, Apache,
        and Redis object cache.
 9.  **Intelligent Memory Guard Engine (Zero 500 Out-of-Memory Errors):**
 10.  * High-resolution images (4K, 8K, 24MP+ DSLR uploads) can strain shared hosting
        servers during resizing.
      * Dynamic memory allocator calculates required memory before image processing
        begins and temporarily increases limits to prevent fatal crashes.
 11. **Deep WooCommerce Integration:**
 12.  * Automatically optimizes single product main gallery images, catalog thumbnails,
        variation swatches, and cart previews out-of-the-box.
      * Drastically speeds up product listing pages to improve conversion rates and
        lower bounce rates.

### 🌟 Full Feature Summary

 * **WooCommerce Single Product Quick Optimize Metabox:** Direct 1-click optimization
   metabox right on the WooCommerce product edit screen. Check product gallery WebP
   conversion status and optimize instantly without visiting settings.
 * **Storage Saver (Delete Originals Option):** Optional toggle to safely delete
   original uncompressed JPG/PNG source files after successful WebP generation, 
   reclaiming up to 50% server disk space on budget shared hosting.
 * **Frontend Admin Bar Performance Inspector:** Instant live telemetry in the top
   admin bar showing WebP image status, LCP preloading verification, and quick product
   optimization shortcuts.
 * **Advanced Post-Type Exclusion Rules:** Exclude specific post types (e.g. client
   invoices, receipts, certificates, private downloads) while converting blog posts
   and WooCommerce products.
 * **Media Library Instant Action Column:** View compression badges and trigger 
   1-click single image optimizations right inside `Media > Library` without opening
   plugin settings.
 * **Full-Page CSS Background WebP Buffer:** Seamlessly converts background images
   in Elementor, Divi, Gutenberg, theme headers, and footers into modern WebP.
 * **Smart Image SEO & Missing ALT Text Auto-Generator:** Automatically injects 
   descriptive, humanized ALT text onto images lacking ALT tags to boost Google 
   Image Search rankings.
 * **Low-Quality Image Placeholder (LQIP):** Eliminates Cumulative Layout Shift (
   CLS) with instant dominant color placeholders while lazy images load.
 * **1-Click Asynchronous Bulk Converter:** Safely processes your entire media library
   in batches with an interactive real-time progress bar.
 * **Background WP-Cron Auto-Optimizer:** Automatically detects and converts unoptimized
   images quietly in the background without needing your browser tab open.
 * **Custom Folder Optimizer:** Optimize images outside the WordPress uploads directory—
   including active theme templates, child themes, and custom asset folders.
 * **Safe SVG Uploads & Sanitizer:** Enable secure vector SVG uploads with built-
   in XML/XSS sanitization to protect your site against malicious script injection.
 * **Visual Before/After Lightbox Inspector:** Compare original and optimized images
   side-by-side with an interactive split slider and live file size savings metrics.
 * **Original Master File Protection:** Keeps your original master images untouched
   so you can restore or regenerate anytime.
 * **Automatic Media Cleanup:** Deleting an image from your WordPress Media Library
   automatically purges all corresponding `.webp` and thumbnail files to keep your
   server storage clean.
 * **WP-CLI Support:** Built-in command line interface (`wp wpfia optimize`) for
   developers, DevOps, and automated deployment pipelines.
 * **Ultra-Lightweight & Clean Code:** Built with 100% Vanilla JavaScript and CSS(
   < 15KB footprint). Zero external frameworks, zero CDNs, and zero telemetry tracking.

## Screenshots

[⌊Dashboard & Analytics: Live storage savings dashboard showing total images optimized,
disk space saved, and server engine diagnostics.⌉⌊Dashboard & Analytics: Live storage
savings dashboard showing total images optimized, disk space saved, and server engine
diagnostics.⌉[

**Dashboard & Analytics:** Live storage savings dashboard showing total images optimized,
disk space saved, and server engine diagnostics.

[⌊WooCommerce Single Product Metabox: 1-click instant optimization right inside 
the product editor with live compression stats.⌉⌊WooCommerce Single Product Metabox:
1-click instant optimization right inside the product editor with live compression
stats.⌉[

**WooCommerce Single Product Metabox:** 1-click instant optimization right inside
the product editor with live compression stats.

[⌊Bulk Optimizer: Asynchronous batch conversion engine with real-time percentage
progress bar and time estimation.⌉⌊Bulk Optimizer: Asynchronous batch conversion
engine with real-time percentage progress bar and time estimation.⌉[

**Bulk Optimizer:** Asynchronous batch conversion engine with real-time percentage
progress bar and time estimation.

[⌊Core Web Vitals Settings: Automated LCP Hero Booster and CLS Layout Shift prevention
configuration.⌉⌊Core Web Vitals Settings: Automated LCP Hero Booster and CLS Layout
Shift prevention configuration.⌉[

**Core Web Vitals Settings:** Automated LCP Hero Booster and CLS Layout Shift prevention
configuration.

[⌊Visual Comparison Inspector: Side-by-side split comparison lightbox examining 
visual quality retention and byte reduction.⌉⌊Visual Comparison Inspector: Side-
by-side split comparison lightbox examining visual quality retention and byte reduction
.⌉[

**Visual Comparison Inspector:** Side-by-side split comparison lightbox examining
visual quality retention and byte reduction.

[⌊Next-Gen Media Settings: AVIF format conversion, animated GIF processing, and 
custom image resizing controls.⌉⌊Next-Gen Media Settings: AVIF format conversion,
animated GIF processing, and custom image resizing controls.⌉[

**Next-Gen Media Settings:** AVIF format conversion, animated GIF processing, and
custom image resizing controls.

[⌊Automation & Folders: Background WP-Cron schedule manager, custom theme directory
optimization, and post-type exclusion rules.⌉⌊Automation & Folders: Background WP-
Cron schedule manager, custom theme directory optimization, and post-type exclusion
rules.⌉[

**Automation & Folders:** Background WP-Cron schedule manager, custom theme directory
optimization, and post-type exclusion rules.

## Installation

 1. Upload the `wpfia-image-optimizer` folder to the `/wp-content/plugins/` directory,
    or install directly via **Plugins > Add New > Upload Plugin**.
 2. Activate the plugin through the **Plugins** screen in WordPress.
 3. Navigate to **Image Optimizer** in your WordPress admin menu.
 4. Review your server capability diagnostics and set your desired compression quality(
    recommended: 85%).
 5. Navigate to **Bulk Optimizer** and click **Start Bulk WebP Conversion** to optimize
    your existing media library in 1 click!

## FAQ

### Does this plugin require an external API key or paid third-party subscription?

No! All image conversions take place directly on your own WordPress hosting server
using native PHP GD or Imagick extensions. There are zero third-party cloud dependencies,
no external servers, and no recurring image credit fees.

### Will converting images slow down my server or run out of memory?

No. WPFIA Image Optimizer includes an intelligent **Memory Guard Engine** and processes
bulk images in asynchronous batches. This prevents server timeouts and 500 Out-of-
Memory crashes, even on budget shared hosting environments.

### Are my original JPEG and PNG images deleted?

By default, WPFIA preserves your original master files as a permanent safety backup
and for fallback delivery to older browsers. You can also restore original images
at any time with a single click. If you are on a budget shared hosting plan with
limited storage, you can enable the optional **Storage Saver** setting to permanently
remove original JPG/PNG files and reclaim up to 50% hosting disk space.

### Can I optimize WooCommerce product images directly from the product edit screen?

Yes! WPFIA adds a dedicated **⚡ WPFIA Image Optimizer** metabox directly on the
WooCommerce product edit screen. It displays live compression status for the product’s
featured photo and gallery images, with a 1-click **Optimize Product Images Now**
button.

### How does the LCP Hero Booster improve Google PageSpeed?

Google PageSpeed heavily penalizes websites when the primary hero or featured image
is delayed by generic lazy loading plugins. WPFIA automatically removes `loading
="lazy"` from the first viewport image, adds `fetchpriority="high"`, and injects
a preload link into the HTML `<head>`, cutting seconds off your Largest Contentful
Paint (LCP) time.

### Does it support Animated GIFs and AVIF?

Yes! WPFIA supports next-gen AVIF conversion as well as animated GIF conversion 
into ultra-compact animated WebP format while preserving complete frame animation
and speed.

### Can I safely upload SVG vector files?

Yes. WPFIA includes a safe SVG upload module with an advanced XML and XSS sanitizer
that strips out potentially harmful scripts and external entity declarations before
saving to the media library.

### Does it work with page builders like Elementor, Divi, and Gutenberg?

Yes. WPFIA is 100% compatible with Gutenberg Block Editor, Elementor, Divi, Beaver
Builder, Bricks, and WooCommerce shop templates.

### Is it compatible with caching plugins and CDNs?

Yes. Because WPFIA delivers modern images via standard semantic `<picture>` HTML
markup, it works seamlessly with Cloudflare, LiteSpeed Cache, WP Rocket, W3 Total
Cache, Fastly, and Nginx reverse proxies without requiring custom server rewrite
rules.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“WPFIA Image Optimizer” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ WPFIA ](https://profiles.wordpress.org/tofayelamin/)
 *   [ Freemius ](https://profiles.wordpress.org/freemius/)

[Translate “WPFIA Image Optimizer” into your language.](https://translate.wordpress.org/projects/wp-plugins/wpfia-image-optimizer)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wpfia-image-optimizer/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wpfia-image-optimizer/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wpfia-image-optimizer/)
by [RSS](https://plugins.trac.wordpress.org/log/wpfia-image-optimizer/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial production release of WPFIA Image Optimizer.
 * Native on-server WebP and AVIF conversion engine supporting PHP GD and Imagick.
 * WooCommerce Single Product Quick-Optimize metabox with 1-click instant compression.
 * Storage Saver mode to optionally delete original master JPG/PNG files and free
   up 50% hosting disk space.
 * Frontend WordPress Admin Bar telemetry inspector and Core Web Vitals monitor.
 * Advanced Post-Type and Taxonomy exclusion rules for enterprise installations.
 * Automated conversion hook on media upload (`wp_generate_attachment_metadata`).
 * Asynchronous batch media library bulk converter with real-time progress bar.
 * Google Core Web Vitals LCP Hero Booster (`fetchpriority="high"` and eager loading).
 * Google Core Web Vitals CLS layout shift prevention (automatic dimension and aspect-
   ratio injection).
 * Semantic `<picture>` element delivery with automatic legacy browser fallback.
 * Animated GIF to WebP conversion with frame preservation.
 * Safe SVG vector upload engine with built-in XML/XSS sanitizer.
 * Intelligent Memory Guard Engine preventing PHP Out-of-Memory crashes on large
   images.
 * Background WP-Cron auto-optimizer for hands-free background processing.
 * Custom folder optimizer for theme templates and external directories.
 * Deep WooCommerce integration for product galleries and catalog thumbnails.
 * Interactive before/after split comparison lightbox inspector.
 * Dedicated WP-CLI commands (`wp wpfia optimize`) for command-line management.
 * Auto-cleanup on media deletion to prevent orphaned files.

## Meta

 *  Version **1.0.0**
 *  Last updated **16 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **7.1.3**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [core web vitals](https://wordpress.org/plugins/tags/core-web-vitals/)[image compression](https://wordpress.org/plugins/tags/image-compression/)
   [image optimizer](https://wordpress.org/plugins/tags/image-optimizer/)[speed](https://wordpress.org/plugins/tags/speed/)
   [webp](https://wordpress.org/plugins/tags/webp/)
 *  [Advanced View](https://wordpress.org/plugins/wpfia-image-optimizer/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wpfia-image-optimizer/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wpfia-image-optimizer/reviews/)

## Contributors

 *   [ WPFIA ](https://profiles.wordpress.org/tofayelamin/)
 *   [ Freemius ](https://profiles.wordpress.org/freemius/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wpfia-image-optimizer/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://wpfia.com)