Skip to content

Smush vs Imagify vs ShortPixel vs EWWW: which to pick

Head-to-head verdicts for Smush, Imagify, ShortPixel and EWWW, based on where compression runs, how WebP and AVIF reach the browser, and restores.

Smush, Imagify, ShortPixel and EWWW compress images to broadly similar sizes at comparable settings. They differ on where the CPU work happens, whether you can undo the compression, and whether the smaller file ever reaches a browser. Here are the verdicts for the pairs people search most. Smush vs Imagify: pick Imagify unless you already pay for the WPMU DEV suite, because Imagify writes WebP and AVIF as ordinary files any host can serve, while Smush’s modern-format path relies on its own CDN. Smush vs ShortPixel: pick ShortPixel past a few thousand attachments, where per-size reporting and a restore action matter more than dashboard integration. Imagify vs EWWW: pick EWWW if the images may not leave your server, and Imagify otherwise. ShortPixel vs EWWW: pick ShortPixel on a shared cPanel host with no shell access, and EWWW where you control the CPU and want no per-image metering.

What you’ll accomplish

  • Answer the specific pairwise question you came here with, without reading a feature matrix end to end.
  • Tell the four apart on the axes that decide the choice: compression location, format delivery, reversibility, bulk cost.
  • Audit a live media library first, so the decision is made against real numbers.
  • Measure byte savings and visual quality on your own images instead of a vendor’s headline figure.

Prerequisites

  • WordPress 6.0 or newer, PHP 8.0 or newer. All four support current core; none is a reason to stay on an old PHP branch.
  • Shell access with WP-CLI, or you will drive a bulk pass on tens of thousands of files through a browser tab that must stay open. The WP-CLI command cheat sheet covers the basics.
  • ImageMagick (the PHP imagick extension) rather than GD, for resize quality and AVIF support. Check which one core will pick before assuming.
  • For local-mode compression, the encoders must exist on the host and PHP must be allowed to run them. EWWW ships its own binaries, but a hardened cPanel account with exec() in disable_functions cannot execute any of them.
  • A backup you have actually restored from. Optimization rewrites files in place.
  • Knowledge of what sits in front of the origin. A CDN that already negotiates format changes the answer completely.

Check the server side first:

php -r 'echo extension_loaded("imagick") ? "imagick" : "no imagick", PHP_EOL;'
php -r 'echo function_exists("exec") ? "exec ok" : "exec disabled", PHP_EOL;'
cwebp -version
avifenc --version

Expected: imagick on the first line and exec ok on the second is the comfortable case. cwebp -version printing a version string means a local encoder is available; command not found means WebP will come from the vendor API or from EWWW’s bundled binary instead. exec disabled rules out every local-mode option before you install anything.

How it works

A WordPress upload is not one file. Core writes a family of sub-sizes — thumbnail, medium, medium_large, large, a scaled version past the big-image threshold, plus whatever the theme registers — so a 4 MB camera JPEG routinely becomes eight to fifteen files on disk.

All four plugins hook the same place: the wp_generate_attachment_metadata filter, which fires after those sub-sizes are written. That is why the plugin choice does not change what gets optimized. It changes where the work runs and what happens to the result.

Flow diagram of the WordPress upload path: one original becomes many sub-sizes, a plugin intercepts the attachment metadata filter, compression runs either on local server CPU or through a vendor API, and delivery decides whether the smaller bytes ever reach a browser

The four plugins on the axes that differ:

SmushShortPixelImagifyEWWW
Compression locationVendor APIVendor APIVendor APILocal binaries or vendor API
WebP outputYesYesYesYes
AVIF outputVia CDN add-onYesYesYes
How modern format is servedCDN rewriteRewrite rules or <picture>Rewrite rules or <picture>Rewrite rules or <picture>
Originals retainedOptional backupOptional backupOptional backupOptional backup
MeteringPer-image allowanceCredit-basedMonthly allowanceUnmetered in local mode; credit-based in API mode
Bulk driven from WP-CLILimitedYesYesYes
Survives deactivationFiles stay, rewrites goFiles stay, rewrites goFiles stay, rewrites goFiles stay, rewrites go

Head-to-head verdicts

Five pairings cover almost every version of this question. Each assumes compression quality is close enough to ignore, because it is.

