Code Analysis: Cookies and Content Security Policy 2.29

Function Rating Maintainability Complexity Lines of code
set_content_security_policy()
D
23
43 176
modal_content_security_policy()
D
27
30 170
cacsp_options()
C
34 30 91
cacsp_options_settings_colors()
C
27
24 177
cacsp_save_error_message_js()
A
38 10 81
get_cacsp_options()
A
49 13 29
enqueue_cacsp_front()
A
39 9 66
cacsp_network_settings()
A
41 5 68
cacsp_option_actived()
S
59 8 13
Cacsp_Consent_Table::column_default()
S
62 7 12
body_class_cacsp_front()
S
59 6 15
cacsp_settings_input_row()
S
53 5 22
cacsp_sanitize_domains()
S
59 5 14
cacsp_settings_textarea_row()
S
56 4 18
cacsp_hide_admin_for_sub_sites()
S
60 4 14
cacsp_check_existing_domain()
S
60 4 13
Cacsp_Consent_Table::prepare_items()
S
52 3 23
cacsp_check_activated()
S
67 4 8
cacsp_get_protocol()
S
72 4 4
Cacsp_Consent_Table::usort_reorder()
S
68 4 6
cacsp_insert_consent_data()
S
54 2 21
Cacsp_Consent_Table::get_table_data()
S
59 2 15
cacsp_init()
S
74 3 5
cacsp_texts()
S
62 2 13
cacsp_install_consent_db()
S
58 1 18
cacsp_menu()
S
72 2 5
send_headers_cacsp()
S
70 2 6
cacsp_sanitize_text_field_with_html()
S
61 1 14
Cacsp_Consent_Table::get_columns()
S
63 1 11
Cacsp_Consent_Table::get_sortable_columns()
S
63 1 11
cacsp_get_asset_last_modified_time()
S
79 1 3
cacsp_option_use()
S
81 1 3
enqueue_cacsp_back()
S
66 1 10
cacsp_options_settings_link()
S
74 1 4
cacsp_get_error_message_js_dir()
S
80 1 3
cacsp_sanitize_ip()
S
77 1 4
cacsp_single_space()
S
79 1 3
cacsp_new_menu_item_network()
S
66 1 10
cacsp_consent_init()
S
67 1 8
cacsp_load_textdomain()
S
78 1 3
cacsp_add_wpsc_cookie_banner()
S
80 1 3
cacsp_get_plugin_version()
S
73 1 4