Branch Coverage

File:blib/lib/SEO/Inspector.pm
Coverage:31.1%

line%coveragebranch
227100TFif ($$self{"plugin_dirs"})
2500TFunless $url
2530TFif ($res->is_error)
29150TFif (exists $dispatch{$check_name}) { }
2980TFif (exists $$self{"plugins"}{$check_name})
36850TFunless $url
38650TFif ($html =~ m[<title>(.*?)</title>]is)
39550TFif ($len == 0) { }
50TFelsif ($len < 10) { }
0TFelsif ($len > 65) { }
40750TFif ($title =~ /^(home|untitled|index)$/i)
421100TFif ($html =~ /<meta\s+name=["']description["']\s+content=["'](.*?)["']/is)
43150TFif ($html =~ /<link\s+rel=["']canonical["']\s+href=["'](.*?)["']/is)
44450TFif ($html =~ /<meta\s+name=["']robots["']\s+content=["'](.*?)["']/is)
45750TFif ($html =~ /<meta\s+name=["']viewport["']\s+content=["'](.*?)["']/is)
470100TFif ($html =~ m[<h1\b[^>]*>(.*?)</h1>]is)
48150TF$words > 0 ? :
4890TFunless $attr =~ /alt=/i
49150TFif (scalar @missing)
51250TFif (scalar @jsonld)
571100TFunless (%counts)
58050TFif (not $counts{'h1'}) { }
50TFelsif ($counts{'h1'} > 1) { }
59350TFif ($last_level and $level > $last_level + 1)
60350TFif ($len < 2) { }
50TFelsif ($len > 120) { }
61550TF@issues ? :
62850TFif ($$self{"url"} and $$self{"url"} =~ m[^https?://]i)
6460TF$attrs =~ /\bhref\s*=\s*'(.*?)'/i ? :
6470TF$attrs =~ /\bhref\s*=\s*([^\s>]+)/i ? :
6500TFif (defined $href and $href =~ m[^\s*https?://]i) { }
6530TFif (defined $base_host and defined $host) { }
6540TFif (lc $host eq lc $base_host) { }
6740TFif ($text =~ /$bad_rx/)
68050TF$total ? :
50TF$external || $badtext ? :
68250TFif ($total)
6830TFif ($badtext == 0)
6910TFif ($badtext == 1)
72950TF@missing ? :
73250TFif ($found == 0) { }
0TFelsif (@missing) { }
76450TF@missing ? :
76750TFif ($found == 0) { }
0TFelsif (@missing) { }
79550TFif ($size_bytes > 1048576) { }
50TFelsif ($size_bytes > 102400) { }
50TFelsif ($size_bytes < 1024) { }
83050TFif length $text < 100
8380TFif $sentences == 0
8450TFif $word_count < 50
8560TFif length $word == 0
8600TF$vowels > 0 ? :
8610TFif $word =~ /e$/
8630TFif $syllables < $word_count
8750TFif ($flesch_score >= 90) { }
0TFelsif ($flesch_score >= 80) { }
0TFelsif ($flesch_score >= 70) { }
0TFelsif ($flesch_score >= 60) { }
0TFelsif ($flesch_score >= 50) { }
0TFelsif ($flesch_score >= 30) { }