Smush vs Imagify. Imagify for most sites. Both send images to a vendor API, so neither is kinder to your CPU; they diverge on delivery. Imagify writes .webp and .avif siblings into wp-content/uploads/ and serves them through rewrite rules or a <picture> rewrite, so it works unchanged on nginx, on cPanel, and behind a page cache. Smush’s strongest format handling is tied to the WPMU DEV CDN, so without that CDN you get compression and a weaker modern-format path. Choose Smush when the site already lives in the WPMU DEV dashboard and you want one vendor; choose Imagify for a standalone site that has to fit whatever stack is already in front of it.

Smush vs ShortPixel. ShortPixel once the library is past a few thousand attachments. It reports per-size rather than per-attachment — the difference between knowing 12,000 images were processed and knowing the large size was skipped on 3,000 of them — keeps an explicit backup directory with a restore action, and drives its bulk job from the shell instead of a browser tab. Smush suits a small brochure site whose owner will never open a terminal, because its defaults are the safest of the four. For an editorial archive or a store catalogue, ShortPixel.

Imagify vs EWWW. Decided before you compare features: can the images leave your server? If a contract or a client’s security review says no, EWWW is the only one of the four that finishes without an outbound request, using bundled binaries or ImageMagick on your own CPU. Otherwise Imagify is the easier operation — no encoder binaries to keep working through PHP upgrades, no exec() dependency, no CPU contention during a bulk pass. On a shared cPanel account where exec() sits in disable_functions, EWWW falls back to its own API anyway, which erases the reason you chose it: check that first, then pick Imagify.

ShortPixel vs Smush. Same verdict from the other direction, with one addition: if the deciding factor is reversibility, ShortPixel is safer, because its backup folder and per-image restore are first-class rather than an option you must remember to leave on. Anyone who will re-crop, rebrand, or hand source files to a client belongs on ShortPixel; anyone who wants one dashboard for updates, backups and images belongs on Smush.

EWWW vs ShortPixel. Both handle large libraries from the command line, so the split is metering versus CPU. ShortPixel’s API mode is credit-based, which makes a 40,000-image backfill a known quantity you buy once. EWWW in local mode is unmetered — right on a VPS with idle cores overnight, wrong on a shared plan where a multi-hour encode trips the host’s resource limits and slows the site for real visitors. Run EWWW locally when you own the hardware; run ShortPixel when you rent a slice of someone else’s.

Where the compression actually runs

Vendor API. Smush, Imagify, ShortPixel and EWWW-in-API-mode all do the same thing: PHP uploads each file over HTTPS, waits, and writes the returned bytes back. On a starved shared host that is a feature — the encoder runs on someone else’s CPU and improves without you deploying anything. The costs are latency per image, a hard dependency on outbound HTTPS from the origin, and a third party holding your images for the duration of the call. A cPanel account behind an egress firewall fails here in a way that looks like a broken plugin.

Local binaries. EWWW ships compiled encoders and calls them through PHP’s exec(). When that works it is fast, unmetered and private. When it does not, it fails three distinct ways: exec() is in disable_functions; the binaries sit on a partition mounted noexec; or a security module blocks execution from inside wp-content/. All three look identical from the admin screen — a bulk counter that increments without shrinking anything — and the plugin’s status page names which one.

Mixed. EWWW can run some formats locally and hand the rest to its API — right on a host with cwebp but no AVIF encoder, wrong if you chose EWWW so that no image leaves the building, since partial local mode still sends the AVIF work out.

How the modern format reaches the browser

This is where most installs quietly fail. A .webp sibling next to every JPEG accomplishes nothing on its own — something has to decide, per request, which file to hand back, and each of the three mechanisms breaks somewhere different.

Three delivery mechanisms side by side — server rewrite rules, rewritten markup, and edge conversion — with what happens to each behind a full-page cache and behind a CDN

Rewrite rules. The plugin drops rules into .htaccess that inspect the Accept request header and return the .webp file for the same URL. Fast and invisible in the markup, but it needs three things true at once: the server reads .htaccess (nginx does not), no earlier rule already matched, and every cache in the path honours Vary: Accept. Behind a full-page cache or Cloudflare, one response is stored per URL — so whichever visitor arrives first can pin the format for everyone else. Missing Vary: Accept is the most common cause of “some visitors see broken images”.

Rewritten markup. The plugin rewrites <img> into <picture> with an explicit WebP or AVIF source. No server configuration; works on nginx, LiteSpeed, anywhere. Both sources sit inside the HTML, so a cached page still lets each browser choose, and each format has its own URL, so a CDN caches them unambiguously. The costs are slightly heavier HTML and the occasional page builder whose lazy-loading conflicts with the rewrite. When you cannot see or control the cache layers, use this one.

