Code Analysis: LWS Optimize 3.2.0.5

Function Rating Maintainability Complexity Lines of code
Lws\Classes\LwsOptimize::__construct()
D
18
44 226
Lws\Classes\FileCache\LwsOptimizeFileCache::callback()
D
25
47 138
Lws\Classes\FileCache\LwsOptimizeFileCache::lwsop_check_need_cache()
D
35 41 73
Lws\Classes\LwsOptimize::lws_optimize_manage_config()
D
27
36 130
Lws\Classes\LwsOptimize::lwsop_recalculate_stats()
C
33 29 110
Lws\Classes\Front\LwsOptimizeJSManager::check_for_exclusion()
C
37 27 69
Lws\Classes\LwsOptimize::lwsop_update_current_media_convertion_database()
C
31 23 121
Lws\Classes\Front\LwsOptimizeCSSManager::check_for_exclusion()
C
40 27 55
Lws\Classes\Images\LwsOptimizeImageOptimization::convert_all_medias()
B
32 21 97
Lws\Classes\FileCache\LwsOptimizeFileCache::lwsop_set_cachedir()
B
43 24 39
Lws\Classes\FileCache\LwsOptimizeFileCache::lwsop_page_has_been_excluded()
B
42 22 48
Lws\Classes\LwsOptimize::lws_optimize_manage_exclusions_media()
B
37 20 71
Lws\Classes\Front\LwsOptimizeCSSManager::combine_css_update()
B
38 19 70
Lws\Classes\FileCache\LwsOptimizeCloudFlare::lws_optimize_check_cf_key()
B
35 17 86
Lws\Classes\Images\LwsOptimizeImageOptimization::lws_optimize_convert_image()
B
39 18 56
Lws\Classes\Images\LwsOptimizeImageOptimization::lws_optimize_custom_upload_filter()
B
38 17 62
Lws\Classes\LwsOptimize::lws_optimize_start_filebased_preload()
B
38 15 64
Lws\Classes\Images\LwsOptimizeImageOptimization::revertOptimization()
A
37 14 72
Lws\Classes\FileCache\LwsOptimizeCloudFlare::lws_optimize_clear_cloudflare_cache()
A
37 13 75
Lws\Classes\LwsOptimize::lwsop_get_content_directory()
A
45 15 37
Lws\Classes\LwsOptimize::lwsop_convert_all_media()
A
42 14 44
Lws\Classes\LwsOptimize::lwsop_dump_dynamic_cache()
A
45 14 39
Lws\Classes\LazyLoad\LwsOptimizeLazyLoading::lws_optimize_add_lazy_loading_attributes_to_iframe_videos()
A
40 12 65
Lws\Classes\Front\LwsOptimizeJSManager::combine_js_update()
A
44 13 42
WP_Object_Cache::__construct()
A
43 12 46
Lws\Classes\FileCache\LwsOptimizeCloudFlare::lws_optimize_cf_finish_config()
A
40 11 57
Lws\Classes\FileCache\LwsOptimizeFileCache::lwsop_detect_page_type()
A
50 13 26
Lws\Classes\LwsOptimize::lws_optimize_manage_exclusions()
A
45 12 40
lws_optimize_delete_directory()
A
47 12 35
Lws\Classes\LwsOptimize::lws_optimize_create_maintenance_db_options()
A
44 11 44
Lws\Classes\FileCache\LwsOptimizeFileCache::lwsop_launch_cache()
A
45 11 39
WP_Object_Cache::get()
A
47 11 35
Lws\Classes\LwsOptimize::lws_optimize_set_fb_timer()
A
47 11 34
Lws\Classes\Front\LwsOptimizeCSSManager::minify_css()
A
42 10 47
Lws\Classes\Admin\LwsOptimizeManageAdmin::manage_options()
A
49 11 26
Lws\Classes\FileCache\LwsOptimizeFileCache::lwsop_page_to_ignore()
A
46 10 37
Lws\Classes\Front\LwsOptimizeCSSManager::combine_current_css()
A
46 10 37
Lws\Classes\LwsOptimize::lwsop_get_setup_optimize()
A
48 10 33
Lws\Classes\Front\LwsOptimizeJSManager::minify_js()
A
46 9 36
Lws\Classes\FileCache\LwsOptimizeFileCache::_lwsop_is_mobile()
A
55 10 19
Lws\Classes\LwsOptimize::lwsop_preload_fb()
A
47 9 31
Lws\Classes\Admin\LwsOptimizeManageAdmin::lws_optimize_deactivate_plugins_incompatible()
A
51 9 27
WP_Object_Cache::set_multi()
A
51 9 26
Lws\Classes\LazyLoad\LwsOptimizeLazyLoading::lws_optimize_add_lazy_loading_attributes_to_images()
A
47 8 36
Lws\Classes\FileCache\LwsOptimizeFileCache::lws_optimize_manage_frontend_preload_js()
A
56 9 17
Lws\Classes\Admin\LwsOptimizeManageAdmin::lws_optimize_warning_incompatibiliy()
A
48 7 45
Lws\Classes\LwsOptimize::lws_optimize_set_maintenance_db_options()
A
50 8 28
WP_Object_Cache::stats()
A
50 8 27
Lws\Classes\LwsOptimize::lwsop_auto_setup_optimize()
A
38 4 87
Lws\Classes\LwsOptimize::lws_optimize_clear_currentcache()
A
49 8 27
Lws\Classes\LwsOptimize::lwsop_do_pagespeed_test()
A
44 7 40
Lws\Classes\Front\LwsOptimizeJSManager::_set_excluded()
A
53 8 20
WP_Object_Cache::get_multi()
A
48 7 33
Lws\Classes\FileCache\LwsOptimizeFileCache::lwsop_add_to_cache()
A
54 8 18
Lws\Classes\Front\LwsOptimizeJSManager::combine_current_js()
S
49 7 30
Lws\Classes\LwsOptimize::lws_optimize_init()
S
58 8 13
Lws\Classes\LwsOptimize::lws_optimize_clean_filebased_cache()
S
50 7 28
Lws\Classes\LwsOptimize::lws_optimize_upgrading()
S
51 7 25
Lws\Classes\LwsOptimize::lwsop_set_url_preload()
S
51 7 25
Lws\Classes\LwsOptimize::lwsop_set_url_preload_font()
S
51 7 25
Lws\Classes\LwsOptimize::lwsop_save_urls_fb()
S
51 7 25
Lws\Classes\LwsOptimize::lws_optimize_set_fb_status()
S
51 7 24
Lws\Classes\LwsOptimize::lwsop_save_specified_urls_fb()
S
51 7 24
WP_Object_Cache::add()
S
53 7 21
Lws\Classes\FileCache\LwsOptimizeCloudFlare::lws_optimize_deactivate_cf_inte()
S
47 6 34
Lws\Classes\Admin\LwsOptimizeManageAdmin::lws_optimize_deactivate_on_conflict()
S
60 7 13
Lws\Classes\Front\LwsOptimizeJSManager::checkInternal()
S
60 7 11
Lws\Classes\Admin\LwsOptimizeManageAdmin::lws_optimize_adminbar_scripts()
S
42 1 100
Lws\Classes\Front\LwsOptimizeCSSManager::preload_fonts()
S
52 6 23
Lws\Classes\LwsOptimize::lwsop_start_autoconvert_media()
S
52 6 23
Lws\Classes\Front\LwsOptimizeJSManager::lwsop_check_option()
S
54 6 20
Lws\Classes\LwsOptimize::fetch_url_sitemap()
S
55 6 20
Lws\Classes\Front\LwsOptimizeCSSManager::lwsop_check_option()
S
55 6 19
Lws\Classes\LwsOptimize::lwsop_check_option()
S
55 6 18
Lws\Classes\FileCache\LwsOptimizeCloudFlare::lws_optimize_cf_tools_deactivation()
S
54 6 18
Lws\Classes\FileCache\LwsOptimizeFileCache::lwsop_detect_page_content_type()
S
56 6 18
Lws\Classes\LwsOptimize::lwsop_check_preload_update()
S
55 6 17
WP_Object_Cache::set()
S
56 6 17
Lws\Classes\Front\LwsOptimizeJSManager::merge_js()
S
48 5 29
Lws\Classes\LwsOptimize::lws_optimize_revert_convertion()
S
49 5 28
Lws\Classes\LwsOptimize::lwsop_check_convert_images_update()
S
50 5 25
Lws\Classes\Front\LwsOptimizeCSSManager::preload_css()
S
52 5 23
Lws\Classes\LwsOptimize::lws_optimize_delete_directory()
S
53 5 21
Lws\Classes\Images\LwsOptimizeImageOptimization::__construct()
S
55 5 18
Lws\Classes\LwsOptimize::lwsop_change_preload_amount()
S
55 5 18
Lws\Classes\LwsOptimize::lws_optimize_convert_media_cron()
S
49 4 30
Lws\Classes\Images\LwsOptimizeImageOptimization::regenerate_thumbnails_for_all_images()
S
58 5 14
Lws\Classes\LwsOptimize::lws_optimize_fetch_exclusions()
S
58 5 13
Lws\Classes\FileCache\LwsOptimizeFileCache::lwsop_clear_current_page_cache()
S
44 2 48
WP_Object_Cache::flush()
S
63 5 10
Lws\Classes\FileCache\LwsOptimizeCloudFlare::lws_optimize_cf_cache_duration()
S
58 4 14
Lws\Classes\Admin\LwsOptimizeManageAdmin::lws_optimize_manage_state()
S
59 4 13
WP_Object_Cache::replace()
S
60 4 13
Lws\Classes\FileCache\LwsOptimizeFileCache::lws_optimize_manage_frontend_eliminate_requests()
S
62 4 12
run_lws_cache()
S
62 4 11
Lws\Classes\FileCache\LwsOptimizeAutoPurge::lwsop_remove_cache_post_change_specific()
S
55 3 18
Lws\Classes\FileCache\LwsOptimizeFileCache::lws_optimize_manage_frontend_deactivate_emoji()
S
55 3 18
Lws\Classes\FileCache\LwsOptimizeAutoPurge::lwsop_remove_cache_post_change()
S
56 3 17
Lws\Classes\LwsOptimize::lws_optimize_manage_maintenance_get()
S
57 3 16
Lws\Classes\FileCache\LwsOptimizeFileCache::lws_optimize_manage_frontend_webfont_optimize()
S
65 4 9
Lws\Classes\LwsOptimize::removeDir()
S
59 3 15
WP_Object_Cache::delete()
S
58 3 15
Lws\Classes\LwsOptimize::lws_optimize_activate_cleaner()
S
58 3 14
Lws\Classes\FileCache\LwsOptimizeAutoPurge::purge_specified_url()
S
59 3 13
WP_Object_Cache::key()
S
62 3 11
Lws\Classes\Admin\LwsOptimizeManageAdmin::lws_optimize_admin_bar()
S
53 2 26
Lws\Classes\FileCache\LwsOptimizeAutoPurge::lwsop_remove_fb_cache_on_cart_update()
S
56 2 18
Lws\Classes\LwsOptimize::lwsop_exclude_urls_fb()
S
65 3 8
Lws\Classes\LwsOptimize::lwsop_plugin_active_for_network()
S
64 3 10
Lws\Classes\LwsOptimize::lwsop_revertOptimization()
S
63 3 10
Lws\Classes\Admin\LwsOptimizeManageAdmin::lws_optimize_add_styles_frontend()
S
72 3 5
Lws\Classes\LwsOptimize::lwsop_get_url_preload_font()
S
64 3 8
Lws\Classes\LwsOptimize::lwsop_specified_urls_fb()
S
65 3 8
Lws\Classes\LwsOptimize::lwsop_get_url_preload()
S
64 3 8
Lws\Classes\LazyLoad\LwsOptimizeLazyLoading::lws_optimize_start_output_buffer_for_ll_iframe_video()
S
72 3 5
Lws\Classes\LazyLoad\LwsOptimizeLazyLoading::lws_optimize_start_output_buffer_for_ll()
S
72 3 5
Lws\Classes\Images\LwsOptimizeImageOptimization::lws_optimize_refresh_attachments()
S
59 2 14
Lws\Classes\LwsOptimize::lwsop_stop_autoconvertion()
S
60 2 12
Lws\Classes\FileCache\LwsOptimizeAutoPurge::start_autopurge()
S
55 1 20
lwsOpSizeConvert()
S
65 2 7
Lws\Classes\Admin\LwsOptimizeManageAdmin::lws_optimize_add_styles()
S
62 2 10
str_contains()
S
77 2 3
Lws\Classes\LwsOptimize::lws_optimize_timestamp_crons()
S
65 2 9
WP_Object_Cache::add_global_groups()
S
69 2 7
str_starts_with()
S
78 2 3
Lws\Classes\Front\LwsOptimizeJSManager::__construct()
S
66 2 8
wp_cache_set()
S
66 2 8
Lws\Classes\Front\LwsOptimizeCSSManager::__construct()
S
63 2 10
Lws\Classes\LwsOptimize::lwsop_plugin_active()
S
77 2 3
str_ends_with()
S
77 2 3
Lws\Classes\LwsOptimize::lws_optimize_get_database_cleaning_time()
S
62 2 10
Lws\Classes\LwsOptimize::lws_optimize_deletion()
S
68 2 7
WP_Object_Cache::add_non_persistent_groups()
S
69 2 7
WP_Object_Cache::get_mc()
S
71 2 6
Lws\Classes\FileCache\LwsOptimizeFileCache::lws_optimize_manage_frontend_preload_css()
S
69 2 7
Lws\Classes\LwsOptimize::lwsOpSizeConvert()
S
65 2 7
Lws\Classes\FileCache\LwsOptimizeAutoPurge::lws_optimize_clear_cache_on_comment()
S
61 1 12
WP_Object_Cache::colorize_debug_line()
S
61 1 11
Lws\Classes\LwsOptimize::lws_optimize_stop_convertion()
S
70 1 5
Lws\Classes\LwsOptimize::lws_optimize_activation()
S
79 1 3
wp_cache_replace()
S
75 1 4
Lws\Classes\LwsOptimize::lws_optimize_stop_deconvertion()
S
70 1 5
Lws\Classes\Admin\LwsOptimizeManageAdmin::lws_optimize_addmenu()
S
65 1 10
Lws\Classes\LwsOptimize::lws_optimize_clear_stylecache()
S
67 1 7
WP_Object_Cache::decr()
S
69 1 6
Lws\Classes\LazyLoad\LwsOptimizeLazyLoading::lws_optimize_manage_media_image_lazyload_js()
S
77 1 3
wp_cache_init()
S
77 1 4
Lws\Classes\LwsOptimize::lws_optimize_clear_htmlcache()
S
67 1 7
wp_cache_delete()
S
76 1 4
WP_Object_Cache::incr()
S
69 1 6
Lws\Classes\LazyLoad\LwsOptimizeLazyLoading::startActionsImage()
S
67 1 7
wp_cache_get()
S
75 1 4
Lws\Classes\LazyLoad\LwsOptimizeLazyLoading::startActionsIframe()
S
67 1 7
Lws\Classes\LwsOptimize::lwsop_reload_stats()
S
65 1 8
wp_cache_add_global_groups()
S
77 1 4
wp_cache_add()
S
75 1 4
Lws\Classes\Admin\LwsOptimizeManageAdmin::lws_optimize_add_settings_link()
S
76 1 3
Lws\Classes\LwsOptimize::lws_optimize_clear_cache()
S
69 1 6
wp_cache_close()
S
77 1 4
Lws\Classes\FileCache\LwsOptimizeCloudFlare::activate_cloudflare_integration()
S
67 1 7
wp_cache_flush()
S
77 1 4
wp_cache_decr()
S
75 1 4
Lws\Classes\Admin\LwsOptimizeManageAdmin::lws_optimize_options_page()
S
80 1 3
wp_cache_incr()
S
75 1 4
WP_Object_Cache::close()
S
91 1 2
Lws\Classes\Front\LwsOptimizeJSManager::endify_scripts()
S
67 1 7
Lws\Classes\FileCache\LwsOptimizeFileCache::__construct()
S
70 1 6
wp_cache_set_multi()
S
74 1 4
wp_cache_get_multi()
S
76 1 4
wp_cache_add_non_persistent_groups()
S
77 1 4
Lws\Classes\LazyLoad\LwsOptimizeLazyLoading::lws_optimize_manage_media_iframe_video_lazyload_js()
S
77 1 3