{"slug": "running-the-lighthouse-agentic-browsing-audit-at-scale-what-we-learned-on-sites", "title": "Running the Lighthouse Agentic Browsing Audit at Scale: What We Learned on WordPress Sites", "summary": "A developer ran Lighthouse 13.6's experimental Agentic Browsing category against a random sample of WordPress small-business homepages, testing whether AI agents can navigate and use the sites. The team found Lighthouse cannot run concurrently in a single Node process — concurrent runs fail with a missing \"start lh:driver:navigate\" performance mark — so they moved to one process per URL with an external pool running eight at a time, and reported that most sites' scores hinge on the accessibility-tree and layout-shift audits since the WebMCP, llms.txt and ARD checks return \"not applicable\" when absent.", "body_md": "Lighthouse has a new category: **Agentic Browsing**. It checks whether an AI agent, the kind that opens a page and clicks around for a person, can actually use your site. It needs Chrome 150 or later, Chrome calls it experimental, and it reports pass or fail per check rather than a 0 to 100 score.\n\nWe wanted to know how WordPress small business sites do on it, so we ran it from Node on the homepages of a random set of them. The full results and the checklist for site owners are on our blog: [Is Your WordPress Site AI Agent Ready?](https://www.lovedby.ai/blog/agent-ready-wordpress). This post is the developer side: how to run the audit from code, which results you can trust, and which you can't.\n\nIn Lighthouse 13.6 the category has seven audits:\n\n| Audit id | What it checks | \n|---|---|\n| `agent-accessibility-tree` | Every interactive element has a name; the tree is well-formed | \n| `cumulative-layout-shift` | The page doesn't move while it loads | \n| `webmcp-registered-tools` | WebMCP tools the page registered | \n| `webmcp-form-coverage` | Forms that could carry declarative WebMCP annotations | \n| `webmcp-schema-validity` | Whether those WebMCP schemas are valid | \n| `llms-txt` | Whether `/llms.txt` follows the recommendations | \n| `ard-schema` | Whether an Agentic Resource Discovery manifest is valid | \n\nThe WebMCP, llms.txt and ARD audits are \"not applicable\" when there is nothing to check, so on most sites the score comes down to the first two.\n\nOur first attempt ran several Lighthouse calls inside one Node process. It broke: runs failed with `The \"start lh:driver:navigate\" performance mark has not been set`. Lighthouse keeps global timing state, so it isn't safe to run concurrently in one process. The fix is one process per URL, and a pool outside Node that runs a few of them at a time.\n\nThis is the per-URL script, cut down from the one that ran the study:\n\n```\n// one.mjs: one Lighthouse Agentic Browsing run per process.\n//   node one.mjs <url>\nimport lighthouse from 'lighthouse';\nimport * as chromeLauncher from 'chrome-launcher';\n\nconst [url] = process.argv.slice(2);\nconst chrome = await chromeLauncher.launch({\n  chromeFlags: ['--headless=new', '--disable-gpu', '--no-first-run', '--mute-audio'],\n});\n\n// A hard guard: some sites hang the run, and a hung process holds its Chrome open.\nconst guard = setTimeout(async () => {\n  try { await chrome.kill(); } catch {}\n  process.stdout.write(JSON.stringify({ url, error: 'timeout' }));\n  process.exit(0);\n}, 100000);\n\nlet res;\ntry {\n  const { lhr } = await lighthouse(url, {\n    port: chrome.port,\n    output: 'json',\n    logLevel: 'error',\n    onlyCategories: ['agentic-browsing'],\n    formFactor: 'desktop',\n    screenEmulation: { mobile: false, width: 1350, height: 940, deviceScaleFactor: 1, disabled: false },\n    throttlingMethod: 'provided',\n    maxWaitForLoad: 30000,\n  });\n  res = { url, score: lhr.categories['agentic-browsing']?.score ?? null, audits: summarize(lhr) };\n} catch (e) {\n  res = { url, error: String(e.message || e) };\n} finally {\n  try { await chrome.kill(); } catch {}\n}\nprocess.stdout.write(JSON.stringify(res));\nprocess.exit(0);\n```\n\nWe used desktop settings because the agents that browse for people today run in desktop browsers, and `throttlingMethod: 'provided'` because nothing in this category depends on simulated network speed.\n\nThe pool itself was a few lines of Python: a thread pool that calls `node one.mjs <url>` with `subprocess.run(..., timeout=120)` and appends each line of output to a JSONL file, so a crash halfway through loses nothing. We ran 8 at a time on a 10-core laptop.\n\nThe score alone tells you little. The useful part is in `details`. For `agent-accessibility-tree`, the failing rules sit in nested tables: a `list` of `list-section` items, each holding a `table` whose items have a `description` (the rule) and a `node` (the element, with a selector and an HTML snippet). Rather than hard-code that shape, we walked the object and collected every table's items:\n\n``` js\nfunction summarize(lhr) {\n  const ids = ['agent-accessibility-tree', 'webmcp-registered-tools', 'webmcp-form-coverage',\n    'cumulative-layout-shift', 'llms-txt', 'ard-schema'];\n  const out = {};\n  for (const id of ids) {\n    const x = lhr.audits[id];\n    if (!x) continue;\n    const rows = [];\n    const walk = (o) => {\n      if (!o || typeof o !== 'object') return;\n      if (Array.isArray(o)) return o.forEach(walk);\n      if (o.type === 'table' && Array.isArray(o.items)) rows.push(...o.items);\n      Object.values(o).forEach((v) => v && typeof v === 'object' && walk(v));\n    };\n    walk(x.details || {});\n    const extra = {};\n    if (id === 'agent-accessibility-tree') {\n      extra.fails = {};\n      for (const r of rows) if (r.description) extra.fails[r.description] = (extra.fails[r.description] || 0) + 1;\n    }\n    if (id.startsWith('webmcp-')) extra.items = rows.length;\n    out[id] = { score: x.score, mode: x.scoreDisplayMode, value: x.numericValue ?? null, err: x.explanation || '', ...extra };\n  }\n  return out;\n}\n```\n\n`scoreDisplayMode` matters: `notApplicable` means there was nothing to check, which is different from a fail with score `0`. For layout shift, `numericValue` is the CLS value itself.\n\nOn many sites, `llms-txt` and `ard-schema` came back as **failed**, with explanations like `Fetch of llms.txt failed: Timed out fetching resource` and `ARD manifest could not be loaded for schema validation`. These were sites that have neither file. It happened in single, unloaded runs too, not only when we ran several at once.\n\nSo for those two files we skipped Lighthouse and fetched them directly. The check is simple: a valid llms.txt is a 200 response that isn't an HTML page, has a Markdown `#` heading, and has some content:\n\n``` python\nimport re, requests\n\nUA = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Safari/537.36'\n\ndef get(u):\n    try:\n        r = requests.get(u, timeout=20, headers={'User-Agent': UA}, allow_redirects=True)\n        return r.status_code, r.headers.get('content-type', ''), r.text[:20000]\n    except Exception as e:\n        return None, '', type(e).__name__\n\ndef check(root):\n    s, ct, t = get(root + '/llms.txt')\n    html = t.lstrip()[:200].lower().startswith(('<!doctype', '<html')) or 'text/html' in ct\n    llms_valid = s == 200 and not html and bool(re.search(r'^#\\s+\\S', t, re.M)) and len(t) >= 50\n    s2, _, t2 = get(root + '/.well-known/ard.json')\n    ard = s2 == 200 and t2.lstrip().startswith('{')\n    return {'llms_valid': llms_valid, 'ard': ard}\n```\n\nThe HTML test matters on WordPress: some sites answer `/llms.txt` with a normal page and a 200, which is not an llms.txt file.\n\n`webmcp-registered-tools` can only list tools that the page registered through the WebMCP API. In Chrome, that API exists on a page only when WebMCP is switched on for the origin, through the origin trial or the testing flag. You can see the difference with puppeteer:\n\n``` python\nimport puppeteer from 'puppeteer';\nconst browser = await puppeteer.launch({ headless: 'new' });\nconst page = await browser.newPage();\nawait page.goto(process.argv[2], { waitUntil: 'load', timeout: 45000 });\nconsole.log(await page.evaluate(() => ({ modelContext: !!document.modelContext })));\nawait browser.close();\n```\n\nOn a Shopify storefront we tested it printed `true`, and Lighthouse listed the store's tools. On sites without WebMCP switched on it printed `false`, so any tools a plugin tries to register never show up, and Lighthouse reports \"not applicable\". If you are building WebMCP tools, test with the testing flag (`chrome://flags/#enable-webmcp-testing`, in Chrome Canary) before you read anything into that audit.\n\nWith those caveats handled, here is how the WordPress homepages did:\n\n`agent-accessibility-tree`.\nInside the accessibility tree, one rule dominated: **links must have discernible text**, failed by 69% of all homepages.\n\nWe parsed the raw HTML of the homepages that failed it to see which links. 74% had a logo or other image link with no alt text, 44% had social icons with no label, and 38% had empty links. The median failing homepage had 6 nameless links. The fixes are content work in the WordPress admin, not code: alt text on the logo in the Media Library, labels on social icon widgets, and deleting empty links.\n\n**Method, in one line:** a random set of WordPress small-business homepages, Lighthouse 13.6, desktop, Chrome 158, 1 December 2026, with llms.txt and ARD fetched directly as above. Homepages only, because in Vercel's study of 1,033 agent runs the homepage was the agent's first step in 92% of the runs that reached it.\n\nThe site owner's version, with the 7-point checklist and a test for every check: [Is Your WordPress Site AI Agent Ready? A 7-Point Checklist](https://www.lovedby.ai/blog/agent-ready-wordpress).", "url": "https://wpnews.pro/news/running-the-lighthouse-agentic-browsing-audit-at-scale-what-we-learned-on-sites", "canonical_source": "https://dev.to/lovedbyai/running-the-lighthouse-agentic-browsing-audit-at-scale-what-we-learned-on-wordpress-sites-kle", "published_at": "2026-12-01 20:59:10+00:00", "updated_at": "2026-12-01 21:13:54.534411+00:00", "lang": "en", "topics": ["ai-agents", "ai-crawlers", "agent-protocols", "developer-tools", "ai-search"], "entities": ["Lighthouse", "Google Chrome", "WordPress", "WebMCP", "Node.js", "Python", "LovedBy"], "also_reported_by": [], "takeaway": "Lighthouse's Agentic Browsing category can't run concurrently in one Node process — spawn one process per URL with a timeout guard and an external pool (eight at a time worked on a 10-core laptop) — and on most sites the score reduces to the agent-accessibility-tree and cumulative-layout-shift audit", "recommendation": {"advice": "Run each Lighthouse Agentic Browsing audit in its own Node process with a hard timeout and kill Chrome on exit, pooling processes externally to avoid the shared-timing-state failure.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/running-the-lighthouse-agentic-browsing-audit-at-scale-what-we-learned-on-sites", "markdown": "https://wpnews.pro/news/running-the-lighthouse-agentic-browsing-audit-at-scale-what-we-learned-on-sites.md", "text": "https://wpnews.pro/news/running-the-lighthouse-agentic-browsing-audit-at-scale-what-we-learned-on-sites.txt", "jsonld": "https://wpnews.pro/news/running-the-lighthouse-agentic-browsing-audit-at-scale-what-we-learned-on-sites.jsonld"}}