How to Fix “Properly size images” in WordPress, Elementor & WooCommerce
Lighthouse triggers “Properly size images” whenever mobile phones download 2,000px full-resolution uploads only to squeeze them into 180px product cards or 160px header logos—wasting hundreds of kilobytes per image.

Resize 2400px PNG header logos to 2x display width (~320–400px), and select Medium_Large (768px) or Large (1024px) instead of Full on Elementor multi-column cards.
Open WP Admin -> KadiCache -> Images and toggle ON Convert images to WebP so every WordPress thumbnail, medium, and large srcset variant shrinks by 55%–82%.
Enable Improve LCP (Core Web Vitals) for exact viewport imagesrcset preloading and Native Lazyload (Lazyload) so below-the-fold thumbnails defer until scrolled.
- Lighthouse compares every image’s downloaded pixel area (
naturalWidth × naturalHeight) against its rendered screen area (clientWidth × DPR × clientHeight × DPR) and flagsuses-responsive-imageswhenever resizing saves>= 4 KiB. - On a simulated Moto G Power (
360pxCSS width ×1.75–2.625DPR), a 2-column WooCommerce product card (170pxwide) needs roughly a350px–450pximage—never a2,400pxDSLR original! - Why WordPress Sites Fail Despite Auto-
srcset: Elementor widgets set to Image Size: Full, hardcoded<img src>tags missingsrcset,2000pxPNG logos in<header>, and WordPress’s defaultsizes="(max-width: ...) 100vw"telling mobile browsers a half-width grid card spans100%of the screen! - Verified Remedy: Right-size logos & Elementor widget presets + enable KadiCache Cloud Local WebP (compressing all
srcsetsub-sizes) + Defer Offscreen Images.
Table of Contents (5 sections)
- The Exact Math Lighthouse Uses to Flag Properly size images
- The 4 WordPress & WooCommerce Root Causes Behind uses-responsive-images
- Manual Developer PHP Fix: Accurate sizes Attribute for WooCommerce Product Grids
- How KadiCache Eliminates Responsive Image Byte Waste
- 10-Second Chrome Console Audit: List Every Oversized Image on Your Page
The Exact Math Lighthouse Uses to Flag Properly size images#
During a Mobile PageSpeed Insights scan, Chromium renders your page inside an emulated mobile viewport (~412px CSS width at 1.75x DPR, or ~721px physical device pixels wide) and inspects every loaded <img> element:
Ideal Physical Width = Rendered CSS Width (px) × Device Pixel Ratio (DPR)
Wasted Pixel Ratio = 1 - (Ideal Physical Pixels / Downloaded Natural Pixels)
Estimated Byte Waste = Transferred File Bytes × Wasted Pixel Ratio
-> Flagged in PageSpeed Insights whenever Estimated Byte Waste >= 4 KiB!For example, if your header renders a brand logo at 150 × 45 CSS pixels (~263 × 79 physical pixels on mobile), but an editor uploaded brand-logo-print-3000x900.png (380 KB), 99.2% of the pixels downloaded are thrown away by the GPU downscaler—wasting 376 KB of early critical bandwidth right when your hero image is trying to paint Largest Contentful Paint (LCP)!
The 4 WordPress & WooCommerce Root Causes Behind uses-responsive-images#
| WordPress Antipattern | Why 2000px Images Get Downloaded on Mobile | Clean Permanent Fix |
|---|---|---|
1. 2000px+ Header Logo in Customizer / Theme Builder | WordPress often outputs custom_logo at full uploaded resolution without constrained sizes | Upload a crisp SVG logo (3 KB infinite resolution!) or a 360px-wide 2x WebP logo |
2. Elementor Image Widget Set to Image Size: Full | Selecting Full outputs the 2560px master file as src with sizes="(max-width: 2560px) 100vw" | Change Elementor widget size to Medium Large (768px) for cards/columns or Large (1024px) |
3. WooCommerce 2-Column Mobile Grid With sizes="100vw" | Default sizes assumes every image fills 100% of the screen (100vw), picking 768px/1024px instead of 400px | Filter wp_calculate_image_sizes for archive cards ((max-width: 767px) 50vw, 300px) + enable Cloud WebP |
4. Custom Theme PHP Using <img src="..."> Directly | Calling wp_get_attachment_url() instead of wp_get_attachment_image() omits srcset & sizes completely! | Replace raw <img> echo calls with wp_get_attachment_image($id, "medium_large") |
Manual Developer PHP Fix: Accurate sizes Attribute for WooCommerce Product Grids#
On a WooCommerce store displaying 2 product columns per row on mobile and 4 columns per row on desktop (1280px container), adding this 12-line filter in functions.php tells browsers the true rendered width of catalog thumbnails so Chrome picks the leanest srcset sub-size every time:
add_filter('wp_calculate_image_sizes', static function (string $sizes, $size): string {
if (function_exists('is_shop') && (is_shop() || is_product_category() || is_product_tag())) {
// 2 columns on mobile (~46vw), 3 on tablet (~31vw), 4 on desktop (~290px)
return '(max-width: 640px) 46vw, (max-width: 1024px) 31vw, 290px';
}
return $sizes;
}, 10, 2);Changed your WooCommerce thumbnail dimensions (Appearance -> Customize -> WooCommerce -> Product Images) on an existing catalog? Run wp media regenerate --only-missing --yes via WP-CLI so older uploads generate the matching intermediate sub-sizes.
How KadiCache Eliminates Responsive Image Byte Waste#
- Every
srcsetSub-Size Converted to Local WebP (ExtensionImages.php&ImageUrlMap.php): When you enable Convert images to WebP inWP Admin -> KadiCache -> Images(Cloud WebP Guide), KadiCache doesn’t just convert the mainsrcURL—it converts every intermediate WordPresssrcsetcandidate (300w,600w,768w,1024w,1536w)! Even if a theme requests a768wimage for a412pxcard, a24 KBWebP drops right underneath Lighthouse’s byte-waste radar. - Offscreen Cards Deferred (
ImageLazyOptimizer.php— Free Core): Enabling LazyLoad for images inKadiCache -> Lazyloadprevents below-the-fold product grids and blog thumbnails from downloading during the Lighthouse initial load trace—clearingoffscreen-imagesanduses-responsive-imageson offscreen cards simultaneously! - Exact Per-Viewport Hero
imagesrcsetPreload (Pro Local Improve LCP): InCore Web Vitals -> LCP & Layout Pro, Pro Local Improve LCP pairsimagesrcset+imagesizeson your<head>hero preload so mobile phones fetch the mobile-sized hero variant—never a2560pxdesktop banner! - Intrinsic
width&heightPreservation (ImageDimensionResolver.php): Ensures responsive CSS scaling never triggers layout jumps (CLS).
10-Second Chrome Console Audit: List Every Oversized Image on Your Page#
Want to check which exact <img> elements on a WooCommerce category or landing page are downloading 3× wider pixels than needed on Retina mobile screens? Run this read-only snippet in Chrome DevTools Console while emulating a mobile device (412 × 915, DPR = 2):
const dpr = window.devicePixelRatio || 2;
console.table(
[...document.images]
.filter((img) => img.complete && img.clientWidth > 0 && img.naturalWidth > img.clientWidth * dpr * 1.25)
.map((img) => ({
file: (img.currentSrc || img.src).split("/").pop()?.slice(0, 42),
renderedCssPx: `${img.clientWidth}x${img.clientHeight}`,
idealRetinaWidth: Math.ceil(img.clientWidth * dpr),
downloadedNaturalWidth: img.naturalWidth,
hasSrcset: Boolean(img.srcset),
}))
);Any row where hasSrcset is false and downloadedNaturalWidth reads 1920 or 2560 inside a 160px logo or badge container is an immediate 60-second win in the WordPress Media Library or Elementor widget inspector!
“Properly size images” — Frequently Asked Questions
Why does Lighthouse expect a ~720px image on a 412px wide phone screen?
Should I use SVG instead of PNG/WebP for my WordPress header logo and UI icons?
Why did WordPress stop generating srcset on an image over 2,560 pixels?
Does KadiCache Cloud WebP rewrite all responsive image candidates inside srcset?
What if WooCommerce single-product zoom requires a 1600px image when the shopper hovers or pinches?
Creator of KadiCache’s Early PHP Drop-In, 7-Driver Object Cache Engine, Cloud Remove Unused CSS, and Zero-CLS Lazy Render pipeline.
Cut 55–82% off every image sub-size with non-destructive local WebP.
Hold below-the-fold images and CSS backgrounds off initial load.
See how right-sized hero images slash LCP Resource Load Duration.
Inspect KadiCache’s HTML, srcset, and CSS WebP conversion engine.