autoptimizeMain D

Total Complexity 150
Dependencies 12
Dependents 3
Total lines 747
Lines of code 514
Logical lines of code 255
Comment lines 136
Methods 27
Properties 2

Methods 27

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
37 7 82
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 15
notice_potential_conflict()
S
58 6 14
is_amp_markup()
S
56 4 21
add_hooks()
S
55 4 19
on_deactivation()
S
59 4 15
hook_page_cache_purge()
S
55 3 22
autoptimize_nobuffer_optimize()
S
62 3 11
maybe_run_criticalcss()
S
72 3 5
remove_cronjobs()
S
68 3 7
maybe_run_notfound_fallback()
S
73 2 5
maybe_run_partners_tab()
S
75 2 5
maybe_run_ao_extra()
S
65 2 9
notice_updated()
S
73 1 5
load_textdomain()
S
81 1 3
version_upgrades_check()
S
81 1 3
notice_installed()
S
73 1 5
notice_cache_unavailable()
S
72 1 5
run()
S
74 1 5
__construct()
S
77 1 4