Code Analysis: Pantheon Advanced Page Cache 2.1.1

Function Rating Maintainability Complexity Lines of code
Emitter::get_main_query_surrogate_keys()
C
33 31 89
admin_notice_maybe_recommend_higher_max_age()
A
43 15 46
get_pantheon_cache_filter_callback()
A
47 13 33
Emitter::filter_huge_surrogate_keys_list()
A
46 9 40
max_age_updated_admin_notice()
A
48 8 36
add_max_age_setting_description()
A
48 8 32
Purger::purge_post_with_related()
A
46 7 40
User_Interface::action_admin_bar_menu()
A
53 8 20
update_default_ttl_input()
S
51 7 24
User_Interface::handle_ajax_clear_url_cache()
S
56 7 15
test_cache_max_age()
S
44 3 51
Purger::action_updated_option()
S
56 5 17
Emitter::action_rest_api_init()
S
55 5 17
enqueue_admin_assets()
S
62 6 9
bootstrap()
S
51 4 25
admin_notice_old_mu_plugin()
S
52 4 24
set_max_age_to_default()
S
58 4 16
Emitter::filter_graphql_dataloader_get_model()
S
59 4 14
Purger::action_clean_post_cache()
S
58 3 16
max_age_compare()
S
57 3 16
Purger::action_transition_post_status()
S
64 4 10
Purger::action_clean_term_cache()
S
60 3 13
pantheon_bootstrap_namespaces()
S
60 3 13
pantheon_wp_prefix_surrogate_keys_with_blog_id()
S
61 3 12
pantheon_wp_clear_edge_keys()
S
63 3 11
pantheon_wp_clear_edge_paths()
S
63 3 11
pantheon_wp_clear_edge_all()
S
63 3 11
Emitter::filter_rest_post_dispatch()
S
67 3 7
CLI::purge_path()
S
65 3 9
CLI::purge_key()
S
65 3 9
Purger::action_wp_insert_comment()
S
60 2 13
add_max_age_setting_header()
S
62 2 13
admin_notice_no_mu_plugin()
S
62 2 12
Emitter::filter_rest_pre_dispatch()
S
69 2 6
Emitter::get_instance()
S
71 2 6
filter_nonce_cache_lifetime()
S
66 2 9
get_current_max_age()
S
68 2 7
humanized_max_age()
S
70 2 6
Emitter::action_wp()
S
69 2 6
CLI::purge_all()
S
66 2 9
Emitter::filter_graphql_response_headers_to_send()
S
68 2 7
Purger::action_wp_insert_post()
S
71 2 6
Purger::purge_term()
S
61 1 13
Purger::action_clean_user_cache()
S
63 1 11
Emitter::filter_rest_prepare_comment()
S
72 1 5
Purger::action_delete_attachment()
S
76 1 4
Purger::action_created_term()
S
67 1 7
max_age_input_allowed_html()
S
74 1 5
Purger::action_before_delete_post()
S
76 1 4
Emitter::reset_rest_api_surrogate_keys()
S
79 1 3
Purger::action_clean_comment_cache()
S
66 1 9
get_default_max_age()
S
80 1 3
Purger::action_delete_term()
S
80 1 3
Emitter::filter_rest_prepare_post()
S
75 1 4
Emitter::filter_rest_prepare_user()
S
75 1 4
Emitter::get_graphql_surrogate_keys()
S
65 1 9
max_age_options()
S
66 1 8
Purger::action_edited_term()
S
80 1 3
Emitter::filter_rest_prepare_term()
S
75 1 4
Emitter::get_rest_api_surrogate_keys()
S
67 1 8
default_cache_max_age_test()
S
68 1 7
clear_max_age_compare_cache()
S
82 1 3
Emitter::filter_rest_pre_get_setting()
S
75 1 4
Purger::clear_post_path()
S
66 1 8
Purger::action_transition_comment_status()
S
64 1 10