Skip to content

URLs audit rules

View as Markdown

Sonjoo groups 14 checks under URLs (url). Select this category with sonjoo audit <url> --categories url, or pass the category ID in an HTTP audit request.

This category has weight 3 in the overall audit score when it has scored results. Sonjoo normalizes category weights over the categories with scored results.

All audit categories · Rule settings and interpretation

Distinguish descriptive words from an opaque numeric, generic or dynamic route.

Inputs. The entry URL has been parsed. No network data is required.

Evidence. Flags for descriptive, dynamic and generic slugs.

Base scoring weight 15 when measured.

Apply an editorial cutoff to the share of common English stop words in slugs.

Inputs. The entry URL has been parsed. No network data is required.

Evidence. Parsed words, matched distinct stop words and rounded stop-word percentage.

Base scoring weight 10 when measured.

Warn on uppercase ASCII letters in the path; percent-escape hex digits and the query are excluded.

Inputs. The entry URL has been parsed. No network data is required.

Evidence. Path, distinct uppercase letters and total count.

Base scoring weight 5 when measured.

Warn on literal underscores in the path.

Inputs. The entry URL has been parsed. No network data is required.

Evidence. Path and underscore count.

Base scoring weight 4 when measured.

Find repeated literal slashes in a path.

Inputs. The entry URL has been parsed. No network data is required.

Evidence. Path and proposed collapsed path.

Base scoring weight 5 when measured.

Flag a percent-encoded space in the audited URL path or query.

Inputs. The entry URL has been parsed. No network data is required.

Evidence. Path and percent-encoded space flag.

Base scoring weight 6 when measured.

Report non-ASCII code points in the decoded path or unparseable escapes.

Inputs. The entry URL has been parsed. No network data is required.

Evidence. Decoded path and count of non-ASCII code points, or the original malformed path.

Base scoring weight 4 when measured.

Apply shorter-is-better URL length cutoffs to the full serialized URL.

Inputs. The entry URL has been parsed. No network data is required.

Evidence. Measured URL length and both cutoffs.

Base scoring weight 5 when measured.

Find identical adjacent path segments irrespective of ASCII case.

Inputs. The entry URL has been parsed. No network data is required.

Evidence. Parsed segment list and distinct repeated segment spellings.

Base scoring weight 4 when measured.

Classify query complexity by parameter count and flag duplicate keys.

Inputs. The entry URL has been parsed. No network data is required.

Evidence. Parameter count and duplicate names where present.

Base scoring weight 5 when measured.

Flag recognized session identifier parameters or session identifiers embedded in the path.

Inputs. The entry URL has been parsed. No network data is required.

Evidence. The matching pattern or original path.

Base scoring weight 7 when measured.

Recognize ordinary campaign tracking identifiers independent of key case.

Inputs. The entry URL has been parsed. No network data is required.

Evidence. Detected tracking names and count.

Base scoring weight 5 when measured.

Heuristically identify likely internal search results from conventional query keys or search paths.

Inputs. The entry URL has been parsed. No network data is required.

Evidence. Matching path, search key and search value.

Base scoring weight 4 when measured.

Report a declared canonical that only changes the HTTP scheme of the observed page resource.

Inputs. The entry URL has been parsed. No network data is required.

Evidence. Page and canonical protocols and destination.

Base scoring weight 4 when measured.