Closing Cost Calculator Maryland

Quick SEO On-Page Checker

0 characters (Optimal: 50-60)
0 characters (Optimal: 120-160)

Analysis Report

function updateSeoCounts() { var titleVal = document.getElementById('meta-title-input').value; var descVal = document.getElementById('meta-desc-input').value; var titleEl = document.getElementById('title-feedback'); var descEl = document.getElementById('desc-feedback'); titleEl.innerHTML = titleVal.length + ' characters (Optimal: 50-60)'; titleEl.style.color = (titleVal.length >= 50 && titleVal.length = 120 && descVal.length <= 160) ? '#38a169' : '#e53e3e'; } function runSeoAnalysis() { var title = document.getElementById('meta-title-input').value; var desc = document.getElementById('meta-desc-input').value; var body = document.getElementById('body-content-input').value; var resultsPanel = document.getElementById('seo-results-panel'); var list = document.getElementById('results-list'); resultsPanel.style.display = 'block'; list.innerHTML = ''; // Title Logic if (title.length < 1) { list.innerHTML += '
  • ❌ Title is missing.
  • '; } else if (title.length >= 50 && title.length <= 60) { list.innerHTML += '
  • ✅ Title length is perfect for SERPs.
  • '; } else { list.innerHTML += '
  • ⚠️ Title length is non-optimal (Target 50-60).
  • '; } // Description Logic if (desc.length < 1) { list.innerHTML += '
  • ❌ Meta description is missing.
  • '; } else if (desc.length >= 120 && desc.length <= 160) { list.innerHTML += '
  • ✅ Meta description length is perfect.
  • '; } else { list.innerHTML += '
  • ⚠️ Description length is non-optimal (Target 120-160).
  • '; } // Content Logic var words = body.trim().split(/\s+/).filter(function(w) { return w.length > 0; }); if (words.length < 300) { list.innerHTML += '
  • ⚠️ Content length (' + words.length + ' words) is low. Aim for 600+ for SEO.
  • '; } else { list.innerHTML += '
  • ✅ Sufficient word count: ' + words.length + ' words.
  • '; } // Keyword density (simple check for top word) if (words.length > 10) { var counts = {}; for (var i = 0; i 3) { counts[word] = (counts[word] || 0) + 1; } } var topWord = "; var max = 0; for (var w in counts) { if (counts[w] > max) { max = counts[w]; topWord = w; } } var density = ((max / words.length) * 100).toFixed(1); list.innerHTML += '
  • 📈 Most frequent keyword: ' + topWord + ' (' + density + '% density).
  • '; } resultsPanel.scrollIntoView({ behavior: 'smooth' }); }

    Leave a Comment