SEO Content Optimizer
Paste your content below to analyze word count, reading time, and readability for Google ranking factors.
function wpAnalyzeContent() {
var content = document.getElementById('wpSeoText').value;
var wordCount = content.trim() ? content.trim().split(/\s+/).length : 0;
var charCount = content.length;
var readTime = Math.ceil(wordCount / 225);
var adviceBox = document.getElementById('wpSeoAdvice');
var adviceText = document.getElementById('wpAdviceText');
var seoScoreDiv = document.getElementById('wpSeoScore');
document.getElementById('wpWordCount').innerText = wordCount;
document.getElementById('wpCharCount').innerText = charCount;
document.getElementById('wpReadTime').innerText = readTime + 'm';
adviceBox.style.display = 'block';
var score = 0;
var message = ";
if (wordCount === 0) {
message = 'Add content to begin your SEO analysis.';
seoScoreDiv.innerText = '-';
} else if (wordCount < 300) {
score = 45;
message = 'Thin content detected. Aim for at least 600 words to improve ranking potential for competitive keywords.';
seoScoreDiv.style.color = '#ef4444';
} else if (wordCount 0) {
seoScoreDiv.innerText = score + '%';
adviceText.innerText = message;
}
}
function wpResetContent() {
document.getElementById('wpSeoText').value = ";
document.getElementById('wpWordCount').innerText = '0';
document.getElementById('wpCharCount').innerText = '0';
document.getElementById('wpReadTime').innerText = '0m';
document.getElementById('wpSeoScore').innerText = '-';
document.getElementById('wpSeoScore').style.color = '#f59e0b';
document.getElementById('wpSeoAdvice').style.display = 'none';
}