Edge conversion. Cloudflare Polish or an image CDN converts on the way out and the origin keeps its JPEG. The trap is doubling up: if the edge already converts, plugin-side conversion re-encodes an already-lossy file and fills the disk with variants nobody fetches. Confirm which layer is doing the work before configuring the other — the Cloudflare APO deep configuration guide covers how to tell.

Originals, restores, and what deactivation actually does

All four offer a backup folder, and all four let you turn it off to save disk. Turning it off while using a lossy preset is a one-way door: the JPEG on disk is the compressed file now, and no restore recovers detail the encoder discarded. ShortPixel, EWWW and Imagify all expose a per-image restore in the media library; Smush’s restore depends on the backup having been enabled when the image was processed, which is easy to get wrong retroactively.

Deactivation surprises people. Deactivating any of the four leaves the optimized JPEGs and PNGs exactly as they are — those bytes are permanent, which is the point. What disappears is the delivery: .htaccess rules are usually removed, and <picture> rewriting stops the moment the plugin stops running. The result is a slightly slower site and an uploads tree full of .webp files nobody requests. That asymmetry is also why swapping plugins is cheap — the second plugin skips what the first already shrank, and only the serving layer needs reconfiguring.

Step-by-step

1. Measure the library before you install anything. The decision changes at scale, so get the numbers.

