Code Analysis: LWS Optimize 3.1.6.4

Function Rating Maintainability Complexity Lines of code
FileCache::callback()
D
28
43 111
FileCache::lwsop_check_need_cache()
D
35 41 71
LwsOptimize::lws_optimize_manage_config()
C
34 28 83
JSManager::check_for_exclusion()
C
36 28 75
CSSManager::check_for_exclusion()
C
38 27 65
FileCache::lwsop_set_cachedir()
C
38 26 61
LwsOptimize::__construct()
C
29 20 124
FileCache::lwsop_page_has_been_excluded()
B
41 22 54
lws_optimize_manage_media_iframe_video_lazyload_content()
B
38 21 68
LwsOptimize::lws_optimize_manage_exclusions_media()
B
37 20 69
CSSManager::combine_css_update()
B
38 19 71
WpFastestCacheLazyLoad::images_to_lazyload()
B
40 17 60
lws_optimize_convert_image()
B
40 17 51
lws_optimize_manage_media_image_lazyload_content()
A
43 15 47
lws_optimize_manage_media_image_lazyload()
A
44 15 42
lwsop_clear_cache_cloudflare()
A
37 13 72
LwsOptimize::lwsop_get_content_directory()
A
45 15 37
FileCache::lwsop_launch_cache()
A
42 14 47
JSManager::combine_js_update()
A
43 14 46
lwsop_dump_dynamic_cache()
A
45 14 39
WP_Object_Cache::__construct()
A
43 12 46
LwsOptimize::lws_optimize_manage_exclusions()
A
44 12 42
FileCache::lwsop_detect_page_type()
A
50 13 26
lws_optimize_delete_directory()
A
46 12 37
WpFastestCacheLazyLoad::video_to_lazyload()
A
46 12 36
WpFastestCacheLazyLoad::is_exclude()
A
49 12 32
LwsOptimize::lws_optimize_create_maintenance_db_options()
A
45 11 39
WP_Object_Cache::get()
A
47 11 35
LwsOptimize::lws_optimize_set_fb_timer()
A
47 11 34
FileCache::lwsop_page_to_ignore()
A
45 10 41
CSSManager::minify_css()
A
41 9 51
LwsOptimize::lwsop_get_setup_optimize()
A
48 10 33
JSManager::minify_js()
A
43 9 45
FileCache::_lwsop_is_mobile()
A
55 10 19
CSSManager::combine_current_css()
A
44 8 46
LwsOptimize::lws_optimize_clean_filebased_cache()
A
44 8 45
JSManager::combine_current_js()
A
44 8 45
lws_op_activate_plugin()
A
51 9 29
LwsOptimize::lws_optimize_start_filebased_preload()
A
48 9 29
lws_optimize_remove_other_cache()
A
52 9 27
WP_Object_Cache::set_multi()
A
51 9 26
WpFastestCacheLazyLoad::set_placeholder()
A
52 9 25
WpFastestCacheLazyLoad::iframe_to_lazyload()
A
51 9 24
lws_op_other_cache_plugin()
A
47 7 47
FileCache::lws_optimize_manage_frontend_preload_js()
A
56 9 17
LwsOptimize::lwsop_convert_all_media()
A
48 8 29
LwsOptimize::lwsop_preload_fb()
A
49 8 29
LwsOptimize::lwsop_do_pagespeed_test()
A
43 7 43
LwsOptimize::lws_optimize_set_maintenance_db_options()
A
50 8 28
WP_Object_Cache::stats()
A
50 8 26
JSManager::_set_excluded()
A
51 8 25
LwsOptimize::lwsop_auto_setup_optimize()
A
38 4 83
LwsOptimize::lws_optimize_clear_currentcache()
A
52 8 22
WP_Object_Cache::get_multi()
A
48 7 33
FileCache::lwsop_add_to_cache()
A
55 8 18
LwsOptimize::lws_optimize_init()
A
56 8 16
lws_optimize_custom_upload_filter()
S
49 7 29
LwsOptimize::lws_optimize_wp_footer_scripts()
S
39 1 119
LwsOptimize::lwsop_save_urls_fb()
S
51 7 25
LwsOptimize::lwsop_set_url_preload()
S
51 7 25
LwsOptimize::lwsop_set_url_preload_font()
S
51 7 25
LwsOptimize::lws_optimize_set_fb_status()
S
51 7 24
LwsOptimize::lwsop_save_specified_urls_fb()
S
52 7 24
lws_optimize_on_upgrade_cleanup()
S
52 7 23
WpFastestCacheLazyLoad::mark_content_images()
S
54 7 22
WP_Object_Cache::add()
S
53 7 21
WpFastestCacheLazyLoad::mark_attachment_page_images()
S
55 7 21
JSManager::checkInternal()
S
54 7 20
WpFastestCacheLazyLoad::is_full()
S
59 7 14
CSSManager::preload_fonts()
S
52 6 23
JSManager::lwsop_check_option()
S
53 6 22
WpFastestCacheLazyLoad::background_to_lazyload()
S
53 6 22
CSSManager::lwsop_check_option()
S
53 6 22
LwsOptimize::lwsop_check_option()
S
54 6 21
FileCache::lwsop_detect_page_content_type()
S
56 6 18
WP_Object_Cache::set()
S
56 6 17
lws_op_check_compatibility()
S
64 7 9
JSManager::merge_js()
S
49 5 29
LwsOptimize::lws_optimize_admin_footer_scripts()
S
44 1 89
CSSManager::preload_css()
S
52 5 23
lws_optimize_delete_directory()
S
56 5 18
LwsOptimize::lwsop_change_preload_amount()
S
55 5 18
WpFastestCacheLazyLoad::is_thumbnail()
S
60 5 15
WpFastestCacheLazyLoad::is_mobile()
S
59 5 14
LwsOptimize::lws_optimize_fetch_exclusions()
S
58 5 13
FileCache::lwsop_clear_current_page_cache()
S
44 2 50
WP_Object_Cache::flush()
S
63 5 10
WP_Object_Cache::replace()
S
60 4 13
lws_optimize_manage_state()
S
59 4 13
LwsOptimize::lws_optimize_convert_media_cron()
S
50 3 27
FileCache::lws_optimize_manage_frontend_eliminate_requests()
S
62 4 12
run_lws_cache()
S
62 4 11
LwsOptimize::lws_optimize_admin_bar()
S
49 2 40
LwsOptimize::lwsop_remove_cache_post_change_specific()
S
54 3 20
LwsOptimize::lwsop_remove_cache_post_change()
S
55 3 19
FileCache::lws_optimize_manage_frontend_deactivate_emoji()
S
55 3 18
lwsop_review_ad_plugin()
S
49 1 47
LwsOptimize::lws_optimize_manage_maintenance_get()
S
57 3 16
WP_Object_Cache::delete()
S
58 3 15
FileCache::lws_optimize_manage_frontend_webfont_optimize()
S
65 4 9
lws_optimize_activate_cleaner()
S
59 3 14
removeDir()
S
61 3 13
lws_op_scripts()
S
61 3 11
WP_Object_Cache::key()
S
62 3 11
LwsOptimize::lwsop_remove_fb_cache_on_cart_update()
S
56 2 18
LwsOptimize::lwsop_specified_urls_fb()
S
65 3 8
WpFastestCacheLazyLoad::__construct()
S
66 3 8
LwsOptimize::lwsop_get_url_preload()
S
62 3 9
LwsOptimize::lwsop_get_url_preload_font()
S
62 3 9
LwsOptimize::lwsop_exclude_urls_fb()
S
63 3 9
lws_op_scripts_out()
S
72 3 5
LwsOptimize::lwsop_plugin_active_for_network()
S
64 3 10
LwsOptimize::lws_optimize_clear_cache_on_comment()
S
59 2 14
lws_optimize_refresh_attachments()
S
60 2 14
WpFastestCacheLazyLoad::get_js_source_new()
S
52 1 22
FileCache::lws_optimize_manage_frontend_preload_css()
S
70 2 6
WP_Object_Cache::get_mc()
S
71 2 6
LwsOptimize::lws_size_convert()
S
65 2 7
WpFastestCacheLazyLoad::is_third_party()
S
70 2 6
lws_op_on_delete()
S
68 2 7
CSSManager::__construct()
S
65 2 9
WP_Object_Cache::add_global_groups()
S
69 2 7
wp_cache_set()
S
66 2 8
lws_size_convert()
S
65 2 7
LwsOptimize::purge_specified_url()
S
63 2 10
str_contains()
S
77 2 3
WP_Object_Cache::add_non_persistent_groups()
S
69 2 7
str_starts_with()
S
78 2 3
LwsOptimize::lwsop_plugin_active()
S
77 2 3
JSManager::__construct()
S
66 2 8
str_ends_with()
S
77 2 3
WpFastestCacheLazyLoad::get_js_source()
S
60 1 12
lws_op_page()
S
61 1 12
WP_Object_Cache::colorize_debug_line()
S
61 1 11
LwsOptimize::lws_optimize_clear_htmlcache()
S
67 1 7
FileCache::__construct()
S
68 1 7
human_filesize()
S
70 1 5
wp_cache_add_global_groups()
S
77 1 4
wp_cache_incr()
S
75 1 4
JSManager::endify_scripts()
S
65 1 8
wp_cache_decr()
S
75 1 4
wp_cache_delete()
S
76 1 4
LwsOptimize::lws_optimize_clear_cache()
S
69 1 6
wp_cache_close()
S
77 1 4
lws_optimize_timestamp_crons()
S
69 1 7
wp_cache_flush()
S
77 1 4
lws_op_image_opti_page()
S
81 1 3
WP_Object_Cache::close()
S
91 1 2
wp_cache_init()
S
77 1 4
LwsOptimize::lwsop_recalculate_stats()
S
64 1 10
wp_cache_add()
S
75 1 4
LwsOptimize::lws_optimize_clear_stylecache()
S
67 1 7
lws_op_on_activation()
S
80 1 3
wp_cache_get_multi()
S
76 1 4
filter_image_editor_output_format()
S
77 1 4
WP_Object_Cache::incr()
S
69 1 6
wp_cache_add_non_persistent_groups()
S
77 1 4
LwsOptimize::lwsop_reload_stats()
S
74 1 4
wp_cache_set_multi()
S
74 1 4
lws_op_menu_admin()
S
77 1 3
wp_cache_get()
S
75 1 4
WP_Object_Cache::decr()
S
69 1 6
wp_cache_replace()
S
75 1 4