Dev.to WebDev 🛠 Dev 👁 0 📖 7 min read

A Lighthouse SEO sweep across your site: find noindex pages, missing meta descriptions and vague links

The Lighthouse SEO score is the least talked-about of the four. Most people glance at it, see a number in the 90s, and move on to performance. That is mostly fine, because the SEO category checks basics, not rankings. Bu

The Lighthouse SEO score is the least talked-about of the four. Most people glance at it, see a number in the 90s, and move on to performance. That is mostly fine, because the SEO category checks basics, not rankings. But the basics include one check that can quietly remove a page from Google: whether the page is blocked from indexing.

That usually happens after a launch. A noindex tag that was right on staging ships to production on one template, or a CMS setting gets flipped for a section. Nothing looks broken in the browser, so nobody notices until traffic to that section drops.

This post runs only the SEO category on a list of pages, groups the failing checks by type, and puts the indexing problems at the top.

What the SEO category checks

Lighthouse's SEO category is a set of pass/fail checks on the loaded page. The ones that fail most often:

  • is-crawlable: the page has a noindex robots meta tag or X-Robots-Tag header, or robots.txt blocks it.
  • meta-description: no meta description. Google writes its own snippet when this is missing, often from the wrong part of the page.
  • link-text: links whose text says nothing on its own, like "click here", "more" or "learn more".
  • crawlable-anchors: links Google cannot follow, such as <a> tags without an href or with href="javascript:...".
  • image-alt: images without an alt attribute.
  • document-title, http-status-code, hreflang, canonical: less common, but serious when they fail.

What it does not check: your content, keywords, backlinks, page speed as a ranking signal, or whether the page is actually indexed. A score of 100 means none of these basic mistakes were found. It does not mean the page will rank.

Run the SEO category only

PageSpeed Insights Audit is an open-source Apify Actor that calls Google's official PageSpeed Insights API and returns one record per URL. For this sweep, set Lighthouse categories to SEO only (each audit is a little faster), turn on Include audit details so the record lists the failing checks, and paste your pages into Page URLs. Or send this input (placeholder domain):

{
    "urls": [
        "https://www.yoursite.example/",
        "https://www.yoursite.example/pricing/",
        "https://www.yoursite.example/blog/",
        "https://www.yoursite.example/blog/choosing-warm-light/",
        "https://www.yoursite.example/product/brass-desk-lamp/"
    ],
    "strategy": "mobile",
    "categories": ["seo"],
    "includeAuditDetails": true
}

Mobile is enough here. Google indexes the mobile version of a page, and the SEO checks rarely differ between devices.

Pick pages per template: home, listing, detail, article, landing page, and anything built from a separate code path (a help centre, a store on a subdomain, a campaign microsite). Templates are where noindex mistakes live, so two or three pages from each catches most of them. If you have a sitemap, the sitemap tutorial in this series shows how to pick a sample per template.

Each record comes back like this (trimmed):

{
    "url": "https://www.yoursite.example/blog/",
    "strategy": "mobile",
    "success": true,
    "scores": { "seo": 83 },
    "failedAudits": [
        {
            "id": "meta-description",
            "title": "Document does not have a meta description",
            "category": "seo",
            "score": 0
        },
        {
            "id": "crawlable-anchors",
            "title": "Links are not crawlable",
            "category": "seo",
            "score": 0
        }
    ]
}

Group the failures by check

Export the dataset as JSON and save it as seo.json. The script prints the indexing problems first, then a count of pages per failing check, then pages that could not be audited at all.

import json
from collections import defaultdict

records = json.load(open("seo.json", encoding="utf-8"))

# Checks that can keep a page out of Google, in order of severity.
CRITICAL = ["is-crawlable", "http-status-code", "document-title", "canonical"]

by_check = defaultdict(list)
not_audited = []
for r in records:
    if not r.get("success"):
        not_audited.append((r["url"], r.get("errorType")))
        continue
    for a in r.get("failedAudits", []):
        if a["category"] == "seo":
            by_check[a["id"]].append((r["url"], a.get("displayValue") or ""))

print("== Could keep pages out of Google ==")
found = False
for check in CRITICAL:
    for url, detail in by_check.get(check, []):
        print(f"  {check:<20} {url}")
        found = True
if not found:
    print("  none")

print("\n== Pages per failing check ==")
for check, pages in sorted(by_check.items(), key=lambda kv: -len(kv[1])):
    if check in CRITICAL:
        continue
    print(f"  {len(pages):>3}  {check}")
    for url, detail in pages:
        print(f"         {url}  {detail}")

