Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/divbreeker/budi-webp-optimizer/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Convert smarter. Load faster.
A lightweight, high-performance image optimization plugin by BUDI Studio designed to reduce image file sizes, preserve visual quality, and accelerate WordPress & WooCommerce websites.
Features • Modes • Safety & Rollback • Installation • Architecture
⚡ Key Highlights
- Ultra-Lightweight (~52 KB): Zero external composer packages, heavy node modules, or bulky third-party dependencies.
- Native WordPress Image Processing: Uses
wp_get_image_editor()with GD and Imagick server WebP encoders. - Zero Frontend Bloat: Admin scripts and CSS are only enqueued on plugin admin screens. Zero frontend scripts injected.
- Pixel-Perfect Modern Dashboard: Real-time stats, animated SVG donut chart, storage savings calculator, and batch AJAX background processing.
- Preserved Attachment IDs: Maintains WordPress Attachment IDs across all conversions so WooCommerce product galleries, Elementor layouts, and theme links never break.
- 1-Click Rollback & Backup Management: Original unmodified images are automatically backed up to a protected directory when enabled. Restore anytime or permanently delete backups to reclaim server disk space.
- Dedicated Management Hubs: Purpose-built views for Overview Dashboard, Media Library Optimizer, Bulk Conversion Center, Backup Management, and Diagnostic Reports.
🛡️ Safe Conversion Modes
1. Keep Original and Create WebP
- Original
.jpg/.pngfiles remain untouched in the WordPress uploads directory. - WebP variants are generated adjacent to the original image and intermediate thumbnail sizes.
- Safest mode for legacy themes and third-party plugins.
2. Replace Original with WebP
- Safely changes the attachment format to WebP.
- Automatically creates an untouched original backup in
wp-content/uploads/budi-webp-optimizer-backups/protected with.htaccessandindex.php. - Updates attachment metadata and registered thumbnail sizes to point to
.webp. - Preserves the exact WordPress attachment ID.
- Enables 1-click restore back to original JPG/PNG at any time.
🚀 Quick Actions & Bulk Processing
- Convert All Images: Queues eligible images in asynchronous AJAX chunks (5–10 images per batch) to prevent PHP timeouts and memory exhaustion.
- Select & Convert: Multi-select images in the dashboard table and run targeted batch optimizations.
- Automatic Uploads: Automatically converts incoming uploads into WebP when added to the Media Library.
- Side-by-Side Preview: Inspect original vs. WebP visual quality and compare file size reductions before saving.
📦 Installation
From GitHub Release / ZIP:
- Download
budi-webp-optimizer.zip. - In your WordPress admin, go to Plugins > Add New > Upload Plugin.
- Choose the ZIP file and click Install Now.
- Click Activate Plugin.
- Navigate to WebP Optimizer > Dashboard from the sidebar.
Via Git Clone:
cd wp-content/plugins/
git clone https://github.com/DivBreeker/budi-webp-optimizer.git budi-webp-optimizer
📁 Repository Structure
budi-webp-optimizer/
├── budi-webp-optimizer.php # Main plugin bootstrap & constants
├── uninstall.php # Clean uninstallation policy
├── readme.txt # WordPress.org standard metadata
├── LICENSE # GPL-2.0+
├── includes/
│ ├── Admin/ # Dashboard controller, menus, settings
│ ├── Conversion/ # WebP encoder, validator, quality manager
│ ├── Media/ # Attachment model, scanner, thumbnail replacer
│ ├── Backup/ # Backup manager & 1-click restore logic
│ ├── Queue/ # Background AJAX batch processor
│ ├── Compatibility/ # Server GD & Imagick WebP diagnostics
│ ├── Security/ # Nonce verification, permission & path safety
│ └── Helpers/ # Formatting, logger, path utilities
├── templates/ # Dashboard, settings, backups, and reports views
├── assets/ # Admin CSS, vanilla/jQuery JS, brand SVG
└── languages/ # i18n translation template
📄 License
This project is licensed under the GNU General Public License v2.0 or later - see the LICENSE file for details.
Developed with ❤️ by BUDI Studio.