Skip to content

tech-detect: fingerprint WordPress caching, SEO and image plugins, and managed WordPress hosts #1033

Closed

Description

@nc9

What

packages/tech-detect recognises WordPress itself but none of the plugins that decide how a WordPress site performs, and none of the managed WordPress hosts. So the report can't say "WP Rocket is installed but page caching is off" or "this host already caches pages", and advice about caching can repeat what the site already runs.

Add fingerprints for

Caching and optimization plugins: WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, WP Fastest Cache, Autoptimize, Perfmatters.

SEO plugins: Yoast SEO, Rank Math, All in One SEO, SEOPress.

Image plugins: ShortPixel, Imagify, EWWW Image Optimizer, Smush.

Managed WordPress hosts: WP Engine, Kinsta, Pressable, WordPress VIP, SiteGround (dynamic cache), Cloudways.

Typical signals: wp-content/plugins/<slug>/ asset URLs, HTML comments the plugins write (for example <!-- This website is like a Rocket and the Yoast or Rank Math schema graph comments), and response headers such as x-litespeed-cache, x-kinsta-cache, x-powered-by: WP Engine and x-sg-cache.

Acceptance Criteria

  • Each plugin and host above has a fingerprint in packages/tech-detect, with a category (cache, seo, images, hosting)
  • Each fingerprint has a test with a minimal HTML or header fixture that detects it, and one that does not falsely detect it on a plain WordPress page
  • A plugin is detected from its asset URL or its own HTML comment, never from its name appearing in page text
  • Header-based host detection records detectedBy: header:<name>
  • The tech list in the docs includes the new fingerprints

Activity

  1. added
    enhancement
    size: M
    on Oct 22, 2026
  2. added theissue type on Oct 28, 2026
  3. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    Checked against current main (v0.0.143, origin/main at 2bb6672). All five criteria hold, so I am ticking them and closing this.

    1. Fingerprint and category for each plugin and host. packages/tech-detect/src/fingerprints/wordpress.ts (WORDPRESS_FINGERPRINTS): cache: WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, WP Fastest Cache, Autoptimize, Perfmatters; seo: Yoast SEO, Rank Math, All in One SEO, SEOPress; images: ShortPixel, Imagify, EWWW Image Optimizer, Smush; hosting: WP Engine, Kinsta, Pressable, WordPress VIP, SiteGround, Cloudways. The first test of packages/tech-detect/tests/wordpress-fingerprints-1033.test.ts asserts every one has a category from the set and an icon slug.
    2. Positive and no-false-positive tests. The same file has a positive fixture for each plugin (an asset URL, the plugin's own HTML comment or its schema block, 27 cases in test.each) and for each host (a response header, 8 cases), plus: "a plain WordPress page matches none of them", "a post that only names them, with the markup shown in <pre>, matches none", look-alike header values do not match, and a plain WordPress page on plain headers matches no host.
    3. Plugins come from an asset URL or their own comment, never from page text. The header comment of wordpress.ts states the rule; wpAssets matches wp-content/<dir>/ only as a script URL, src, or a link/img/source attribute (never an <a href>), comment() needs a literal <!--, schemaBlock() needs the plugin's own JSON-LD class. Tests: "a plugin path in an <a href> or in prose is not an install" and the <pre> case above.
    4. Header hosts record detectedBy: header:<name>. Test "managed hosts from response headers" asserts it for WP Engine (x-powered-by, server), Kinsta (x-kinsta-cache), Pressable, WordPress VIP, SiteGround (x-sg-cache), Cloudways and the W3 Total Cache header. A LiteSpeed-cached app that is not the plugin, and a SiteGround plugin path alone, are explicitly not detected.
    5. Docs. docs/cloud/technologies.mdx lists every plugin and host above.

    bun test packages/tech-detect/tests/wordpress-fingerprints-1033.test.ts: 48 pass. These shipped in v0.0.143 (PR #1303 was landed through the release cherry-pick #1341).

    nik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsize: M

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions