Skip to content

Rule Packs

OCEANOFANYTHING edited this page Nov 24, 2026 · 1 revision

Rule packs add extra checks to ShoutingToad on top of the 474 built-in ones. A pack is a small text file (TOML) with checks for a platform (Shopify, WordPress), a kind of site (local business, online shop) or your agency's own house rules. Once a pack is loaded, its findings appear exactly like built-in checks: in the Issues panel, the URL inspector, the HTML audit report, every CSV export, the health score, and the command line's --fail-on and --fail-on-check gates.

ShoutingToad ships with four starter packs (42 rules). This page explains how to use packs; Writing rule packs explains how to write your own.

Safe to use: rule packs are data, not code. They cannot run programs, read files or make network requests; they can only report findings. Loading a pack someone else wrote is safe.

Where the starter packs are

The four starter packs are in the rules/ folder of the ShoutingToad download (and of the GitHub repository):

File Pack Rules For
shopify.toml Shopify 10 Shopify stores: collection-scoped product URLs, variant and tag pages, .myshopify.com links, product structured data.
wordpress.toml WordPress 13 WordPress sites: plain permalinks, attachment and archive pages, default content, version disclosure, legacy scripts.
local-seo.toml Local SEO 9 Local businesses: LocalBusiness structured data, click-to-call links, address and map on the contact page.
ecommerce.toml E-commerce 10 Any online shop: indexable faceted/cart URLs, add-to-cart links, product and offer structured data.

Load only the packs that fit the site. A WordPress pack on a Shopify store won't find anything useful, and the Local SEO pack will flag a missing LocalBusiness markup on any site that isn't a local business.

Open the Rule packs dialog

Click Configuration → Rule packs….

The Configuration menu with "Rule packs…" highlighted

The first time, the list is empty:

The Rule packs dialog with no packs

  1. Intro: "Rule packs add extra checks, written as simple TOML files…".
  2. How to write a rule pack: opens the rule-pack documentation on GitHub in your browser. Next to it, a reminder that the starter packs are in the rules/ folder.
  3. No rule packs yet. Add a pack file or a folder of packs. (only shown while the list is empty).
  4. Add pack file…: opens a file dialog filtered to .toml files. You can select several files at once; each becomes its own entry in the list, switched on.
  5. Add folder…: opens a folder dialog. The folder becomes one entry, and every *.toml file directly in it is loaded as a pack (sorted by file name; subfolders are not searched). Packs you drop into the folder later are picked up when you click Reload or start the next crawl.
  6. Reload: reads the pack files again. Use it after you edit a pack in a text editor (hover text: Read the files again after editing them).
  7. Status line: "N rules active. Selector and HTML tests need a new crawl; other tests apply to the current results now." While a crawl is running, it says Changes apply when the current crawl ends. instead.

Add packs

  1. Click Add pack file…, go to the rules/ folder, select the packs you want (for example shopify.toml, wordpress.toml, local-seo.toml and ecommerce.toml) and click Open. Or click Add folder… and pick the rules/ folder to load all four at once.
  2. The packs are loaded and checked immediately.

The Rule packs dialog with four valid packs and one pack with errors

Each entry shows:

  1. A check box (on = the pack is used) and the path of the file or folder.
  2. Remove: takes the entry off the list (the file itself is not deleted).
  3. For every valid pack in that file or folder: ✔ name version by author: N rules, and a homepage link when the pack has a web address.
  4. For a pack with mistakes: one red ✖ line per problem, as file:line: rule 'id': message. A pack with any problem is not loaded at all (none of its rules run), so a half-broken pack can't give misleading results. Fix the file and click Reload. See Writing rule packs for what each message means.

Adding a file or folder that is already in the list does nothing (duplicates are removed). Two packs with the same pack id can't be loaded together: the second one shows pack id '…' is already used by …. That also happens when one file is loaded twice by different routes, for example once on its own and once through its folder.

Switch a pack off and on

Untick the check box in front of a pack. It shows Disabled and its rules stop counting straight away (the status line drops from 42 to 32 rules active when the Shopify pack is switched off). Tick it again to bring it back. This is handy when you audit several kinds of sites and don't want to remove and re-add packs.

The Shopify pack switched off, shown as Disabled

When the rules take effect

  • Rules that only look at the URL, response headers or numbers (status, word count, title length, depth, inlinks…) apply to the current results immediately: the app re-runs the audit when you add, remove, enable or disable a pack.
  • Rules that look inside the page (CSS selector tests and raw html tests) are evaluated by the crawler while it reads each page. They need a new crawl (or a saved crawl that was made with the same rules loaded). Until then they stay silent rather than guess.
  • If you change packs while a crawl is running, the running crawl keeps the rules it started with, and the change applies when it ends.
  • When you start a crawl, the packs are re-read if any file changed on disk, so a pack you edited is always used by the next crawl.

The list of pack paths and their on/off state is saved with your settings, so packs are loaded again the next time you open the app. The pack files themselves are read from disk; keep them where you added them from (if a file is missing, its entry shows an error).

How rule findings appear

Rule findings are mixed in with the built-in checks everywhere:

  • In the Issues panel, a rule appears under its category. A rule can use a built-in category (for example Structured Data) or create a new one (for example Local SEO, which shows up as a new group at the end of the list).
  • Click a rule to list its URLs. The banner above the URL table shows the rule's type, priority, name, description and How to fix, exactly like a built-in check.
  • The URL inspector's Issues tab lists rule findings for the selected URL.
  • The status bar counts them: here 516 checks (474 built-in + 42 from the four packs).

A Local SEO rule selected in the Issues panel, with its description and fix above the URL table

In this example the crawl of books.toscrape.com was made with the starter packs loaded. Two Local SEO rules fired on the home page: Home page has no LocalBusiness structured data (under Structured Data) and Home page has no click-to-call link (under the new Local SEO category). That's expected: a bookshop demo is not a local business. It shows why you should only load packs that fit the site.

Rule checks are also listed in Help → All checks…, which then shows the total including packs ("All 516 checks", "31 categories"). Search by a pack id such as local-seo to see just that pack's rules, and click one to read its description, fix and full id:

Help → All checks… searched for "local-seo", with a rule selected

In exports, a rule's Issue ID is pack-id/rule-id (for example local-seo/home-no-click-to-call), so you can filter rule findings in issues.csv and issue_urls.csv.

The starter packs and every rule in them

shouting-toad rules list rules/ prints every rule with its id, type, priority, category and name:

$ shouting-toad rules list rules/
E-commerce (ecommerce) 1.0.0 by N&D Co.: 10 rules in rules/ecommerce.toml
  ecommerce/faceted-url-indexable              Warning     Medium URL: Sorted or filtered listing URL is indexable
  ecommerce/cart-account-indexable             Warning     Medium Directives: Cart, checkout or account page is indexable
  ecommerce/add-to-cart-links                  Warning     Low    Links: Crawlable add-to-cart links
  ecommerce/product-no-breadcrumb-schema       Opportunity Low    Structured Data: Product page without BreadcrumbList markup
  ecommerce/product-no-identifier              Opportunity Low    Structured Data: Product markup without GTIN, MPN or ISBN
  ecommerce/offer-no-return-policy             Opportunity Low    Structured Data: Product offer without return policy markup
  ecommerce/offer-no-shipping                  Opportunity Low    Structured Data: Product offer without shipping details
  ecommerce/price-zero                         Warning     Medium Structured Data: Product price is 0 in structured data
  ecommerce/out-of-stock                       Opportunity Low    Content: Product is out of stock
  ecommerce/thin-product-page                  Opportunity Low    Content: Product page with little text
Local SEO (local-seo) 1.0.0 by N&D Co.: 9 rules in rules/local-seo.toml
  local-seo/home-no-localbusiness-schema       Warning     Medium Structured Data: Home page has no LocalBusiness structured data
  local-seo/localbusiness-no-geo               Opportunity Low    Structured Data: LocalBusiness markup without geo coordinates
  local-seo/home-no-click-to-call              Opportunity Low    Local SEO: Home page has no click-to-call link
  local-seo/contact-no-click-to-call           Warning     Low    Local SEO: Contact page has no click-to-call link
  local-seo/contact-no-address-markup          Opportunity Medium Local SEO: Contact page has no machine-readable address
  local-seo/contact-no-map                     Opportunity Low    Local SEO: Contact page has no map
  local-seo/tel-no-country-code                Opportunity Low    Local SEO: Click-to-call number without country code
  local-seo/tel-with-letters                   Warning     Low    Local SEO: Click-to-call link contains letters
  local-seo/thin-location-page                 Warning     Low    Content: Thin location or service-area page
Shopify (shopify) 1.0.0 by N&D Co.: 10 rules in rules/shopify.toml
  shopify/collection-product-links             Warning     Low    Links: Links to collection-scoped product URLs
  shopify/collection-product-indexable         Issue       Medium Canonicals: Collection-scoped product URL is indexable
  shopify/variant-url-indexable                Warning     Medium Canonicals: ?variant= URL is indexable
  shopify/tag-filter-indexable                 Warning     Low    Content: Tag-filtered collection page is indexable
  shopify/blog-tag-indexable                   Opportunity Low    Content: Blog tag page is indexable
  shopify/vendor-type-pages                    Warning     Low    Content: Automatic vendor or product-type page is indexable
  shopify/product-no-schema                    Warning     Medium Structured Data: Product page without Product structured data
  shopify/myshopify-links                      Issue       Medium Links: Links to the .myshopify.com domain
  shopify/myshopify-canonical                  Issue       High   Canonicals: Canonical points to the .myshopify.com domain
  shopify/powered-by-link                      Opportunity Low    Links: 'Powered by Shopify' footer link
WordPress (wordpress) 1.0.0 by N&D Co.: 13 rules in rules/wordpress.toml
  wordpress/plain-permalink                    Warning     Medium URL: Plain ?p= or ?page_id= permalink
  wordpress/attachment-page                    Issue       Medium Content: Attachment page is indexable
  wordpress/author-archive-indexable           Opportunity Low    Content: Author archive is indexable
  wordpress/date-archive-indexable             Warning     Low    Content: Date archive is indexable
  wordpress/uncategorized                      Warning     Low    Content: Default 'Uncategorized' category is live
  wordpress/sample-content                     Warning     Medium Content: Default 'Sample Page' or 'Hello world!' post is live
  wordpress/default-tagline                    Issue       Medium Page Titles: Default tagline 'Just another WordPress site'
  wordpress/generator-version                  Warning     Low    Security: WordPress version in the generator meta tag
  wordpress/xmlrpc-advertised                  Opportunity Low    Security: XML-RPC endpoint advertised in the page head
  wordpress/rest-api-advertised                Opportunity Low    Security: REST API advertised in the page head
  wordpress/emoji-script                       Opportunity Low    Performance: WordPress emoji script on every page
  wordpress/jquery-migrate                     Opportunity Low    Performance: jQuery Migrate is loaded
  wordpress/replytocom                         Issue       Medium URL: ?replytocom= comment URL is indexable

The tables below give every rule's full description and fix, taken from the pack files. Scope says which URLs a rule looks at: html = internal HTML pages that returned 200; indexable = only indexable ones (no noindex, canonical to themselves, not blocked). See Writing rule packs for all scopes.

E-commerce (ecommerce.toml, 10 rules)

Online shop checks for any platform: indexable faceted and account URLs, crawlable add-to-cart links, and product structured data that merchant listings use.

Rule id Type Priority Scope Name What it finds How to fix
ecommerce/faceted-url-indexable Warning Medium indexable Sorted or filtered listing URL is indexable A URL with sort or filter parameters (sort, orderby, color, size, price, filter…) is indexable on its own. Faceted navigation creates a near-endless number of these near-duplicate listings, which wastes crawl budget and splits ranking signals. Canonicalise sorted and filtered views to the unfiltered category (or noindex them), and keep facet links out of the crawl with robots.txt rules or links that are not plain <a href>. Index only the few filter combinations that have their own search demand.
ecommerce/cart-account-indexable Warning Medium indexable Cart, checkout or account page is indexable A cart, checkout, account, login, wishlist or compare page is indexable. These pages are different for every visitor and have nothing to rank for. Add <meta name="robots" content="noindex"> to these templates (most platforms and SEO plugins have a setting), and do not list them in the sitemap.
ecommerce/add-to-cart-links Warning Low html Crawlable add-to-cart links The page has plain links that add a product to the cart (?add-to-cart= or /cart/add) without rel="nofollow". Crawlers follow them, which creates sessions and carts and wastes crawl budget on URLs that only redirect. Use a form or button for add-to-cart actions, or add rel="nofollow" to the links (WooCommerce's own templates do), and disallow the parameter in robots.txt.
ecommerce/product-no-breadcrumb-schema Opportunity Low html Product page without BreadcrumbList markup The page has Product structured data but no BreadcrumbList. Breadcrumb markup lets Google show the category path instead of the URL in results and explains where the product sits in the shop. Add BreadcrumbList JSON-LD that mirrors the visible breadcrumb (Home › Category › Product).
ecommerce/product-no-identifier Opportunity Low html Product markup without GTIN, MPN or ISBN The Product structured data has no global identifier (gtin, gtin8, gtin12, gtin13, gtin14, mpn or isbn). Google uses identifiers to match a product across sellers for merchant listings and Shopping. Add the product's barcode as gtin13 (or the right gtin length), or the manufacturer part number as mpn, to the Product (or each variant's) JSON-LD.
ecommerce/offer-no-return-policy Opportunity Low html Product offer without return policy markup The Product structured data has no hasMerchantReturnPolicy. Google can show return terms in merchant listings when they are marked up on the offer or set store-wide (Organization markup or Merchant Center). Add hasMerchantReturnPolicy (MerchantReturnPolicy with applicableCountry, returnPolicyCategory and merchantReturnDays) to the Offer, or set one store-wide policy in Organization markup or Merchant Center and ignore this check.
ecommerce/offer-no-shipping Opportunity Low html Product offer without shipping details The Product structured data has no shippingDetails. Google can show shipping cost and delivery time in merchant listings when they are marked up on the offer or set store-wide in Merchant Center. Add shippingDetails (OfferShippingDetails with shippingRate, shippingDestination and deliveryTime) to the Offer, or configure shipping in Merchant Center and ignore this check.
ecommerce/price-zero Warning Medium html Product price is 0 in structured data A Product in the structured data has an offer with a price of 0. Unless the product really is free, this is usually a variant or template bug, and Google may show the product as free or reject the listing. Output the real price of the selected or cheapest available variant. Leave out offers for products that have no price.
ecommerce/out-of-stock Opportunity Low html Product is out of stock The structured data marks the product as OutOfStock. Listing these pages helps decide what to do with them: keep the page if the product comes back, otherwise link to alternatives or redirect it to the closest product or category. Keep temporarily unavailable products live with links to similar products. Redirect (301) discontinued products to their replacement or category.
ecommerce/thin-product-page Opportunity Low html Product page with little text A page with Product structured data has fewer than 150 words of text. Manufacturer one-liners give search engines and shoppers little to go on and are often duplicated across many shops. Write a unique description: what it is for, materials, sizes, care, what is in the box. Add specifications and answers to common questions.

