Branch Coverage

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

line%coveragebranch
199100TFif ($$self{"plugin_dirs"})
2230TFunless $url
2260TFif ($res->is_error)
26450TFif (exists $dispatch{$check_name}) { }
2710TFif (exists $$self{"plugins"}{$check_name})
34150TFunless $url
35950TFif ($html =~ m[<title>(.*?)</title>]is)
36850TFif ($len == 0) { }
50TFelsif ($len < 10) { }
0TFelsif ($len > 65) { }
38050TFif ($title =~ /^(home|untitled|index)$/i)
394100TFif ($html =~ /<meta\s+name=["']description["']\s+content=["'](.*?)["']/is)
40450TFif ($html =~ /<link\s+rel=["']canonical["']\s+href=["'](.*?)["']/is)
41750TFif ($html =~ /<meta\s+name=["']robots["']\s+content=["'](.*?)["']/is)
43050TFif ($html =~ /<meta\s+name=["']viewport["']\s+content=["'](.*?)["']/is)
443100TFif ($html =~ m[<h1\b[^>]*>(.*?)</h1>]is)
45450TF$words > 0 ? :
4620TFunless $attr =~ /alt=/i
46450TFif (scalar @missing)
48550TFif (scalar @jsonld)
544100TFunless (%counts)
55350TFif (not $counts{'h1'}) { }
50TFelsif ($counts{'h1'} > 1) { }
56650TFif ($last_level and $level > $last_level + 1)
57650TFif ($len < 2) { }
50TFelsif ($len > 120) { }
58850TF@issues ? :
60150TFif ($$self{"url"} and $$self{"url"} =~ m[^https?://]i)
6180TF$attrs =~ /\bhref\s*=\s*'(.*?)'/i ? :
6190TF$attrs =~ /\bhref\s*=\s*([^\s>]+)/i ? :
6220TFif (defined $href and $href =~ m[^\s*https?://]i) { }
6250TFif (defined $base_host and defined $host) { }
6260TFif (lc $host eq lc $base_host) { }
6460TFif ($text =~ /$bad_rx/)
65150TF$total ? :
50TF$external || $badtext ? :
65450TFif ($total) { }
68350TF@missing ? :
68650TFif ($found == 0) { }
0TFelsif (@missing) { }
71850TF@missing ? :
72150TFif ($found == 0) { }
0TFelsif (@missing) { }
74950TFif ($size_bytes > 1048576) { }
50TFelsif ($size_bytes > 102400) { }
50TFelsif ($size_bytes < 1024) { }
78450TFif length $text < 100
7920TFif $sentences == 0
7990TFif $word_count < 50
8100TFif length $word == 0
8140TF$vowels > 0 ? :
8150TFif $word =~ /e$/
8170TFif $syllables < $word_count
8290TFif ($flesch_score >= 90) { }
0TFelsif ($flesch_score >= 80) { }
0TFelsif ($flesch_score >= 70) { }
0TFelsif ($flesch_score >= 60) { }
0TFelsif ($flesch_score >= 50) { }
0TFelsif ($flesch_score >= 30) { }