Tudo em um: aceleração imbatível, melhoria no PageSpeed, armazenamento em cache, otimização de imagem/CSS/JS e muito mais...
MegaOptim Image Optimizer – Convert to WebP & AVIF, Compress Images Locally
Hospedagem WordPress com plugin MegaOptim Image Optimizer
Onde hospedar o plugin MegaOptim Image Optimizer?
Este plugin pode ser hospedado em qualquer provedor que tenha WordPress instalado. Recomendamos fortemente optar por uma empresa de hospedagem seguro, com servidores especializados para WordPress, como o serviço de hospedagem WordPress da MCO2.
Hospedando o plugin MegaOptim Image Optimizer em um provedor seguro
A MCO2, além de configurar e instalar o WordPress na versão mais nova para seus clientes, fornece o plugin WP SafePress, um sistema singular que assegura e otimiza seu site conjuntamente.
Por que a Hospedagem WordPress funciona melhor na MCO2?
A Hospedagem WordPress funciona melhor pois a MCO2 possui servidores otimizados para WordPress. A instalação de WordPress é diferente de uma instalação trivial, pois habilita imediatamente recursos como otimização automática de imagens, proteção da página de login, bloqueio de atividades maliciosas diretamente no firewall, cache avançado e HTTPS ativado por padrão. São recursos que potencializam seu WordPress para a máxima segurança e o máximo desempenho.
MegaOptim optimizes the images of your WordPress site on your own server. It creates WebP and AVIF copies of your JPEG, PNG and GIF images, serves them to browsers that support them, and can compress the originals in place. Nothing is uploaded anywhere, and there are no monthly limits.
What it does
- WebP and AVIF copies of every image and thumbnail size, kept next to the original. A copy that would be larger than the original is skipped.
- Delivery through
<picture>markup or Apache/LiteSpeed rewrite rules, with the original as the fallback for older browsers. A CDN URL can be set for the copies. - Compression in place for JPEG and PNG, with three presets: Lossless, Balanced and Smaller files. Advanced settings hold separate WebP and AVIF quality, resizing of large uploads, metadata and the thumbnail sizes to process.
- Backups and restore. Originals are backed up before they are changed, and any image can be restored, one at a time or all at once.
- Bulk optimization of the whole Media Library with one button. It runs in the background, survives closing the page, and shows its progress on the Overview and in Activity.
- New uploads are optimized automatically.
- Folders outside the Media Library, such as theme or plugin image folders.
- Compare an original with its optimized version side by side.
- WP-CLI:
wp megaoptim optimize,restore,statusandstats. - Diagnostics that show which image engines your server offers and what each one can do.
How images are processed
MegaOptim uses what your server already has: the GD or Imagick PHP extensions, and command-line encoders such as cwebp, avifenc, jpegtran, pngquant, oxipng or gifsicle when your host has them installed. The plugin itself contains no executables. AVIF needs GD or Imagick built with AVIF support, or avifenc. Tools Server diagnostics shows what is available on your server.
MegaOptim Pro
MegaOptim Pro is an optional add-on. It brings its own native engine for Linux (MozJPEG, libwebp, libavif, oxipng, pngquant, gifsicle), which compresses noticeably better than GD or Imagick and turns animated GIFs into animated WebP. Its smart quality picks the lowest quality for each image that still looks the same, measured with SSIMULACRA 2. Pro also optimizes media offloaded to S3-compatible storage with S3 Uploads or WP Offload Media, and adds parallel WP-CLI and network-wide tools for multisite. Images are still processed on your server.
Source code
The admin screens are a Vue application. Its source is included in the plugin’s admin folder and is built with bun install && bun run build.
Capturas de tela

Overview: library coverage, space saved and one button to optimize the whole library.

Images: every image with its savings and formats, filterable by status and source.

Compare an original with its optimized version.

Settings: a quality preset, the formats to create and optimization of new uploads.

Advanced settings: WebP and AVIF quality, resizing and metadata.

Activity: background work as it happens.

Tools and diagnostics: restore everything, and see what your server can do.