Local SEO (local-seo.toml, 9 rules)

Checks for local businesses: LocalBusiness structured data, click-to-call links, address and map on the contact page, thin location pages.

Rule id Type Priority Scope Name What it finds How to fix
local-seo/home-no-localbusiness-schema Warning Medium html Home page has no LocalBusiness structured data The home page has no JSON-LD of type LocalBusiness or one of its subtypes (Restaurant, Dentist, Plumber, Store…). This markup tells search engines the business name, address, phone number and opening hours, which feed local results and the knowledge panel. Add LocalBusiness JSON-LD (the most specific subtype that fits) to the home page with name, address, telephone, openingHoursSpecification, geo and url. Keep it identical to your Google Business Profile.
local-seo/localbusiness-no-geo Opportunity Low html LocalBusiness markup without geo coordinates The page has LocalBusiness structured data but no geo property. Google recommends geo (latitude and longitude, at least 5 decimal places) so the business is placed exactly on the map. Add "geo": {"@type": "GeoCoordinates", "latitude": …, "longitude": …} to the LocalBusiness JSON-LD.
local-seo/home-no-click-to-call Opportunity Low html Home page has no click-to-call link The home page has no tel: link. Most local searches happen on phones, where a tappable phone number is the quickest way for a customer to reach the business. Link the phone number in the header or hero: <a href="tel:+13035550123">(303) 555-0123</a>.
local-seo/contact-no-click-to-call Warning Low html Contact page has no click-to-call link This contact page has no tel: link, so visitors on phones cannot call with a tap. Show the phone number as a link: <a href="tel:+13035550123">(303) 555-0123</a>.
local-seo/contact-no-address-markup Opportunity Medium html Contact page has no machine-readable address This contact page has no <address> element, no PostalAddress in its structured data and no microdata address. A street address in plain text is fine for people, but marking it up states the name, address and phone (NAP) unambiguously for search engines. Wrap the address in <address>, or add LocalBusiness JSON-LD with a PostalAddress (streetAddress, addressLocality, postalCode, addressCountry) that matches your Google Business Profile exactly.
local-seo/contact-no-map Opportunity Low html Contact page has no map This contact page neither embeds nor links to Google Maps. A map (or a directions link) helps visitors find the business and ties the page to its map listing. Embed the Google Maps listing of the business (Share → Embed a map) or link to it (Share → Copy link).
local-seo/tel-no-country-code Opportunity Low html Click-to-call number without country code A tel: link uses a local number (tel:303-555-0123) instead of the international form (tel:+13035550123). Local numbers fail for visitors calling from abroad or on a foreign SIM, and the + form is the one RFC 3966 defines for global numbers. Write tel: links in international format: tel:+ then country code and number, digits only (the visible text can stay local).
local-seo/tel-with-letters Warning Low html Click-to-call link contains letters A tel: link contains letters, such as a vanity number (tel:1-800-FLOWERS). tel: numbers may only hold digits and separators, so phones may refuse or misdial it. Put the digits in the link (tel:+18003569377) and keep the vanity spelling only in the visible text.
local-seo/thin-location-page Warning Low html Thin location or service-area page A location or service-area page has fewer than 300 words. Near-identical city pages that only swap the place name are treated by Google as doorway pages. Give each location page unique content: the address and map, opening hours, staff, local projects or reviews, directions and parking.

Shopify (shopify.toml, 10 rules)

Shopify-specific duplicate URLs and theme defaults: collection-scoped product URLs, variant and tag-filter pages, .myshopify.com links, missing product structured data.

