Overview
TheLandingPageScorer class scores landing pages against conversion rate optimization (CRO) best practices. It supports both SEO landing pages and PPC landing pages with different scoring criteria.
Installation
Scoring Categories
The scorer evaluates five weighted categories:- Above-the-fold (25%): Headline, value prop, CTA visibility, trust signal
- CTAs (25%): Quality, distribution, goal alignment
- Trust signals (20%): Testimonials, social proof, risk reversals
- Structure (15%): Benefit-focused, scannable, appropriate length
- SEO (15%): Meta, keywords, links (for SEO pages only)
Page Types
SEO Landing Pages
- Min word count: 1,500
- Optimal word count: 2,000
- Max word count: 2,500
- Min CTAs: 3
- Optimal CTAs: 5
- Internal links: 2+
PPC Landing Pages
- Min word count: 400
- Optimal word count: 600
- Max word count: 800
- Min CTAs: 2
- Optimal CTAs: 3
- Internal links: 0 (minimize distractions)
Initialization
Page type: ‘seo’ or ‘ppc’
Conversion goal: ‘trial’, ‘demo’, or ‘lead’
Methods
score
Score a landing page against CRO best practices.Landing page content (markdown)
Meta title tag
Meta description tag
Target keyword (for SEO pages)
Overall score (0-100)
Letter grade (A-F)
‘seo’ or ‘ppc’
‘trial’, ‘demo’, or ‘lead’
Scores for each category (above_fold, ctas, trust_signals, structure, seo)
Issues that must be fixed
Issues that should be fixed
Recommended improvements
True if score >= 75 and no critical issues
Additional details (word count, CTA count, etc.)
Conversion Goals
The scorer recognizes goal-specific CTA patterns:Trial Goal
- Primary patterns: “Start Your Free Trial”, “Try Free for 14 Days”, “Get Started Free”
- Secondary patterns: “Sign Up Free”, “Create Your Account”, “Launch Your [Product]“
Demo Goal
- Primary patterns: “Book a Demo”, “Get a Demo”, “See It in Action”
- Secondary patterns: “Schedule a Call”, “Talk to Sales”, “Contact Us”
Lead Goal
- Primary patterns: “Download the Guide”, “Get Instant Access”, “Claim Your Free [Asset]”
- Secondary patterns: “Subscribe”, “Join Our Newsletter”, “Get Updates”
Trust Signal Detection
The scorer automatically detects trust signals:- Testimonials: Quoted text with attribution (”— Name” or “Name”)
- Customer counts: “50,000+ customers”, “trusted by thousands”
- Specific results: “300% growth”, “10,000 downloads”, “$5,000 saved”
- Risk reversals: “no credit card”, “money-back guarantee”, “cancel anytime”
- Authority: “as seen in”, “award-winning”, “partner with”
Convenience Function
Example Usage
Grade Scale
- A (90-100): Excellent - ready to publish
- B (80-89): Good - minor improvements recommended
- C (70-79): Average - needs some work
- D (60-69): Needs Work - significant improvements required
- F (0-59): Poor - major overhaul needed
Publishing Threshold
A page is considered “publishing ready” when:- Overall score >= 75
- Zero critical issues
Source Code Reference
Location:data_sources/modules/landing_page_scorer.py:19
See also:
- CTA Analyzer - Detailed CTA analysis
- Trust Signal Analyzer - Trust signal detection