Skip to content

Images audit rules

View as Markdown

Sonjoo groups 15 checks under Images (images). Select this category with sonjoo audit <url> --categories images, or pass the category ID in an HTTP audit request.

This category has weight 8 in the overall audit score when it has scored results. Sonjoo normalizes category weights over the categories with scored results.

All audit categories · Rule settings and interpretation

Report an image missing its alternative-text attribute; an explicit empty alternative is valid for decorative imagery.

Inputs. A document collected for audit.

Evidence. Image count and affected source.

Base scoring weight 20 when measured.

Flag short, overlong, generic, filename-like or repetitious alternatives for review, preserving explicit decorative alt.

Inputs. A document collected for audit.

Evidence. Quality issue count and alternative text.

Base scoring weight 15 when measured.

Report missing or invalid intrinsic width or height markup, which can reserve space before media loads.

Inputs. A document collected for audit.

Evidence. Missing width and height counts.

Base scoring weight 15 when measured.

Flag eager images after the first three in document order as likely deferred-loading candidates.

Inputs. A document collected for audit.

Evidence. Candidate count and affected source.

Base scoring weight 10 when measured.

Report recognizable legacy image formats as possible candidates for modern-format delivery.

Inputs. A document collected for audit.

Evidence. Recognized format tally.

Base scoring weight 10 when measured.

Flag suspicious image dimensions or origin-filename signals for review, with no claim to measured bytes.

Inputs. A document collected for audit.

Evidence. Flagged source and stated heuristic.

Base scoring weight 10 when measured.

Flag larger or dimension-unknown images lacking a per-element responsive source declaration.

Inputs. A document collected for audit.

Evidence. Source-set counts and affected image references.

Base scoring weight 10 when measured.

Probe sampled image targets and detect definite 404/410 failures; a temporarily unavailable probe cannot establish availability.

Inputs. Sonjoo can collect an HTTP response for the referenced image.

Evidence. Verified count, failed source/status and unavailable count.

Base scoring weight 15 when measured.

Suggest visible captions for image figures. An empty caption provides no description, and figures for code or other non-image content are outside scope.

Inputs. A document collected for audit.

Evidence. Image-figure and missing-caption counts.

Base scoring weight 5 when measured.

Flag standard placeholder, camera-generated and especially short filename stems for review.

Inputs. A document collected for audit.

Evidence. Filename and affected image count.

Base scoring weight 5 when measured.

Identify inline SVG payloads above the local per-element HTML byte budget.

Inputs. A document collected for audit.

Evidence. Oversized SVG and checked element counts.

Base scoring weight 5 when measured.

Require a direct image fallback in each picture and recommend a candidate source for meaningful picture markup.

Inputs. A document collected for audit.

Evidence. Fallback and source counts.

Base scoring weight 10 when measured.

Flag unusually long alternatives using the documented Sonjoo thresholds. Do not count an empty decorative alternative.

Inputs. A document collected for audit.

Evidence. Alternative length and severity.

Base scoring weight 6 when measured.

Count inline URL-based background declarations as a discoverability signal.

Inputs. A document collected for audit.

Evidence. Inline background and important-container counts.

Base scoring weight 5 when measured.

Estimate avoidable payload when intrinsic image area exceeds the area needed at twice the displayed density.

Inputs. Chromium records displayed image dimensions and the production network path observes transfer size.

Evidence. Rendered and natural dimensions, byte estimate and affected URL.

Advisory. Excluded from scoring. Requires Chromium rendering.