Opti Ninja Image Optimizer – Compress Images, WebP & AVIF

Description

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.

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 connection (POST /connections/login, POST /connections/api-key, DELETE /connections/) — your opti.ninja credentials or API key, plus basic site metadata such as site name, site URL, WordPress version, and plugin version.
  • 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.

Screenshots

Installation

  1. Upload the plugin folder to /wp-content/plugins/ or install through the WordPress plugins screen.
  2. Activate the plugin through the Plugins screen.
  3. Go to Settings Opti Ninja and connect your opti.ninja account using your login credentials or API key.
  4. Configure image compression settings, output formats, and image size selections.
  5. Optimize individual images from Media Library or run Media Bulk Optimize for bulk image optimization.

FAQ

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.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Opti Ninja Image Optimizer – Compress Images, WebP & AVIF” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.1

  • Declare compatibility with WordPress 7.1

1.0.0

  • Initial release
  • Media Library image optimization with savings display, optimize, and restore actions
  • Bulk image optimization with background processing, progress tracking, live log, pause, resume, and cancel
  • Automatic image optimization for new uploads
  • Compression settings for JPEG, PNG, WebP, and AVIF
  • Progressive JPEG and metadata stripping options
  • Optional additional output formats including WebP, AVIF, HEIC, JPEG, and PNG
  • Configurable image size selection
  • Optional backup of original image files with one-click restore
  • Account connection using opti.ninja login credentials or API key
  • Token balance, quota information, and optimization capacity estimates
  • Media Library integration in list view, grid view, and attachment sidebar
  • Optimization status reset and troubleshooting tools