Rule id Type Priority Scope Name What it finds How to fix
shopify/collection-product-links Warning Low html Links to collection-scoped product URLs The page links (with relative URLs, as Shopify themes do) to products as /collections/<collection>/products/<product>. Shopify serves every product at /products/<product> and again under each collection it is in, so crawlers fetch the same product many times and internal link signals are split between URLs that canonicalise elsewhere. In the theme's product card or grid snippet, link to product.url instead of product.url | within: collection (search the theme code for 'within').
shopify/collection-product-indexable Issue Medium indexable Collection-scoped product URL is indexable A /collections/<collection>/products/<product> URL is indexable: it has no canonical, or a canonical to itself. It duplicates /products/<product> and every other collection path of the same product. Make the theme output <link rel="canonical" href="{{ canonical_url }}"> in theme.liquid. Shopify's canonical_url for these pages is the plain /products/ URL.
shopify/variant-url-indexable Warning Medium indexable ?variant= URL is indexable A product URL with a ?variant= parameter is indexable on its own, so every variant is a duplicate of the product page. Use {{ canonical_url }} for the canonical tag (it drops the variant parameter), and avoid linking to ?variant= URLs from collection pages.
shopify/tag-filter-indexable Warning Low indexable Tag-filtered collection page is indexable Collection pages filtered by a tag (/collections/<collection>/<tag>) are indexable. Shopify's default robots.txt only blocks combinations of tags (+), so single-tag pages are open to crawlers and are mostly thin copies of the collection. Add a noindex for tag-filtered collections in theme.liquid ({% if current_tags %}<meta name="robots" content="noindex, follow">{% endif %}), or give the tag pages that matter their own collections.
shopify/blog-tag-indexable Opportunity Low indexable Blog tag page is indexable Shopify blog tag pages (/blogs/<blog>/tagged/<tag>) list excerpts of posts that already have their own pages, so they are thin, near-duplicate pages. Noindex tag pages in the blog template ({% if current_tags %} … noindex …), unless a tag page has its own introduction.
shopify/vendor-type-pages Warning Low indexable Automatic vendor or product-type page is indexable Shopify generates /collections/vendors?q= and /collections/types?q= pages for every vendor and product type. They have no description of their own and are not blocked by the default robots.txt. Stop linking to them (product templates often link the vendor), or noindex them in theme.liquid when collection.handle is 'vendors' or 'types'. Create real collections for vendors that deserve a page.
shopify/product-no-schema Warning Medium html Product page without Product structured data This /products/ page has no Product or ProductGroup structured data (JSON-LD or microdata), so it is not eligible for product rich results such as price, availability and reviews in Google. Add <script type="application/ld+json">{{ product | structured_data }}</script> to the product template (Shopify's own themes such as Dawn do this), or use a schema app.
shopify/myshopify-links Issue Medium html Links to the .myshopify.com domain The page links to the store's .myshopify.com address. That host serves the same store, so these links leak crawlers and visitors to a duplicate domain. Replace hard-coded .myshopify.com links in menus, pages and theme settings with relative links or the primary domain.
shopify/myshopify-canonical Issue High html Canonical points to the .myshopify.com domain The canonical tag names the .myshopify.com address instead of the store's primary domain, telling search engines to index the wrong host. Set the primary domain under Settings → Domains, and output the canonical with {{ canonical_url }} rather than a hard-coded URL.
shopify/powered-by-link Opportunity Low html 'Powered by Shopify' footer link The theme still shows the default 'Powered by Shopify' footer link (to shopify.com?utm_campaign=poweredby). Most stores remove it: it sends visitors away and looks unfinished. In the theme editor's 'Edit default theme content', search for 'Powered by Shopify' and clear it, or remove {{ powered_by_link }} from the footer section.

WordPress (wordpress.toml, 13 rules)

Default WordPress output that hurts SEO, leaks details or slows pages down: plain permalinks, attachment and archive pages, leftover default content, version and endpoint disclosure, legacy scripts.

Rule id Type Priority Scope Name What it finds How to fix
wordpress/plain-permalink Warning Medium indexable Plain ?p= or ?page_id= permalink An indexable WordPress page answers on a plain permalink (?p=123 or ?page_id=123) instead of redirecting to a readable URL. Plain permalinks carry no words, and when the setting is changed later every post is reachable at two addresses unless the old ones redirect. Settings → Permalinks: choose 'Post name'. WordPress then 301-redirects the ?p= URLs to the new addresses.
wordpress/attachment-page Issue Medium indexable Attachment page is indexable WordPress can give every uploaded file its own page (body class single-attachment) that holds little more than the image. These thin pages are indexable here and compete with the posts the images belong to. Set the wp_attachment_pages_enabled option to 0 (WordPress 6.4+ turns attachment pages off for new installs only), or use your SEO plugin's 'redirect attachment URLs to the file' setting.
wordpress/author-archive-indexable Opportunity Low indexable Author archive is indexable Author archives (/author/name/) list the same posts as the blog. On a single-author site each one is a near-duplicate of the blog index. On a single-author site, noindex or disable author archives in your SEO plugin. On a multi-author site keep them and add a real bio so each one is unique.
wordpress/date-archive-indexable Warning Low indexable Date archive is indexable Year, month and day archives (/2024/05/) repeat posts that are already listed in categories and the blog index, adding thin, duplicate pages to the index. Noindex or disable date archives in your SEO plugin, and remove archive or calendar widgets that link to them.
wordpress/uncategorized Warning Low html Default 'Uncategorized' category is live The default WordPress category is still in use and has its own archive page. 'Uncategorized' tells visitors and search engines nothing about the posts in it. Rename the default category (Posts → Categories) to a real topic, or move its posts into real categories.
wordpress/sample-content Warning Medium html Default 'Sample Page' or 'Hello world!' post is live The Sample Page or Hello world! post that WordPress creates on install is still published. Delete the sample page and the Hello world! post (with its sample comment), then empty the trash.
wordpress/default-tagline Issue Medium html Default tagline 'Just another WordPress site' The page still shows the tagline WordPress set by default before version 6.1. Themes and SEO plugins put the tagline in titles and descriptions, where it looks unfinished. Settings → General: replace the tagline with a short description of the site, or clear it.
wordpress/generator-version Warning Low html WordPress version in the generator meta tag <meta name="generator" content="WordPress x.y"> tells anyone which WordPress version runs the site, which makes it easy to match against known vulnerabilities. Keep WordPress updated, and remove the tag with remove_action('wp_head', 'wp_generator') or your security plugin.
wordpress/xmlrpc-advertised Opportunity Low html XML-RPC endpoint advertised in the page head The page links to xmlrpc.php (pingback or RSD link). XML-RPC is a common target for password guessing and pingback abuse, and most sites no longer need it. If you do not use the mobile apps, Jetpack or pingbacks, disable XML-RPC (add_filter('xmlrpc_enabled', '__return_false')), and remove the rsd_link action from wp_head.
wordpress/rest-api-advertised Opportunity Low html REST API advertised in the page head <link rel="https://api.w.org/"> points bots at /wp-json/. Unless it is restricted, /wp-json/wp/v2/users lists the login names of everyone who has published a post. Remove the link with remove_action('wp_head', 'rest_output_link_wp_head'), and restrict the users endpoint to logged-in users (most security plugins have a setting for it).
wordpress/emoji-script Opportunity Low html WordPress emoji script on every page WordPress adds an inline emoji detection script and stylesheet to every page. Current browsers draw emoji themselves, so this is wasted bytes and main-thread work. Remove it with remove_action('wp_head', 'print_emoji_detection_script', 7) and remove_action('wp_print_styles', 'print_emoji_styles'), or your performance plugin's 'disable emojis' setting.
wordpress/jquery-migrate Opportunity Low html jQuery Migrate is loaded jquery-migrate.js only exists to keep code written for old jQuery versions working. If no plugin or theme needs it, it is an extra script on every page. Check the browser console for JQMIGRATE warnings. If there are none, dequeue jquery-migrate or use your performance plugin's setting.
wordpress/replytocom Issue Medium indexable ?replytocom= comment URL is indexable Comment reply links (?replytocom=123) create a copy of the post for every comment, and this copy is indexable. Canonicalise or redirect ?replytocom= URLs to the post (most SEO plugins can strip the parameter), and make reply links JavaScript-only by enabling threaded comments.

Tip for Shopify stores: Shopify answers fast crawlers with HTTP 429 (Too Many Requests). The Shopify pack's own header recommends a low thread count and a delay, for example --max-urls 500 --delay 300. See Troubleshooting.

Using packs on the command line

Add --rules to crawl or list. Repeat it for several files or folders; a folder loads every *.toml file in it:

shouting-toad crawl https://example.com --rules rules/wordpress.toml
shouting-toad crawl https://example.com --rules rules/ --rules agency-rules.toml
shouting-toad crawl https://staging.example.com --rules rules/ --fail-on-check wordpress/default-tagline

The crawl prints how many rules it loaded, and rule findings appear in the summary and in every report:

$ shouting-toad crawl https://books.toscrape.com/ --rules rules --max-urls 300 --threads 4 --delay 100 --no-ai-bots --out books-rules
Loaded 42 rules from 4 rule pack(s)
Crawling https://books.toscrape.com/ …
...
Crawled 301 URLs in 35.0s (9 URLs/s). Health score: 71/100
Audit took 0.0s, writing reports took 0.1s
4 issues, 15 warnings, 33 opportunities (516 checks run)
  ...
  [Warning     Medium] Structured Data: Home page has no LocalBusiness structured data      1 URLs
  ...

Good to know:

  • An invalid pack stops the run with the list of problems and exit code 1 (error: invalid rule pack: followed by one line per problem). A broken pack can never silently pass a CI gate.
  • --fail-on-check pack-id/rule-id makes the run exit with code 2 when that rule finds anything. An unknown id is an error (unknown check id '…' (run shouting-toad checks or shouting-toad rules list)).
  • --fail-on high|medium|low counts rule findings of type Issue just like built-in issues.
  • --rules works with crawl, list and validate-redirects (which crawls the old URLs in list mode), not with compare or migrate.

rules list and rules validate

Check packs without crawling anything:

shouting-toad rules list <PATH>…       # every rule in the packs, with its full id
shouting-toad rules validate <PATH>…   # check the packs and report problems

<PATH> is one or more files or folders. Real output:

$ shouting-toad rules validate rules/
E-commerce (ecommerce) 1.0.0 by N&D Co.: 10 rules in rules/ecommerce.toml
Local SEO (local-seo) 1.0.0 by N&D Co.: 9 rules in rules/local-seo.toml
Shopify (shopify) 1.0.0 by N&D Co.: 10 rules in rules/shopify.toml
WordPress (wordpress) 1.0.0 by N&D Co.: 13 rules in rules/wordpress.toml
All rule packs are valid.

Both print problems as error: file:line: rule 'id': message followed by N problem(s) found. Exit codes: 0 all packs valid, 1 at least one problem, no packs found (error: no rule packs found), or wrong usage.

shouting-toad checks lists only the built-in checks; use rules list for pack rules.

Common questions

A selector rule doesn't show anything on a saved crawl. Selector and HTML rules are evaluated during the crawl. Re-crawl with the pack loaded.

Can I change a rule's priority without editing the pack? No. Copy the pack, change priority (or kind) in your copy, and give the copy a different pack id if you load both.

Do rule packs affect the health score? Yes. A rule's type and priority weigh it in the score exactly like a built-in check, so loading a pack that finds many problems lowers the score. Compare scores only between crawls made with the same packs.

Where can I find more packs? Search GitHub for the topic shoutingtoad-rules, or write your own: Writing rule packs.


Next steps: Writing rule packs · Checks reference · Issues panel · CI and GitHub Actions

Clone this wiki locally