wp post list --post_type=attachment --post_status=inherit --format=count
du -sh wp-content/uploads/
find wp-content/uploads/ -type f \( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' \) -size +500k | wc -l

Expected output: a bare integer, a human-readable total such as 41G, and a count of oversized files. Under a few thousand attachments this is a settings decision; tens of thousands makes it a capacity-planning decision, where the bulk pass is the dominant cost.

2. Work out what is in front of the origin. If a CDN already negotiates format, plugin-side WebP is duplicated work.

curl -sI -H 'Accept: image/avif,image/webp,*/*' https://example.com/wp-content/uploads/2026/01/hero.jpg | grep -iE 'content-type|vary|cf-|server'

Expected output: content-type: image/jpeg means nothing upstream converts and a plugin has a job to do. content-type: image/webp from a .jpg URL means the edge already negotiates, and plugin-side conversion buys nothing.

3. Walk the decision tree. Four questions, answered in order; the first “yes” names your constraint and the rest stop mattering.

Decision tree for choosing a WordPress image optimization plugin: whether pixels must stay on your own hardware, whether a CDN already negotiates format, whether originals must be recoverable, and whether the library is large enough that the bulk pass dominates cost

4. Install one candidate on staging, not production. Set the quality preset conservatively for the first pass — “lossless” or the mildest lossy tier. Every one of these plugins produces visible artifacts at its aggressive preset on portraits, product photography, and flat-color graphics with text.

5. Turn on original retention before the first optimization runs. Verify the folder appears after a single test image:

find wp-content/uploads/ -maxdepth 2 -type d -name '*backup*' -o -maxdepth 2 -type d -name 'ewww'

Expected output: at least one directory path. Nothing means either no image has been optimized yet or retention is off — recheck the setting before continuing.

6. Regenerate sub-sizes first if the theme changed. Optimizing sizes you are about to replace wastes a pass and, on a metered plan, the quota with it:

wp media regenerate --only-missing --yes

Expected output: a summary such as Success: Regenerated 1842 of 1842 images. The media regeneration guide covers doing this safely on a large library.

7. Pace the bulk pass instead of firing it at the whole library. A browser-driven job dies at PHP’s max_execution_time or when the tab closes; an unthrottled shell job saturates the account’s CPU allowance and slows real traffic. ShortPixel, Imagify and EWWW each register their own WP-CLI namespace once activated — read the exact subcommands off the installed version rather than copying from a blog post, because they have changed between major releases:

wp help

Then run the bulk command against a bounded slice — one year of uploads, or a few hundred attachment IDs — off-peak, watching uptime or the host’s resource panel between batches. On tens of thousands of files, plan in nights.

How to actually test this on your own site

Vendor percentages are measured on the vendor’s sample set. The only number that matters is the one your own images produce, and twenty minutes of measurement beats a week of reading comparisons.

Build a representative sample. Copy twenty to thirty real files into a scratch directory — hero photographs, product shots on white, a screenshot with small text, a flat-color graphic with a logo, one large PNG. Those five respond very differently, and an average hides the one category the encoder ruins.

mkdir -p /tmp/imgtest && cp wp-content/uploads/2026/0*/hero*.jpg /tmp/imgtest/
du -sb /tmp/imgtest/ | cut -f1

Measure bytes per file, not in aggregate. Run the sample through one plugin at its intended preset, then compare file by file:

find /tmp/imgtest -type f -printf '%s\t%p\n' | sort -n

Expected output: a size-sorted list you can diff against the same command after the pass. Per-file is the point — a 60% aggregate saving often hides one file that grew and one that lost most of its detail.

Judge quality at display size. Open before and after at 100% on a decent screen, then again at the width the theme renders them. Look for banding in gradients, halos around high-contrast text, and blotching in skin tones. If you cannot tell them apart at display size, the preset is too gentle and you are leaving bytes on the table; if the difference is obvious, back off one tier. Then test the delivery on production with the cache warm — compression that never reaches a browser is not a saving, which is what the next section measures.

Validate it works

Three checks, in order.

The modern format is actually served. Ask for the JPEG URL while advertising AVIF and WebP support:

curl -I -H 'Accept: image/avif,image/webp,*/*' https://example.com/wp-content/uploads/2026/01/hero.jpg

Expected: content-type: image/webp (or image/avif) plus a vary: accept header. If content-type comes back image/jpeg, the files exist but nothing is serving them. If the correct type comes back but vary: accept is absent, an intermediate cache will eventually hand WebP bytes to a client that cannot decode them.

Then ask again as a client that does not accept WebP:

curl -I -H 'Accept: image/jpeg' https://example.com/wp-content/uploads/2026/01/hero.jpg

Expected: content-type: image/jpeg. The same URL returning WebP to both requests means the negotiation is not conditional and old clients will break.

Attachment metadata is intact. Optimization must not disturb the size map core relies on:

wp post meta get 1234 _wp_attachment_metadata --format=json

Replace 1234 with a real attachment ID. Expected: JSON containing width, height, file, and a sizes object listing each generated size. A missing sizes object means metadata was rewritten badly and responsive srcset output will be wrong sitewide.

Originals still exist.

find wp-content/uploads/ -path '*backup*' -type f | wc -l

Expected: a non-zero count that grows with the bulk pass. Zero after thousands of optimized images means retention is off and the operation is not reversible.

Troubleshooting

WebP is generated but never served. The most common outcome of a plugin install. Rewrite rules land in .htaccess, but the server is nginx and never reads that file — or the rules sit below an earlier rule that already matched. Confirm with the curl -I -H 'Accept: ...' check above; if it returns JPEG, switch to <picture> delivery, which needs no server configuration.

Some visitors get broken images after a cache purge. Rewrite-based delivery plus a cache that ignores Vary: Accept: the first request to fill the cache decided the format for every later one. Add Vary: Accept at the caching layer, or move to <picture> delivery, where the choice happens in the browser and no cache can get it wrong.

Bulk optimization times out or trips the host’s resource limits. Drive it from WP-CLI, in bounded batches, off-peak.

EWWW reports success but nothing shrinks. Local mode is failing to reach its binaries — exec() disabled, a noexec mount, or a security module blocking execution inside wp-content/. The status page names which. If the fix is to accept API mode and API mode was the thing you were avoiding, switch plugins instead of working around it.

Originals were deleted and there is no way back. Backups off plus a lossy preset is irreversible. Recovery means the uploads backup you took, or re-uploading from source — the most expensive mistake in this category.

PHP memory exhaustion on large originals. Local compression and sub-size generation both load the full bitmap into memory — a 6000 by 4000 pixel PNG needs far more than its file size suggests. The symptom is a white screen or a fatal Allowed memory size exhausted on upload. See PHP memory exhausted in WordPress, and consider capping the big-image threshold so core scales originals down first.

When this is the wrong approach

If a CDN in front of the site already negotiates format and resizes on the fly, an optimization plugin is redundant and can be harmful: you pay twice in quality and store variants nobody requests. There, the plugin’s only useful job is capping the stored original’s dimensions.

If the LCP element is a small image already served from an edge cache, compression will not move the number — the problem is render-blocking CSS, a slow time to first byte, or lazy-loading applied to the hero. Measure attribution first.

If the library is enormous and mostly cold — a decade of attachments nobody requests — the win is storage tiering, not optimizing files no visitor fetches. And if images may not leave the building, three of these four are off the table in their default configuration: a capability question, not a tuning question, and it is settled first.

The WebP and AVIF delivery guide covers rewrite rules and cache interaction in more depth. The shared core hook is documented at wp_generate_attachment_metadata, and the regeneration command at wp media regenerate.

Running WordPress that earns real money deserves an operator — Stack Harbor runs that stack under Enterprise WordPress; book an infrastructure consult.