autoptimizeMain D

Total Complexity 156
Dependencies 14
Dependents 4
Total lines 793
Lines of code 537
Logical lines of code 269
Comment lines 149
Methods 29
Properties 3

Methods 29

Method Rating Maintainability Complexity Lines of code
should_buffer()
C
38 32 54
setup()
B
43 16 54
check_cache_and_run()
A
48 14 32
on_uninstall()
A
36 9 90
start_buffering()
A
51 10 27
end_buffering()
A
41 7 58
is_valid_buffer()
A
56 8 16
notice_plug_imgopt()
S
58 7 13
notice_nopagecache()
S
57 6 14
notice_potential_conflict()
S
58 6 14
is_amp_markup()
S
56 4 21
add_hooks()
S
54 4 20
on_deactivation()
S
59 4 15
hook_page_cache_purge()
S
55 3 22
autoptimize_nobuffer_optimize()
S
62 3 11
remove_cronjobs()
S
68 3 7
maybe_run_criticalcss()
S
68 3 7
maybe_run_ao_compat()
S
66 3 9
maybe_run_admin_only_trinkets()
S
73 2 6
maybe_run_ao_extra()
S
65 2 9
maybe_run_notfound_fallback()
S
73 2 5
version_upgrades_check()
S
81 1 3
criticalcss()
S
82 1 3
run()
S
74 1 5
notice_cache_unavailable()
S
72 1 5
notice_installed()
S
72 1 5
notice_updated()
S
73 1 5
load_textdomain()
S
81 1 3
__construct()
S
77 1 4