Opti Ninja Image Optimizer helps you optimize and compress WordPress images directly from your Media Library. Reduce image file sizes, convert images to WebP and AVIF, improve page speed, and boost Core Web Vitals without changing image URLs, filenames, alt text, or attachment metadata. Connect your
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 6.6 and PHP 8.0.
SourceWordPress plugins · Dec 5, 2026
01 / Source details
Aboutthistool.
Opti Ninja Image Optimizer helps you optimize and compress WordPress images directly from your Media Library. Reduce image file sizes, convert images to WebP and AVIF, improve page speed, and boost Core Web Vitals without changing image URLs, filenames, alt text, or attachment metadata.
Connect your WordPress site to your opti.ninja account and optimize JPEG, PNG, WebP, AVIF, and HEIC images individually or in bulk.
Why use Opti Ninja?
Image optimization for WordPress
Image compression for JPEG, PNG, WebP, AVIF, and HEIC
Bulk image optimization for your Media Library
WebP converter and AVIF converter
Reduce image file sizes
Improve page speed and Core Web Vitals
Automatic image optimization for new uploads
Background image optimization jobs
Optional backups with one-click restore
Preserve image URLs, filenames, alt text, and metadata
Features
Optimize the full-size image and selected WordPress-generated image size variants
Bulk image optimization for your entire Media Library with progress tracking, live log, pause, resume, and cancel
Background image optimization processing — leave the page and optimization continues automatically
Filter bulk jobs by upload date range, minimum file size, and maximum number of images
Automatically optimize and compress newly uploaded images in the background, during upload, or manually
Compress JPEG, PNG, WebP, AVIF, and HEIC images with configurable quality settings
Convert image formats to WebP, AVIF, HEIC, JPEG, and PNG
Generate additional output formats alongside the optimized original image
Progressive JPEG and metadata stripping options
Choose which image sizes to optimize, including full size, thumbnail, medium, large, and registered theme sizes
Optional backup of original image files before replacement
One-click restore of original images
Display image savings per file, including percentage and file size reduction
Preserve image URLs, filenames, alt text, titles, and attachment metadata
Connect using your opti.ninja account credentials or API key
View token balance, account quota, and optimization capacity estimates
Optimize images directly from the Media Library list view, grid view, and attachment sidebar
Reset optimization status metadata without changing optimized files on disk
Supported image formats
JPEG, PNG, WebP, AVIF, and HEIC/HEIF.
Requirements
WordPress 6.6 or later
PHP 8.0 or later
A free or paid opti.ninja account
Token usage
Each WordPress image (attachment) uses one token from your opti.ninja account. That token covers all selected image size variants and any additional output formats generated for that image.
Tokens, starter trial images, monthly free credits, and hourly limits are tracked per opti.ninja account (one shared wallet per account). Every connected WordPress site on that account draws from the same balance — including localhost, staging, and production URLs. Connecting additional sites does not create separate optimization budgets.
The one-time starter trial for unverified accounts may depend on which production domain first registered; that rule only affects whether starter credits are granted. It does not split or duplicate ongoing quota per site. Non-production URLs do not get a separate free optimization pool.
External services
This plugin communicates with the opti.ninja API at https://opti.ninja/api/v1 and the public API at https://opti.ninja/api/public.
Depending on how you use the plugin, the following data may be sent:
Image optimization (POST /optimize-sync) — image file data is sent for image compression and optional format conversion. Images are processed on opti.ninja servers and are not stored permanently.
Account registration and connection (POST /connections/register, POST /connections/login, POST /connections/api-key, DELETE /connections/) — email and site URL when you create an account in WordPress; credentials or API key when connecting; site metadata (name, URL, WordPress version, plugin version) on each connection.
Account status and email verification (GET /account/status, POST /account/verify-email-code, POST /account/resend-verification, POST /account/change-email) — verification state and starter quota for the plugin banner; 6-digit code and link in email.
On every authenticated optimization and status request — normalized site URL in the X-Site-URL header.
Quota information (GET /jobs/quota) — retrieves token balance, quota information, and subscription details.
Token packages (GET /token-packages) — retrieves available token packages for purchase suggestions inside the plugin.
See the opti.ninja privacy policy and terms of service:
https://opti.ninja/privacy.html
https://opti.ninja/terms-of-service.html
Backup folder
When backups are enabled, original image files are moved to:
wp-content/uploads/Opti.ninja Backups/
The original uploads folder structure is preserved before optimized files replace the originals.
See it in action
Screenshots & previews.
Settings page with account connection, image optimization settings, and backup optionsSettings for automatic image optimisation and backup structureMedia Library optimization column with image savings and action buttonsOptimisation details for each image site versionBulk image optimization page with filters, progress tracking, and live logOutput formats tab with compression controls for JPEG, PNG, WebP, and AVIFBulk optimisation progress and log
02 / Source details
Gettingstarted.
01Upload the plugin folder to /wp-content/plugins/ or install through the WordPress plugins screen.
02Activate the plugin through the Plugins screen.
03After activation, follow the setup wizard (or open Settings → Opti Ninja Setup) to create a free account or log in.
04Configure image compression settings, output formats, and image size selections.
05Optimize individual images from Media → Library or run Media → Bulk Optimize for bulk image optimization.
03 / Source details
Frequently asked questions.
How do I connect my account?
Open Settings → Opti Ninja and log in using your opti.ninja username and password. Alternatively, use an API key from your opti.ninja dashboard. API keys start with optn_.
What is image optimization?
Image optimization reduces image file sizes while maintaining visual quality. Smaller images load faster, improve page speed, and can help improve Core Web Vitals scores.
How do I compress images in WordPress?
Opti Ninja compresses JPEG, PNG, WebP, AVIF, and HEIC images directly from your WordPress Media Library.
Does image compression improve Core Web Vitals?
Yes. Reducing image file sizes can improve loading performance and contribute to better Core Web Vitals metrics.
Does this change image URLs or filenames?
No. Optimized images replace the existing files at the same location. Image URLs, filenames, attachment metadata, alt text, and titles remain unchanged.
Can I convert images to WebP or AVIF?
Yes. You can automatically generate WebP and AVIF versions of your images. Additional output formats are stored alongside the optimized original image.
Can I restore original images?
Yes. If backups were enabled during optimization, click Restore Original to recover the original image files.
How does bulk image optimization work?
Go to Media → Bulk Optimize, configure your optimization settings, and start the job. Bulk image optimization runs in the background and continues even if you leave the page.
What happens when I uninstall the plugin?
Plugin settings and optimization metadata are removed. Optimized image files and backups remain on disk unless manually deleted.
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati