WP_Optimize_WebP B

Total Complexity 76
Dependencies 6
Dependents 2
Total lines 519
Lines of code 293
Logical lines of code 138
Comment lines 177
Methods 38
Properties 3

Methods 38

Method Rating Maintainability Complexity Lines of code
maybe_purge_cache()
S
60 5 13
empty_htaccess_file()
S
59 4 14
__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
any_function_exists()
S
71 3 6
all_functions_exist()
S
70 3 6
is_webp_redirection_possible()
S
66 3 8
setup_htaccess_file()
S
64 3 9
init_webp_cron_scheduler()
S
67 3 8
run_self_test()
S
65 2 10
run_webp_serving_self_test()
S
64 2 10
get_instance()
S
69 2 7
remove_webp_test_image_file()
S
68 2 7
save_htaccess_rules()
S
65 2 9
is_alter_html_possible()
S
72 2 6
is_browser_accepting_webp()
S
77 2 3
maybe_use_alter_html()
S
73 2 6
maybe_decide_webp_serve_method()
S
75 2 5
set_converter_status()
S
68 2 7
maybe_empty_htaccess_file()
S
74 2 5
plugin_deactivate()
S
78 1 4
disable_webp_conversion()
S
73 1 5
is_webp_conversion_enabled()
S
82 1 3
is_shell_functions_available()
S
75 1 4
get_webp_conversion_test_result()
S
79 1 3
remove_webp_cron_schedules()
S
77 1 4
get_old_and_new_redirection_possibility()
S
69 1 7
reset_webp_options()
S
67 1 8
should_run_webp_conversion_test()
S
76 1 4
is_webp_conversion_successful()
S
72 1 5
use_alter_html()
S
82 1 3
prune_webp_logs()
S
77 1 4
log()
S
81 1 3
get_logfile_path()
S
80 1 3
is_webp_enabled()
S
82 1 3