Principle:ALwrity ALwrity On Page SEO Analysis
| Knowledge Sources | |
|---|---|
| Domains | SEO, Web_Analysis, Content_Quality |
| Last Updated | 2026-10-24 00:00 GMT |
Overview
Mechanism that audits a web page's HTML for search-engine optimisation by scoring meta tags, technical structure, and content quality, and producing actionable issue lists.
Description
On-page SEO analysis is the systematic inspection of a page's HTML for signals that search engines use to rank it. It covers three categories: (1) meta tags — title length, meta description, viewport, charset, robots directive, Open Graph, and Twitter card; (2) technical structure — canonical URL, single H1, structured data (JSON-LD schema); (3) content quality — heading hierarchy, image alt-text coverage, link analysis, and word count. Each category produces a score (0-100) starting from 100 and deducted per issue, plus a list of human-readable issues.
This solves the optimisation-feedback problem: a content generator can produce text that reads well but violates SEO conventions (missing canonical, duplicate H1, no alt text). The analysis returns a concrete fix list rather than a single opaque score.
Usage
Use this principle when:
- A content pipeline must verify SEO compliance before publishing.
- An audit tool must score a page and return actionable recommendations.
- Heading structure, meta tags, and schema markup must be validated programmatically.
- A score threshold gates whether content is publish-ready.
Theoretical Basis
Each category is a rule engine that starts at 100 and deducts per violated rule:
# Abstract on-page SEO analysis (NOT a real implementation)
def analyze(soup, url):
return {
"meta": score_meta(soup), # title 30-60, desc 70-160, viewport present
"technical": score_technical(soup), # canonical present, exactly 1 H1, schema present
"content": score_content(soup), # heading hierarchy, alt coverage, word count
}
def score_meta(soup):
score = 100
issues = []
if not soup.title: score -= 20; issues.append("Missing title")
elif not (30 <= len(soup.title) <= 60): score -= 10; issues.append("Title length")
# ...
return {"score": max(0, score), "issues": issues}
Practical Guide
- Per-category scores.' Return separate scores so the user can see which category needs work, not just an aggregate.
- Actionable issues.' Each issue should describe what is wrong and the expected range (e.g. "Title length (12 chars) should be 30-60 chars").
- Deductive scoring.' Start at 100 and deduct per rule violation; this is easier to reason about than additive scoring.
- Structured data check.' Verify JSON-LD schema presence, not just any script tag, to avoid false positives.