WP_Optimize_WebP A

Total Complexity 74
Dependencies 6
Dependents 1
Total lines 509
Lines of code 289
Logical lines of code 135
Comment lines 172
Methods 37
Properties 3

Methods 37

Method Rating Maintainability Complexity Lines of code
empty_htaccess_file()
S
59 4 14
maybe_purge_cache()
S
62 4 12
__construct()
S
61 4 11
prepare_webp_htaccess_rules()
S
46 1 51
shell_functions_available()
S
75 4 3
add_webp_mime_type()
S
61 3 14
reset_webp_serving_method()
S
62 3 12
setup_htaccess_file()
S
64 3 9
all_functions_exist()
S
70 3 6
init_webp_cron_scheduler()
S
67 3 8
any_function_exists()
S
71 3 6
is_webp_redirection_possible()
S
66 3 8
remove_webp_test_image_file()
S
68 2 7
maybe_decide_webp_serve_method()
S
75 2 5
maybe_empty_htaccess_file()
S
74 2 5
set_converter_status()
S
68 2 7
is_alter_html_possible()
S
72 2 6
run_self_test()
S
65 2 10
run_webp_serving_self_test()
S
64 2 10
get_instance()
S
69 2 7
maybe_use_alter_html()
S
73 2 6
is_browser_accepting_webp()
S
77 2 3
save_htaccess_rules()
S
65 2 9
is_shell_functions_available()
S
75 1 4
disable_webp_conversion()
S
73 1 5
log()
S
81 1 3
get_logfile_path()
S
80 1 3
plugin_deactivate()
S
78 1 4
use_alter_html()
S
82 1 3
get_old_and_new_redirection_possibility()
S
69 1 7
is_webp_conversion_enabled()
S
82 1 3
remove_webp_cron_schedules()
S
77 1 4
prune_webp_logs()
S
77 1 4
reset_webp_options()
S
67 1 8
get_webp_conversion_test_result()
S
79 1 3
is_webp_conversion_successful()
S
72 1 5
should_run_webp_conversion_test()
S
76 1 4