Skip to main content
This guide shows how to test basic SEO elements like page titles, meta descriptions, and essential SEO tags. Perfect for validating SEO implementation.

Use Cases

  • Test page titles and meta descriptions
  • Validate essential SEO tags
  • Check for missing SEO elements
  • Test SEO across different pages

Simple Implementation

Setup Instructions

  1. Update the test_pages list with your actual website pages
  2. Adjust SEO length thresholds based on your requirements
  3. Add more specific SEO checks for your industry/content type
  4. Customize the regex patterns if your HTML structure is different

What This Tests

  • Page Titles: Presence and optimal length (30-60 characters)
  • Meta Descriptions: Presence and optimal length (120-160 characters)
  • Heading Structure: H1 and H2 tag usage
  • Mobile Viewport: Mobile-friendly viewport meta tag
  • Canonical URLs: Canonical link tags for duplicate content
  • Open Graph: Basic social media sharing tags
  • Robots Directives: Search engine crawling instructions
  • Page Speed: Basic load time measurement

SEO Best Practices

  • Title Length: 50-60 characters for optimal display
  • Meta Description: 150-160 characters for search snippets
  • One H1 per Page: Single, descriptive H1 tag
  • Mobile Viewport: Essential for mobile SEO
  • Page Speed: Under 3 seconds for good user experience

Common SEO Issues

  • Missing or empty title tags
  • Duplicate or missing meta descriptions
  • Multiple H1 tags on one page
  • Missing mobile viewport tag
  • Slow page load times