Skip to main content
KadiCache
Lighthouse: uses-responsive-images · Media & Fonts10 min read1,045 wordsVerified 2026-11-23

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.

Properly size images (uses-responsive-images) WordPress optimization diagram
0.000 Layout Shift5 Sections✓ Verified
Lighthouse Audit ID
uses-responsive-images
Metrics Affected
LCP · Speed Index
KadiCache Solution Tier
Cloud Pro + WP Core
3-Step Quick Action Plan (Schema HowTo)
STEP 01
Stop Selecting "Full" Resolution on Small Cards & Header Logos

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.

STEP 02
Enable Cloud WebP Across Every Responsive srcset Candidate

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%.

STEP 03
Synchronize Responsive Hero Preloads & Offscreen Lazyload

Enable Improve LCP (Core Web Vitals) for exact viewport imagesrcset preloading and Native Lazyload (Lazyload) so below-the-fold thumbnails defer until scrolled.

WP Admin -> KadiCache -> Images (Pro)
MODULE Media & Fonts · 2X RETINA
Cloud WebP conversion with segmented compression modes, synced quality slider, and non-destructive local publication.2880×1840 WebP
⚡ Executive Summary · 30-Second Spec100% Code-Verified
WP Admin Path
WP Admin -> KadiCache -> Images + Lazyload + Core Web Vitals
Measured Impact
Eliminates 300 KB–2.4 MB of Oversized Mobile Image Waste
DevTools Proof Marker
Lighthouse ID: uses-responsive-images | naturalWidth vs clientWidth × DPR
  • Lighthouse compares every image’s downloaded pixel area (naturalWidth × naturalHeight) against its rendered screen area (clientWidth × DPR × clientHeight × DPR) and flags uses-responsive-images whenever resizing saves >= 4 KiB.
  • On a simulated Moto G Power (360px CSS width × 1.75–2.625 DPR), a 2-column WooCommerce product card (170px wide) needs roughly a 350px–450px image—never a 2,400px DSLR original!
  • Why WordPress Sites Fail Despite Auto-srcset: Elementor widgets set to Image Size: Full, hardcoded <img src> tags missing srcset, 2000px PNG logos in <header>, and WordPress’s default sizes="(max-width: ...) 100vw" telling mobile browsers a half-width grid card spans 100% of the screen!
  • Verified Remedy: Right-size logos & Elementor widget presets + enable KadiCache Cloud Local WebP (compressing all srcset sub-sizes) + Defer Offscreen Images.
Table of Contents (5 sections)

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:

TEXTHow Lighthouse Calculates Wasted Responsive Image Bytes
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 AntipatternWhy 2000px Images Get Downloaded on MobileClean Permanent Fix
1. 2000px+ Header Logo in Customizer / Theme BuilderWordPress often outputs custom_logo at full uploaded resolution without constrained sizesUpload a crisp SVG logo (3 KB infinite resolution!) or a 360px-wide 2x WebP logo
2. Elementor Image Widget Set to Image Size: FullSelecting 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 400pxFilter wp_calculate_image_sizes for archive cards ((max-width: 767px) 50vw, 300px) + enable Cloud WebP
4. Custom Theme PHP Using <img src="..."> DirectlyCalling 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")
FIG 01Compressing every WordPress thumbnail, medium, medium_large, and large sub-size locally inside WP Admin -> KadiCache -> ImagesZoom 2x

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:

PHPAccurate Responsive sizes Attribute for WooCommerce Catalog Thumbnails
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#

FIG 02Preventing offscreen cards from downloading early and stamping explicit width/height attributesZoom 2x
  1. Every srcset Sub-Size Converted to Local WebP (ExtensionImages.php & ImageUrlMap.php): When you enable Convert images to WebP in WP Admin -> KadiCache -> Images (Cloud WebP Guide), KadiCache doesn’t just convert the main src URL—it converts every intermediate WordPress srcset candidate (300w, 600w, 768w, 1024w, 1536w)! Even if a theme requests a 768w image for a 412px card, a 24 KB WebP drops right underneath Lighthouse’s byte-waste radar.
  2. Offscreen Cards Deferred (ImageLazyOptimizer.php — Free Core): Enabling LazyLoad for images in KadiCache -> Lazyload prevents below-the-fold product grids and blog thumbnails from downloading during the Lighthouse initial load trace—clearing offscreen-images and uses-responsive-images on offscreen cards simultaneously!
  3. Exact Per-Viewport Hero imagesrcset Preload (Pro Local Improve LCP): In Core Web Vitals -> LCP & Layout Pro, Pro Local Improve LCP pairs imagesrcset + imagesizes on your <head> hero preload so mobile phones fetch the mobile-sized hero variant—never a 2560px desktop banner!
  4. Intrinsic width & height Preservation (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):

JSFind Oversized <img> Elements Live in Chrome DevTools Console
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?
Modern smartphones use high-density Retina / OLED displays with a Device Pixel Ratio (DPR) of 1.75x to 3.0x! Serving a 412px image on a 2x Retina screen looks blurry, so Lighthouse multiplies rendered CSS width by DPR (~720px–824px) when calculating the ideal crisp image size.
Should I use SVG instead of PNG/WebP for my WordPress header logo and UI icons?
Yes, whenever your logo is vector artwork! An optimized SVG logo weighs 2–5 KB, renders razor-sharp on 1x monitors and 3x iPhones alike, and is completely immune to “Properly size images” warnings (just remember to keep explicit width and height attributes on the <svg> tag for 0 CLS!).
Why did WordPress stop generating srcset on an image over 2,560 pixels?
WordPress 5.3+ automatically scales uploads > 2560px down to -scaled.jpg, UNLESS a theme disabled big_image_size_threshold OR an image’s aspect ratio didn’t match the sub-size crop! Always verify srcset exists in View Source rather than hardcoding raw attachment URLs.
Does KadiCache Cloud WebP rewrite all responsive image candidates inside srcset?
Yes! ExtensionImages.php and ImageUrlMap.php map every single URL inside srcset="... 300w, ... 768w, ... 1024w" to its corresponding optimized local .webp file automatically.
What if WooCommerce single-product zoom requires a 1600px image when the shopper hovers or pinches?
WooCommerce’s single-product gallery correctly uses a medium/large display image (~600–800px) for initial load and stores the 1600px zoom URL in data-large_image (fetched only on zoom)—so initial load stays fast and passes Properly size images cleanly!
Verified WordPress Fix · uses-responsive-images
Clear “Properly size images” without breaking Elementor or WooCommerce.
E-E-A-T Source Verified

Creator of KadiCache’s Early PHP Drop-In, 7-Driver Object Cache Engine, Cloud Remove Unused CSS, and Zero-CLS Lazy Render pipeline.

apps/wordpress-plugin/src/Optimization/ExtensionImages.phpapps/wordpress-plugin/src/Optimization/ImageUrlMap.phpapps/wordpress-plugin/src/Optimization/Images/ImageDimensionResolver.php
Connected Topical Cluster · Continue Deepening Your Setup