WP_Optimize_WebP A

Total Complexity 59
Dependencies 4
Dependents 2
Total lines 436
Lines of code 260
Logical lines of code 109
Comment lines 137
Methods 32
Properties 2

Methods 32

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