Skip to content

Score: issue-density adjustment over-penalises one shared chrome element repeated on every page #2256

Description

@nc9

Problem

The issue-density adjustment cuts the overall score hard when one shared site-chrome element (a header logo link, a nav icon, a footer social link) has a finding repeated on every crawled page. One quick audit of 25 pages (internal MCP feedback, 2026-11-23) earned 87 before the adjustment (overallBeforeAdjustment). issueDensityAdjustment then removed 45 points, for a published score of 33.

Most of that density came from three single components counted on all 25 pages:

  • an a11y/aria-command-name logo link;
  • an a11y/link-text icon link with no name;
  • an a11y/label-content-name-mismatch social icon.

The report already knows these are one shared component each (fixOnce). For a prospect-facing report, 33/100 for one unnamed logo link reads as unfair, and it hides the real per-page quality.

Acceptance Criteria

  • The issue-density adjustment counts a finding that fixOnce (or the shared-component grouping) identifies as one shared component ONCE, not once per page it appears on. Or it caps how many points repeated-chrome occurrences can move the overall, with the cap documented.
  • Fixture test: one shared chrome finding repeated on N pages moves the overall by the same amount for N = 2 and N = 25, within the documented tolerance. Genuinely per-page findings still scale with page count.
  • The report's score breakdown shows how much of the adjustment came from shared components.
  • docs/ (the scoring page) describes the rule.

Activity

  1. added
    bug
    size: S
    engine
    on Nov 22, 2026
  2. added theissue type on Nov 22, 2026
  3. nc9 commented on Nov 22, 2026

    @nc9
    ContributorAuthor

    Decided: yes. The issue-density adjustment counts a shared component (fixOnce) once, or caps its effect, so one logo link on every page can't sink the score. Scores will move, and the release notes should say so.

    nik

  4. added
    in-progress
    on Nov 24, 2026
  5. self-assigned this
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugenginein-progresssize: S

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions