WP_Optimize_WebP A

Total Complexity 67
Dependencies 6
Dependents 2
Total lines 497
Lines of code 292
Logical lines of code 130
Comment lines 159
Methods 35
Properties 3

Methods 35

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
add_webp_mime_type()
S
61 3 14
reset_webp_serving_method()
S
61 3 12
is_shell_functions_available()
S
68 3 7
init_webp_cron_scheduler()
S
67 3 8
is_webp_redirection_possible()
S
66 3 8
setup_htaccess_file()
S
64 3 9
remove_webp_test_image_file()
S
68 2 7
maybe_empty_htaccess_file()
S
74 2 5
run_self_test()
S
65 2 10
run_webp_serving_self_test()
S
64 2 10
get_instance()
S
69 2 7
get_shell_functions()
S
61 1 15
save_htaccess_rules()
S
65 2 9
is_browser_accepting_webp()
S
77 2 3
set_converter_status()
S
68 2 7
maybe_use_alter_html()
S
73 2 6
maybe_decide_webp_serve_method()
S
75 2 5
is_alter_html_possible()
S
72 2 6
reset_webp_options()
S
67 1 8
get_webp_conversion_test_result()
S
79 1 3
get_old_and_new_redirection_possibility()
S
69 1 7
use_alter_html()
S
82 1 3
should_run_webp_conversion_test()
S
76 1 4
prune_webp_logs()
S
77 1 4
remove_webp_cron_schedules()
S
77 1 4
is_webp_conversion_enabled()
S
82 1 3
disable_webp_conversion()
S
73 1 5
log()
S
81 1 3
plugin_deactivate()
S
78 1 4
get_logfile_path()
S
80 1 3
is_webp_conversion_successful()
S
72 1 5