Code Analysis: Super Page Cache 4.7.12

Function Rating Maintainability Complexity Lines of code
SWCFPC_Backend::admin_menu_page_index()
D
0
214 754
SWCFPC_Cache_Controller::can_i_bypass_cache()
D
20
98 117
SWCFPC_Cache_Controller::actions()
D
25
40 139
SWCFPC_Cache_Controller::start_preloader_for_all_urls()
D
29
40 105
swcfpc_fallback_cache_remove_url_parameters()
D
15
6 476
SWCFPC_Cache_Controller::purge_all()
C
36 30 71
SWCFPC_Cloudflare::page_cache_test()
C
35 27 78
SWCFPC_Varnish::purge_single_url_cache()
C
33 25 94
SW_CLOUDFLARE_PAGECACHE::update_plugin()
C
32 23 111
SWCFPC_Cloudflare::enable_page_cache()
C
36 24 81
SWCFPC_Cloudflare::get_zone_id_list()
C
36 24 73
SWCFPC_Cache_Controller::purge_urls()
B
40 24 52
SWCFPC_Fallback_Cache::fallback_cache_add_define_cache_wp_config()
B
38 21 65
SWCFPC_Cache_Controller::is_url_to_bypass()
B
46 23 30
SWCFPC_Html_Cache::add_current_url_to_cache()
B
39 21 56
swcfpc_is_this_page_cachable()
B
51 23 19
SWCFPC_Cache_Controller::get_post_related_links()
B
39 19 56
SWCFPC_Cloudflare::disable_page_cache()
B
41 19 52
SWCFPC_Backend::add_toolbar_items()
B
41 17 51
SWCFPC_Cache_Controller::write_htaccess()
B
38 15 73
swcfpc_fallback_cache_end()
A
45 16 36
SWCFPC_Fallback_Cache::fallback_cache_add_current_url_to_cache()
A
43 15 40
SWCFPC_Backend::load_custom_wp_admin_styles_and_script()
A
46 15 30
SWCFPC_Fallback_Cache::fallback_cache_advanced_cache_enable()
A
49 15 29
SWCFPC_Cloudflare::create_cache_rule()
A
43 14 43
SWCFPC_Cloudflare::delete_cache_rule()
A
44 14 41
SWCFPC_Cache_Controller::inject_cache_buster_js_code()
A
41 11 85
swcfpc_fallback_cache_is_url_to_exclude()
A
51 14 23
SW_CLOUDFLARE_PAGECACHE::include_libs()
A
44 13 37
SWCFPC_Cache_Controller::purge_cache_on_post_edit()
A
46 13 33
SWCFPC_Cloudflare::worker_get_list()
A
44 12 42
SWCFPC_Cloudflare::get_account_ids()
A
45 12 40
SWCFPC_Cloudflare::worker_route_get_list()
A
45 12 39
SWCFPC_Cloudflare::worker_upload()
A
45 12 39
SWCFPC_Cache_Controller::purge_cache_queue_write()
A
46 12 36
SWCFPC_Cache_Controller::purge_cache_queue_start_cronjob()
A
47 12 35
SWCFPC_Backend::get_survey_metadata()
A
48 12 31
SWCFPC_Cloudflare::add_bypass_cache_backend_page_rule()
A
45 11 37
SWCFPC_Cloudflare::add_cache_everything_page_rule()
A
45 11 37
SWCFPC_Cloudflare::worker_route_create()
A
45 11 36
SWCFPC_Cloudflare::get_current_browser_cache_ttl()
A
46 11 34
SWCFPC_Backend::actions()
A
49 11 28
SWCFPC_Cloudflare::delete_page_rule()
A
46 10 38
SWCFPC_Cloudflare::create_ruleset_id()
A
47 10 33
SWCFPC_Fallback_Cache::fallback_cache_retrive_current_page()
A
48 10 33
swcfpc_fallback_cache_get_current_page_cache_key()
A
47 10 32
SWCFPC_Cloudflare::get_ruleset_id_from_api()
A
48 10 31
SWCFPC_Fallback_Cache::__construct()
A
57 11 16
swcfpc_get_unparsed_url()
A
58 11 12
SW_CLOUDFLARE_PAGECACHE::get_unparsed_url()
A
58 11 12
SWCFPC_Cloudflare::purge_cache_urls_async()
A
44 9 41
SWCFPC_Cache_Controller::reset_all()
A
45 9 41
SWCFPC_Cloudflare::purge_cache_urls()
A
45 9 40
SWCFPC_Cache_Controller::redirect_301_real_url()
A
52 10 21
SWCFPC_Cloudflare::worker_route_delete()
A
46 9 36
SWCFPC_Fallback_Cache::fallback_cache_is_url_to_exclude()
A
54 10 20
SWCFPC_Fallback_Cache::fallback_cache_get_current_page_cache_key()
A
49 9 28
SW_CLOUDFLARE_PAGECACHE::get_default_config()
A
30 1 141
SWCFPC_Cloudflare::purge_cache()
A
46 8 35
SW_CLOUDFLARE_PAGECACHE::get_home_url()
A
53 9 20
swcfpc_fallback_cache_is_cookie_to_exclude_cf_worker()
A
54 9 20
SWCFPC_Cloudflare::worker_delete()
A
47 8 34
SWCFPC_Cloudflare::change_browser_cache_ttl()
A
47 8 33
SWCFPC_Cache_Controller::setup_response_headers_backend()
A
43 6 58
SWCFPC_Cache_Controller::start_cache_preloader_for_specific_urls()
A
50 8 25
SWCFPC_Cache_Controller::apply_cache()
A
47 7 40
SWCFPC_Cache_Controller::purge_cache_queue_job()
A
51 8 24
SWCFPC_Cache_Controller::ajax_preloader_start()
A
47 7 38
SWCFPC_Cache_Controller::wp_redirect_filter()
A
55 8 19
SWCFPC_Cache_Controller::purge_cache_when_post_is_published()
A
55 8 16
SWCFPC_Cache_Controller::prefetch_urls()
S
45 4 75
SWCFPC_Backend::autoprefetch_config_wp_enqueue_scripts()
S
47 6 44
SWCFPC_Cloudflare::get_current_account_id()
S
52 7 25
swcfpc_fallback_cache_save_headers()
S
52 7 23
SWCFPC_Fallback_Cache::fallback_cache_save_headers()
S
52 7 23
swcfpc_fallback_cache_is_cookie_to_exclude()
S
57 7 16
swcfpc_fallback_cache_is_expired_page()
S
56 7 16
SWCFPC_Cloudflare::try_log_error()
S
57 7 16
SWCFPC_Cache_Controller::purge_opcache()
S
56 7 16
SWCFPC_Cache_Controller::bypass_cache_on_init()
S
50 6 31
SWCFPC_Backend::ajax_import_config_file()
S
45 5 43
SWCFPC_Fallback_Cache::fallback_cache_remove_url_parameters()
S
52 6 25
SWCFPC_Cache_Controller::ajax_enable_page_cache()
S
53 6 21
SWCFPC_Cache_Controller::ajax_disable_page_cache()
S
53 6 21
SW_CLOUDFLARE_PAGECACHE::can_current_user_purge_cache()
S
58 6 15
SW_CLOUDFLARE_PAGECACHE::create_plugin_wp_content_directory()
S
58 6 15
SWCFPC_Fallback_Cache::fallback_cache_is_cookie_to_exclude_cf_worker()
S
58 6 15
SWCFPC_Cache_Controller::woocommerce_purge_scheduled_sales()
S
60 6 13
SWCFPC_Cache_Controller::purge_cache_when_comment_is_approved()
S
59 6 12
SWCFPC_Cache_Controller::setup_response_headers_filter()
S
51 5 27
SWCFPC_Cache_Controller::cronjob_purge_cache()
S
61 6 11
SWCFPC_Cache_Controller::cronjob_preloader()
S
60 6 11
SWCFPC_Cloudflare::get_api_auth_args()
S
53 5 23
SWCFPC_Cache_Controller::get_nginx_rules()
S
55 5 20
SWCFPC_Backend::modify_script_attributes()
S
56 5 18
SWCFPC_Fallback_Cache::fallback_cache_purge_urls()
S
57 5 17
swcfpc_is_api_request()
S
63 6 9
SW_CLOUDFLARE_PAGECACHE::is_api_request()
S
63 6 9
SWCFPC_Backend::instantpage_wp_enqueue_scripts()
S
70 6 5
SWCFPC_Cache_Controller::is_external_link()
S
64 6 9
delete_directory_recursive()
S
59 5 14
SW_CLOUDFLARE_PAGECACHE::delete_directory_recursive()
S
59 5 14
SWCFPC_Cache_Controller::purge_cache_when_new_comment_is_added()
S
59 5 13
SWCFPC_Fallback_Cache::fallback_cache_is_cookie_to_exclude()
S
60 5 13
SWCFPC_Html_Cache::get_cached_urls_by_timestamp()
S
59 5 13
SWCFPC_Html_Cache::delete_cached_urls_by_urls_list()
S
59 5 13
SWCFPC_Fallback_Cache::fallback_cache_delete_expired_pages()
S
61 5 12
SWCFPC_Cloudflare::find_cache_rule_by_description()
S
63 5 11
SWCFPC_Fallback_Cache::fallback_cache_advanced_cache_disable()
S
62 5 11
SWCFPC_Cache_Controller::ajax_preloader_unlock()
S
53 4 23
SWCFPC_Cloudflare::ajax_test_page_cache()
S
48 3 36
SWCFPC_Cache_Controller::woocommerce_purge_product_page_on_stock_change()
S
57 4 17
SWCFPC_Cache_Controller::wp_rocket_after_rocket_clean_post_hook()
S
57 4 16
SWCFPC_Fallback_Cache::actions()
S
68 5 6
SWCFPC_Cache_Controller::purge_cache_on_theme_edit()
S
64 5 8
SW_CLOUDFLARE_PAGECACHE::enable_wp_cli_support()
S
66 5 7
SWCFPC_Cache_Controller::purge_siteground_cache()
S
62 5 10
SWCFPC_Logs::download_logs()
S
58 4 15
SWCFPC_Cache_Controller::is_siteground_supercacher_enabled()
S
62 5 10
SWCFPC_Cache_Controller::spl_purge_single_post()
S
58 4 15
SWCFPC_Cache_Controller::yasr_hooks()
S
58 4 14
SW_CLOUDFLARE_PAGECACHE::generate_password()
S
59 4 14
SWCFPC_WP_CLI::test_cf_cache()
S
51 3 28
SWCFPC_Cache_Controller::purge_wpengine_cache()
S
61 4 13
SWCFPC_Html_Cache::get_cached_urls()
S
60 4 13
SWCFPC_Fallback_Cache::fallback_cache_delete_config()
S
62 4 12
SWCFPC_Html_Cache::delete_cached_urls_by_timestamp()
S
62 4 11
SWCFPC_Cache_Controller::wp_rocket_hooks()
S
61 4 11
SW_CLOUDFLARE_PAGECACHE::get_cloudflare_api_zone_domain_name()
S
63 4 11
is_directory_empty()
S
63 4 11
SWCFPC_Cache_Controller::purge_cache_when_comment_is_deleted()
S
61 4 11
SWCFPC_Cache_Controller::ajax_purge_single_post_cache()
S
53 3 22
SWCFPC_Cloudflare::get_cache_rule_expression()
S
47 1 51
SWCFPC_Preloader_Process::task()
S
54 3 20
SWCFPC_Backend::export_config()
S
57 3 16
SWCFPC_Html_Cache::actions()
S
70 4 5
SWCFPC_Html_Cache::init_directory()
S
66 4 8
SWCFPC_Cache_Controller::can_wpengine_cache_be_purged()
S
68 4 7
SWCFPC_Logs::__construct()
S
65 4 8
SWCFPC_Varnish::purge_urls()
S
68 4 7
SWCFPC_Cache_Controller::litespeed_hooks()
S
63 4 9
SW_CLOUDFLARE_PAGECACHE::get_single_config()
S
68 4 7
SWCFPC_Cloudflare::apply_standard_rules()
S
63 4 10
SWCFPC_Fallback_Cache::fallback_cache_init_directory()
S
66 4 8
SWCFPC_Fallback_Cache::fallback_cache_get_single_ttl()
S
68 4 7
SW_CLOUDFLARE_PAGECACHE::get_cloudflare_worker_content()
S
66 4 8
SWCFPC_Fallback_Cache::fallback_cache_get_stored_headers()
S
64 4 9
swcfpc_fallback_cache_get_stored_headers()
S
64 4 9
SWCFPC_Cache_Controller::generate_new_prefetch_urls_timestamp()
S
60 3 13
SWCFPC_Cache_Controller::litespeed_single_post_hooks()
S
60 3 13
SW_CLOUDFLARE_PAGECACHE::__construct()
S
62 3 12
SWCFPC_Cache_Controller::swcfpc_cache_mbox_callback()
S
62 3 11
SWCFPC_Cache_Controller::get_siteground_supercacher_version()
S
63 3 11
SWCFPC_Html_Cache::delete_all_cached_urls()
S
67 3 8
SWCFPC_Logs::add_log()
S
69 3 6
SW_CLOUDFLARE_PAGECACHE::set_single_config()
S
67 3 8
SWCFPC_Logs::set_verbosity()
S
71 3 6
SWCFPC_Cache_Controller::can_i_start_preloader()
S
69 3 6
SWCFPC_Cache_Controller::purge_cache_programmatically()
S
69 3 6
SWCFPC_Cache_Controller::spl_purge_all()
S
63 3 10
SWCFPC_Cache_Controller::is_purge_cache_queue_writable()
S
69 3 6
SWCFPC_Fallback_Cache::fallback_cache_set_single_ttl()
S
67 3 8
SWCFPC_Fallback_Cache::fallback_cache_is_expired_page()
S
70 3 6
SWCFPC_Fallback_Cache::fallback_cache_purge_all()
S
64 3 10
SWCFPC_Cache_Controller::purge_cache_queue_custom_interval()
S
67 3 7
SWCFPC_Cache_Controller::purge_cache_queue_init_directory()
S
68 3 7
SWCFPC_Cache_Controller::purge_kinsta_cache()
S
63 3 10
SWCFPC_Cache_Controller::w3tc_hooks()
S
64 3 9
SWCFPC_Cache_Controller::wpo_hooks()
S
65 3 8
SWCFPC_Cache_Controller::nginx_helper_purge_single_url_hooks()
S
65 3 8
SWCFPC_Cache_Controller::wp_rocket_selective_url_purge_hooks()
S
65 3 8
SWCFPC_Cache_Controller::can_kinsta_cache_be_purged()
S
70 3 6
SWCFPC_Cache_Controller::ajax_purge_whole_cache()
S
59 2 14
SWCFPC_Cache_Controller::ajax_purge_everything()
S
59 2 14
SWCFPC_Varnish::ajax_purge_whole_varnish_cache()
S
60 2 13
SW_CLOUDFLARE_PAGECACHE::add_plugin_meta_links()
S
60 2 13
SWCFPC_Cache_Controller::purge_kinsta_cache_single_url()
S
61 2 13
SWCFPC_Cache_Controller::ajax_reset_all()
S
61 2 12
SWCFPC_Logs::ajax_clear_logs()
S
61 2 12
SWCFPC_Backend::add_admin_menu_pages()
S
55 1 26
SWCFPC_Cloudflare::__construct()
S
52 1 24
SW_CLOUDFLARE_PAGECACHE::get_second_level_domain()
S
67 2 8
SWCFPC_Cache_Controller::purge_on_plugin_update()
S
69 2 6
SWCFPC_Cache_Controller::remove_cache_buster()
S
67 2 8
SWCFPC_Backend::add_post_row_actions()
S
68 2 6
SWCFPC_Cache_Controller::wp_rocket_disable_page_cache()
S
64 2 10
SW_CLOUDFLARE_PAGECACHE::get_cloudflare_worker_mode()
S
73 2 5
SW_CLOUDFLARE_PAGECACHE::deactivate_plugin()
S
68 2 7
SWCFPC_Cache_Controller::flying_press_hook()
S
69 2 6
swcfpc_wildcard_match()
S
67 2 7
SWCFPC_Backend::admin_menu_page_nginx_settings()
S
66 2 8
SW_CLOUDFLARE_PAGECACHE::get_cloudflare_api_zone_id()
S
73 2 5
SWCFPC_Cache_Controller::swcfpc_cache_mbox_save_values()
S
73 2 5
SW_CLOUDFLARE_PAGECACHE::init_config()
S
71 2 6
SWCFPC_Cache_Controller::wp_performance_hooks()
S
69 2 6
SW_CLOUDFLARE_PAGECACHE::get_cloudflare_worker_id()
S
72 2 5
SWCFPC_Cache_Controller::get_cookies_to_bypass_in_worker_mode()
S
68 2 7
SWCFPC_Cache_Controller::purge_spinupwp_cache()
S
67 2 8
SWCFPC_Cache_Controller::hummingbird_hooks()
S
69 2 6
SWCFPC_Cache_Controller::purge_object_cache()
S
66 2 8
SWCFPC_WP_CLI::purge_cf_cache()
S
66 2 8
SWCFPC_WP_CLI::enable_cf_cache()
S
66 2 8
SWCFPC_Cache_Controller::wpacu_hooks()
S
69 2 6
SWCFPC_Cache_Controller::nginx_helper_purge_all_hooks()
S
69 2 6
SW_CLOUDFLARE_PAGECACHE::get_wordpress_roles()
S
69 2 7
SW_CLOUDFLARE_PAGECACHE::delete_plugin_wp_content_directory()
S
68 2 7
SWCFPC_Logs::get_logs()
S
72 2 6
SWCFPC_Cache_Controller::is_cache_enabled()
S
70 2 6
SWCFPC_Backend::load_survey()
S
63 2 10
SWCFPC_Cache_Controller::purge_spinupwp_cache_single_url()
S
66 2 8
SWCFPC_Cache_Controller::reset_htaccess()
S
76 2 4
SW_CLOUDFLARE_PAGECACHE::get_cloudflare_api_email()
S
73 2 5
SWCFPC_WP_CLI::purge_varnish_cache()
S
66 2 8
SWCFPC_Cache_Controller::can_spinupwp_cache_be_purged()
S
79 2 3
SWCFPC_Fallback_Cache::fallback_cache_init_ttl_registry()
S
71 2 6
SWCFPC_WP_CLI::disable_cf_cache()
S
66 2 8
SWCFPC_Logs::reset_log()
S
77 2 4
SWCFPC_Cache_Controller::__construct()
S
66 2 8
SW_CLOUDFLARE_PAGECACHE::get_cloudflare_api_key()
S
73 2 5
SWCFPC_Cache_Controller::autoptimize_hooks()
S
69 2 6
SW_CLOUDFLARE_PAGECACHE::get_current_lang_code()
S
71 2 6
SW_CLOUDFLARE_PAGECACHE::get_permalink()
S
70 2 6
SW_CLOUDFLARE_PAGECACHE::get_cloudflare_api_token()
S
73 2 5
SWCFPC_Varnish::__construct()
S
63 2 10
SWCFPC_WP_CLI::purge_cache()
S
68 2 7
SW_CLOUDFLARE_PAGECACHE::does_current_url_have_trailing_slash()
S
72 2 5
SWCFPC_Cache_Controller::edd_purge_cache_on_payment_add()
S
69 2 6
SW_CLOUDFLARE_PAGECACHE::wildcard_match()
S
67 2 7
SW_CLOUDFLARE_PAGECACHE::get_cloudflare_worker_route_id()
S
73 2 5
SWCFPC_Html_Cache::admin_menu_page_cached_html_pages()
S
68 2 7
SWCFPC_Fallback_Cache::fallback_cache_save_config()
S
67 2 7
SWCFPC_Cloudflare::set_api_token_domain()
S
82 1 3
SWCFPC_Cloudflare::set_api_key()
S
82 1 3
SWCFPC_Cache_Controller::lock_cache_purge_queue()
S
80 1 3
SWCFPC_Html_Cache::get_cache_key()
S
74 1 5
SW_CLOUDFLARE_PAGECACHE::get_modules()
S
83 1 3
SWCFPC_Cache_Controller::unlock_preloader()
S
80 1 3
SWCFPC_Cache_Controller::get_cache_buster()
S
83 1 3
SW_CLOUDFLARE_PAGECACHE::is_login_page()
S
78 1 3
SW_CLOUDFLARE_PAGECACHE::add_plugin_action_links()
S
69 1 6
SWCFPC_Html_Cache::__construct()
S
77 1 4
SWCFPC_Logs::actions()
S
75 1 4
SWCFPC_Html_Cache::add_admin_menu_pages()
S
66 1 10
SWCFPC_Cloudflare::set_api_email()
S
82 1 3
SWCFPC_Cloudflare::set_auth_mode()
S
82 1 3
SWCFPC_Backend::__construct()
S
77 1 4
SWCFPC_Fallback_Cache::fallback_cache_enable()
S
82 1 3
SWCFPC_Fallback_Cache::fallback_cache_is_wp_content_writable()
S
81 1 3
SWCFPC_Cache_Controller::lock_preloader()
S
80 1 3
SW_CLOUDFLARE_PAGECACHE::load_sdk()
S
77 1 4
SWCFPC_Cloudflare::set_api_token()
S
82 1 3
SWCFPC_Preloader_Process::is_process_running()
S
80 1 3
SWCFPC_WP_CLI::purge_opcache_cache()
S
72 1 5
SWCFPC_Varnish::purge_whole_cache()
S
76 1 4
SWCFPC_Cloudflare::set_worker_route_id()
S
82 1 3
SW_CLOUDFLARE_PAGECACHE::update_config()
S
80 1 3
SWCFPC_Backend::add_debug_string()
S
75 1 4
SWCFPC_Fallback_Cache::ajax_purge_whole_fallback_page_cache()
S
64 1 9
SW_CLOUDFLARE_PAGECACHE::home_url()
S
79 1 3
SWCFPC_Backend::admin_footer_text()
S
63 1 9
SWCFPC_Cache_Controller::add_metaboxes()
S
64 1 10
SWCFPC_Installer::create_mysql_tables()
S
100 1 2
SW_CLOUDFLARE_PAGECACHE::get_config()
S
83 1 3
SWCFPC_Logs::enable_logging()
S
82 1 3
SWCFPC_Cloudflare::enable_worker_mode()
S
77 1 4
SW_CLOUDFLARE_PAGECACHE::set_config()
S
82 1 3
SWCFPC_WP_CLI::version()
S
79 1 3
SW_CLOUDFLARE_PAGECACHE::get_objects()
S
82 1 3
SWCFPC_Installer::start()
S
83 1 3
SWCFPC_Fallback_Cache::fallback_cache_is_wp_config_writable()
S
76 1 4
SW_CLOUDFLARE_PAGECACHE::get_plugin_wp_content_directory_url()
S
75 1 4
SW_CLOUDFLARE_PAGECACHE::get_plugin_wp_content_directory()
S
74 1 4
SWCFPC_Fallback_Cache::fallback_cache_update_ttl_registry()
S
80 1 3
SWCFPC_Cache_Controller::unlock_cache_purge_queue()
S
80 1 3
SW_CLOUDFLARE_PAGECACHE::get_ignored_query_params()
S
83 1 3
SWCFPC_Backend::add_ajax_nonce_everywhere()
S
75 1 6
SW_CLOUDFLARE_PAGECACHE::load_textdomain()
S
78 1 3
SWCFPC_WP_CLI::__construct()
S
82 1 3
SW_CLOUDFLARE_PAGECACHE::actions()
S
69 1 6
SWCFPC_Logs::disable_logging()
S
82 1 3
SWCFPC_WP_CLI::purge_fallback_cache()
S
72 1 5
SWCFPC_Html_Cache::do_not_cache_current_page()
S
82 1 3
SWCFPC_Cache_Controller::get_cache_control_value()
S
71 1 5
SWCFPC_Html_Cache::cache_current_page()
S
82 1 3
SWCFPC_Html_Cache::add_url_to_cache()
S
66 1 8
SWCFPC_Installer::__construct()
S
100 1 1
SWCFPC_Preloader_Process::complete()
S
70 1 6
SWCFPC_Fallback_Cache::fallback_cache_disable()
S
82 1 3
SWCFPC_Logs::get_verbosity()
S
83 1 3
SWCFPC_Varnish::actions()
S
79 1 3
SWCFPC_Cloudflare::set_worker_id()
S
82 1 3
SW_CLOUDFLARE_PAGECACHE::get_plugin_wp_content_directory_uri()
S
73 1 4
SWCFPC_Preloader_Process::__construct()
S
77 1 4
SWCFPC_Cloudflare::actions()
S
79 1 3