The SEO Quality Rater evaluates content against SEO best practices and provides a comprehensive 0-100 score with detailed category breakdowns and actionable recommendations. It checks content quality, keyword optimization, meta elements, structure, links, and readability.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TheCraigHewitt/seomachine/llms.txt
Use this file to discover all available pages before exploring further.
Basic Usage
Use the convenience function for quick rating:Class API
SEOQualityRater
The main rater class with optional custom guidelines:rate()
Rate content against SEO best practices.Article content to rate (full text including headers)
Meta title tag. Target length: 50-60 characters
Meta description tag. Target length: 150-160 characters
Target primary keyword for optimization checks
List of secondary keywords to check
Pre-calculated keyword density (from Keyword Analyzer)
Number of internal links. Target: 3-5 links
Number of external links. Target: 2-3 links
Overall SEO score (0-100)
Letter grade:
A (Excellent), B (Good), C (Average), D (Needs Work), F (Poor)Individual category scores (0-100):
content(20% weight): Content length and qualitykeyword_optimization(25% weight): Keyword usage and placementmeta_elements(15% weight): Meta title and descriptionstructure(15% weight): Heading hierarchy and organizationlinks(15% weight): Internal and external linkingreadability(10% weight): Sentence length and formatting
Critical issues that must be fixed before publishing
Important warnings that should be addressed
Optional suggestions for improvement
True if score >= 80 and no critical issues
Additional details:
word_count(int): Total word counth2_count(int): Number of H2 sectionshas_h1(bool): Has H1 headingkeyword_in_h1(bool): Keyword in H1keyword_in_first_100(bool): Keyword in first 100 words
Category Scores
Content Score (20% weight)
Evaluates content length and paragraph structure:- Word count: Minimum 2000, optimal 2500, max 3000
- Paragraph length: Average 30-150 words per paragraph
- Under 2000 words: -30 points (critical)
- Under 2500 words: -10 points (warning)
- Paragraphs > 150 words: -10 points
- Paragraphs < 30 words: -5 points
Keyword Optimization Score (25% weight)
Evaluates keyword usage and placement:- Keyword in H1: Required
- Keyword in first 100 words: Required
- Keyword in H2 headings: At least 33% of H2s
- Keyword density: Target 1.0-2.0%
- Missing from H1: -20 points (critical)
- Missing from first 100 words: -15 points (critical)
- Low H2 presence: -10 points
- Density too low: -15 points
- Density too high (> 3%): -20 points (critical)
Meta Elements Score (15% weight)
Evaluates meta title and description:- Meta title: 50-60 characters, includes keyword
- Meta description: 150-160 characters, includes keyword
- Missing meta title: -40 points (critical)
- Missing meta description: -40 points (critical)
- Title too short/long: -10-15 points
- Description too short/long: -10-15 points
- Keyword not in title: -15 points
- Keyword not in description: -10 points
Structure Score (15% weight)
Evaluates heading hierarchy:- H1 count: Exactly one H1
- H2 count: Minimum 4, optimal 6
- Missing H1: -30 points (critical)
- Multiple H1s: -20 points (critical)
- Under 4 H2s: -15 points
- Under 6 H2s: -5 points
Links Score (15% weight)
Evaluates internal and external linking:- Internal links: Minimum 3, optimal 5
- External links: Minimum 2, optimal 3
- Under 3 internal links: -20 points
- Under 5 internal links: -5 points
- Under 2 external links: -15 points
- Under 3 external links: -5 points
Readability Score (10% weight)
Evaluates sentence length and formatting:- Average sentence length: Under 20 words
- Very long sentences: Under 35 words
- Lists: Use bullet or numbered lists
- Average sentence > 25 words: -10 points
- Many very long sentences: -10 points
- No lists: -5 points
Score Interpretation
Letter Grades
- A (90-100): Excellent - Ready to publish
- B (80-89): Good - Minor improvements recommended
- C (70-79): Average - Several improvements needed
- D (60-69): Needs Work - Major improvements required
- F (0-59): Poor - Significant rewrite needed
Publishing Ready
Content is marked aspublishing_ready when:
- Overall score >= 80
- No critical issues present
Issue Types
Critical Issues
Must be fixed before publishing:Warnings
Should be addressed for better performance:Suggestions
Optional improvements:Custom Guidelines
Provide custom SEO guidelines to match your requirements:Real-World Example
Complete quality rating workflow:Integration with Other Modules
Combine with other analyzers for comprehensive scoring:Best Practices
- Aim for 80+ score before publishing
- Fix all critical issues - they significantly impact SEO
- Address warnings - they provide meaningful improvements
- Include meta tags - 15% of total score
- Optimize keyword placement - H1, first 100 words, H2s
- Add internal links - minimum 3, optimal 5
- Include external links - minimum 2 authoritative sources
- Target 2500 words - optimal length for ranking
Related Modules
- Keyword Analyzer - Provides keyword_density parameter
- Readability Scorer - Additional readability metrics
- Content Length Comparator - Optimal word count recommendations