print("\n== Not audited (free, check by hand) ==")
for url, err in not_audited:
    print(f"  {err:<12} {url}")

Grouping by check rather than by page is the point. A missing meta description on 40 pages of one template is one fix in one file, not 40 tickets.

What a real run looks like

I ran this on 12 public pages from ten sites on 3 December 2026 (mobile, SEO only, about a minute). I have replaced the site names with labels, because the goal is to show what the output looks like, not to grade anyone's site.

== Could keep pages out of Google ==
  is-crawlable         site E, text-only edition

== Pages per failing check ==
    4  meta-description
         example.com
         site C, home
         site D, home
         site G, home
    4  link-text
         example.com  1 link found
         site A, home  5 links found
         site A, downloads  4 links found
         site D, home  1 link found
    1  image-alt
         site D, home
    1  crawlable-anchors
         site G, home

== Not audited (free, check by hand) ==
  http-error   site I, home
  http-error   site I, software page

The SEO scores ranged from 63 to 100. Three pages scored 100: a documentation page, an accessibility guide and a long directory page.

Read the output

  • The noindex page. Site E's text-only edition is blocked from indexing, and it is the lowest score in the run (63). On a site you own, this is the line that matters. Here it is very likely deliberate: a stripped-down copy of a news site has good reasons not to compete with the main pages in search. That is the question to ask about every is-crawlable hit: is this page meant to be in Google? If yes, find the template or setting that adds the tag. If no, ignore it, and consider excluding that path from future sweeps so the alert stays meaningful.
  • Missing meta descriptions, four home pages. Home pages are where people most often assume the CMS writes one. Write one per template at minimum: a pattern like "{product name}: {short spec}. Free shipping over $50." beats letting Google pick a sentence from the footer.
  • Vague link text, four pages. The displayValue gives the count, and the Lighthouse report in PageSpeed Insights lists the exact links. On site A it was 5 and 4 links per page, which points to a shared component (a "Read more" pattern in a card or a "more" link in navigation) rather than individual pages. Fix the component, and every page that uses it passes.
  • Links not crawlable, one page. Usually a menu or a button built as <a> without an href, with the navigation done in JavaScript. Google may never follow those links, so the pages they lead to depend on being found some other way. Use a real href.
  • Image alt, one page. This one also fails in the accessibility category. Decorative images can have alt=""; images that carry meaning need a short description.
  • The two pages that were not audited. Google's test machine timed out loading both pages on site I. They cost nothing, but they are a blind spot: an SEO sweep that silently skips a template is worse than one that reports it. Re-run them later, and if Google's tester keeps timing out on them, Googlebot may be struggling too.

Make it a check after each release

The noindex mistake is a release-time mistake, so the sweep is most useful right after a deploy. Keep a fixed list of two or three URLs per template, run it after each release (or weekly on a schedule in Apify Console), and fail loudly only on the critical checks:

critical_hits = [u for c in CRITICAL for u, _ in by_check.get(c, [])]
if critical_hits or not_audited:
    raise SystemExit(f"SEO sweep: {len(critical_hits)} critical, {len(not_audited)} not audited")

Meta descriptions and link text are worth a ticket. A page dropping out of the index is worth waking someone up.

Cost and limits

The Actor charges a flat $0.004 per successfully audited page and strategy.

  • The 12-page run above had 10 successful audits: 10 x $0.004 = $0.04.
  • A post-release check of 30 template pages costs $0.12, or about $0.50 a month if you run it weekly.
  • Pages Google cannot load, invalid URLs and quota errors come back with success: false and cost nothing, and a run stops at the maximum cost you set.

Limits to plan around:

  • Public pages only. Google must be able to fetch the page, so pages behind a login or on a private staging host fail. That also means you cannot use this to catch a noindex on staging before it ships; it catches it in production.
  • Lighthouse checks the page as loaded. A page that robots.txt blocks is reported, but a page missing from your sitemap or never linked internally is not.
  • With Include audit details, failedAudits holds up to 15 failing checks per page across the selected categories. With SEO alone, no page here came close.
  • By default the Actor uses a built-in Google API key shared by all its users. When the quota runs out you get free rate-limited records; retry later or paste your own free key into Google API key.

If this saves you time, a review on the Store page helps other people find it, and a star on GitHub helps too.

Disclosure: I built this Actor. Source: github.com/josh99smith/pagespeed-insights-audit. PageSpeed Insights and Lighthouse are Google trademarks; the Actor is not affiliated with Google.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.