Code Analysis: Post Views Counter 1.4.8

Function Rating Maintainability Complexity Lines of code
Post_Views_Counter_Crawler_Detect::get_crawlers_list()
D
2
1 1,405
pvc_get_views()
D
16
79 209
Post_Views_Counter_Query::posts_join()
D
26
61 113
Post_Views_Counter_Settings_API::options_page()
D
31 36 94
Post_Views_Counter_Settings_API::render_field()
D
34 36 67
Post_Views_Counter_Dashboard::dashboard_post_views_chart()
D
25
25 182
Post_Views_Counter_Settings_API::validate_field()
C
38 27 59
Post_Views_Counter_Settings::settings_data()
B
19
1 404
Post_Views_Counter_Frontend::add_post_views_count()
B
40 24 53
Post_Views_Counter_Frontend::wp_enqueue_scripts()
B
41 23 42
pvc_most_viewed_posts()
B
36 21 68
Post_Views_Counter_List_Widget::form()
B
35 19 75
Post_Views_Counter_Query::is_date_valid()
B
48 22 29
Post_Views_Counter_Dashboard::update_dashboard_user_options()
B
43 21 39
Post_Views_Counter_Counter::save_cookie()
B
35 18 83
Post_Views_Counter_Settings_API::validate_settings()
B
42 18 48
Post_Views_Counter_Query::posts_groupby()
B
44 18 39
pvc_get_post_views()
B
40 16 55
Post_Views_Counter_Settings_API::register_setting_fields()
B
46 17 34
Post_Views_Counter_Query::posts_orderby()
B
43 16 47
Post_Views_Counter_Update::check_update()
A
39 14 64
Post_Views_Counter_Columns::admin_bar_menu()
A
40 14 55
Post_Views_Counter_Counter::check_conditions()
A
49 15 28
Post_Views_Counter_Counter::save_cookie_storage()
A
40 13 56
Post_Views_Counter_List_Widget::update()
A
50 15 24
Post_Views_Counter_Counter::check_cookie()
A
49 14 27
Post_Views_Counter_Columns::save_bulk_post_views()
A
49 14 25
Post_Views_Counter_Settings::validate_settings()
A
44 13 39
Post_Views_Counter_Settings_API::prepare_field_args()
A
52 14 20
Post_Views_Counter_Counter::check_post_js()
A
46 13 33
Post_Views_Counter_Counter::check_post()
A
46 13 33
Post_Views_Counter_Dashboard::dashboard_post_most_viewed()
A
37 10 73
Post_Views_Counter_Columns::save_post()
A
50 13 25
Post_Views_Counter_Counter::check_post_php()
A
55 13 16
Post_Views_Counter_Settings_API::validate_input_settings()
A
49 12 29
Post_Views_Counter::admin_enqueue_scripts()
A
41 10 54
Post_Views_Counter_Query::get_groupby_tax_aliases()
A
51 12 23
Post_Views_Counter_Columns::admin_bar_maybe_add_style()
A
54 11 17
Post_Views_Counter_Counter::is_homepage()
A
56 11 17
pvc_post_views()
A
48 10 28
Post_Views_Counter_Counter::check_post_rest_api()
A
48 10 28
Post_Views_Counter_Settings_API::admin_menu_options()
A
51 10 23
Post_Views_Counter::update_notice()
A
47 9 32
Post_Views_Counter_Settings::validate_restrict_display()
A
53 9 23
Post_Views_Counter_Query::extend_pre_query()
A
56 9 17
Post_Views_Counter_Admin::block_editor_update_callback()
A
55 9 16
Post_Views_Counter_Query::the_posts()
A
59 9 13
Post_Views_Counter_Columns::register_new_column()
A
51 8 25
Post_Views_Counter_Counter::queue_count()
A
52 8 23
Post_Views_Counter_Settings::validate_exclude()
A
54 8 21
Post_Views_Counter::dismiss_notice()
A
48 7 33
Post_Views_Counter_Query::get_groupby_meta_aliases()
A
56 8 18
Post_Views_Counter_Query::posts_distinct()
S
68 9 5
Post_Views_Counter_Query::posts_fields()
S
68 9 5
Post_Views_Counter_Functions::get_current_scheme_color()
S
51 7 26
Post_Views_Counter_Columns::quick_edit_custom_box()
S
52 7 25
Post_Views_Counter_Counter::save_data_storage()
S
52 7 24
Post_Views_Counter_Columns::submitbox_views()
S
46 6 39
Post_Views_Counter_Counter::set_storage_type()
S
57 7 15
Post_Views_Counter_Settings::validate_display_style()
S
57 7 15
Post_Views_Counter_Settings::settings_page()
S
40 3 73
Post_Views_Counter_Frontend::run()
S
60 7 11
Post_Views_Counter_Frontend::post_views_shortcode()
S
52 6 24
Post_Views_Counter::instance()
S
47 5 38
Post_Views_Counter_Cron::check_cron()
S
55 6 19
Post_Views_Counter_Functions::hex2rgb()
S
57 6 15
Post_Views_Counter_Settings::validate_reset_counts()
S
61 7 10
Post_Views_Counter_Settings::validate_exclude_ips()
S
58 6 15
Post_Views_Counter_Columns::maybe_load_admin_bar_menu()
S
59 6 13
Post_Views_Counter_Counter::get_user_ip()
S
59 6 13
Post_Views_Counter::most_viewed_posts_render_callback()
S
50 5 27
Post_Views_Counter_Counter::print_queue_count()
S
48 4 42
Post_Views_Counter_Settings::setting_restrict_display()
S
52 5 21
Post_Views_Counter_Functions::get_taxonomies()
S
55 5 20
Post_Views_Counter_Admin::block_editor_enqueue_scripts()
S
52 5 20
pvc_get_most_viewed_posts()
S
54 5 19
Post_Views_Counter_Dashboard::dashboard_widget()
S
55 5 18
Post_Views_Counter_Columns::add_new_column()
S
58 5 16
Post_Views_Counter_Counter::sanitize_storage_data()
S
58 5 15
Post_Views_Counter_Counter::init_counter()
S
57 5 15
Post_Views_Counter_Counter::is_user_role_excluded()
S
60 5 13
Post_Views_Counter_Counter::validate_rest_api_data()
S
59 5 13
Post_Views_Counter_Crawler_Detect::set_user_agent()
S
61 5 12
Post_Views_Counter_Dashboard::setup_widget_items()
S
51 4 26
Post_Views_Counter_Counter::using_object_cache()
S
62 5 11
Post_Views_Counter::display_notice()
S
52 4 25
Post_Views_Counter_Settings_API::__construct()
S
52 4 23
Post_Views_Counter_Counter::flush_cache_to_db()
S
55 4 20
Post_Views_Counter_Settings::setting_exclude()
S
53 4 19
pvc_view_post()
S
58 4 16
Post_Views_Counter_Counter::is_posts_page()
S
67 5 6
Post_Views_Counter_Settings::validate_time_between_counts()
S
64 5 8
Post_Views_Counter_Counter::sanitize_cookies_data()
S
58 4 15
Post_Views_Counter_Dashboard::get_dashboard_user_options()
S
65 5 8
Post_Views_Counter_Crawler_Detect::set_http_headers()
S
64 5 9
Post_Views_Counter_Dashboard::init_admin_dashboard()
S
58 4 14
Post_Views_Counter::activation()
S
61 4 12
Post_Views_Counter::deactivation()
S
61 4 12
Post_Views_Counter_Crawler_Detect::is_crawler()
S
61 4 11
Post_Views_Counter_Functions::get_post_types()
S
61 4 11
Post_Views_Counter_Settings_API::register_settings()
S
62 4 11
Post_Views_Counter::__construct()
S
51 3 25
Post_Views_Counter_Crawler_Detect::get_exclusions_list()
S
45 1 52
Post_Views_Counter_Settings::setting_exclude_ips()
S
53 3 21
Post_Views_Counter::deactivate_site()
S
55 3 19
Post_Views_Counter_Counter::count_visit()
S
56 3 17
Post_Views_Counter::admin_inline_js()
S
52 2 32
Post_Views_Counter_Settings::settings_sidebar()
S
51 2 31
Post_Views_Counter_Settings::settings_form()
S
63 4 9
Post_Views_Counter_Admin::check_rest_route_permissions()
S
65 4 7
Post_Views_Counter_Settings_API::get_int_value()
S
69 4 6
Post_Views_Counter_Settings::submenu_file()
S
65 4 8
Post_Views_Counter_Counter::db_prepare_insert()
S
63 4 10
pvc_update_post_views()
S
60 3 12
Post_Views_Counter_Dashboard::period2timestamp()
S
60 3 12
Post_Views_Counter_Dashboard::generate_dashboard_widget_item()
S
52 2 27
Post_Views_Counter_Update::update_1()
S
60 3 12
Post_Views_Counter::block_editor_enqueue_scripts()
S
51 2 25
Post_Views_Counter_Counter::rest_api_init()
S
49 1 38
Post_Views_Counter_Columns::admin_bar_css()
S
56 2 21
Post_Views_Counter_List_Widget::__construct()
S
48 1 36
Post_Views_Counter_Dashboard::generate_months()
S
55 2 18
Post_Views_Counter_Settings_API::callback_function_exists()
S
64 3 10
Post_Views_Counter_Crawler_Detect::init()
S
68 3 7
Post_Views_Counter::plugin_settings_link()
S
62 3 10
Post_Views_Counter::update_block_args()
S
68 3 7
Post_Views_Counter::define_constants()
S
69 3 8
Post_Views_Counter_List_Widget::widget()
S
63 3 9
Post_Views_Counter_Frontend::display_bbpress_post_views()
S
72 3 5
Post_Views_Counter_Dashboard::calculate_canvas_size()
S
66 3 7
Post_Views_Counter()
S
70 3 6
Post_Views_Counter_Settings::update_counter_mode()
S
65 3 8
Post_Views_Counter_Settings::validate_label()
S
64 3 9
Post_Views_Counter_Settings::setting_object_cache()
S
62 3 9
Post_Views_Counter_Settings::setting_time_between_counts()
S
57 2 14
Post_Views_Counter_Settings::setting_reset_counts()
S
58 2 13
Post_Views_Counter_Counter::db_commit_insert()
S
62 2 12
Post_Views_Counter_Settings::setting_taxonomies_display()
S
62 2 11
Post_Views_Counter_Counter::get_timestamp()
S
61 2 11
Post_Views_Counter::register_blocks()
S
61 2 11
Post_Views_Counter::activate_site()
S
56 1 19
Post_Views_Counter_Settings_API::admin_enqueue_scripts()
S
60 1 18
Post_Views_Counter_Settings::section_reports_placeholder()
S
58 1 17
Post_Views_Counter_Admin::block_editor_rest_api_init()
S
59 1 16
Post_Views_Counter_Functions::get_colors()
S
66 2 8
Post_Views_Counter_Settings::reset_label()
S
72 2 5
Post_Views_Counter::add_notice()
S
63 2 10
Post_Views_Counter::initialize_new_network_site()
S
70 2 7
Post_Views_Counter_Crawler_Detect::get_matches()
S
78 2 3
Post_Views_Counter_Counter::validate_user_ip()
S
71 2 5
Post_Views_Counter_Columns::add_new_column_content()
S
70 2 6
Post_Views_Counter_Functions::get_user_roles()
S
64 2 9
Post_Views_Counter_Counter::db_insert()
S
66 2 7
Post_Views_Counter_Settings::settings_page_class()
S
70 2 6
Post_Views_Counter_Settings::setting_display_style()
S
62 2 10
Post_Views_Counter::includes()
S
59 1 15
Post_Views_Counter_Counter::ipv4_in_range()
S
68 2 6
Post_Views_Counter_Crawler_Detect::get_headers_list()
S
62 1 14
Post_Views_Counter_Cron::reset_counts()
S
58 1 13
Post_Views_Counter_Settings::setting_import_views()
S
61 1 12
Post_Views_Counter_Dashboard::admin_scripts_styles()
S
60 1 12
Post_Views_Counter_Columns::__construct()
S
62 1 11
Post_Views_Counter_Counter::__construct()
S
72 1 5
Post_Views_Counter_Crawler_Detect::__construct()
S
72 1 5
Post_Views_Counter::__clone()
S
98 1 1
Post_Views_Counter_Settings_API::get_pages()
S
82 1 3
Post_Views_Counter::post_views_render_callback()
S
69 1 6
Post_Views_Counter_Cron::cron_time_intervals()
S
66 1 8
Post_Views_Counter::add_block_category()
S
70 1 7
Post_Views_Counter_Settings::validate_license()
S
80 1 3
Post_Views_Counter_Settings_API::get_prefix()
S
82 1 3
Post_Views_Counter_Frontend::get_frontend_script_args()
S
82 1 3
Post_Views_Counter_Columns::register_sortable_custom_column()
S
77 1 4
Post_Views_Counter_Crawler_Detect::get_ua_http_headers()
S
82 1 3
Post_Views_Counter_Dashboard::__construct()
S
79 1 3
Post_Views_Counter_Admin::__construct()
S
74 1 4
Post_Views_Counter_Crawler_Detect::get_regex()
S
78 1 3
Post_Views_Counter_Counter::get_post_views_rest_api()
S
80 1 3
Post_Views_Counter_Settings::__construct()
S
65 1 8
Post_Views_Counter_Dashboard::wp_dashboard_setup()
S
77 1 3
Post_Views_Counter_Settings_API::get_settings()
S
82 1 3
Post_Views_Counter_Settings::setting_taxonomies_count()
S
72 1 5
Post_Views_Counter_Counter::delete_post_views()
S
64 1 9
Post_Views_Counter_Widgets::__construct()
S
79 1 3
Post_Views_Counter_Crawler_Detect::get_exclusions()
S
78 1 3
Post_Views_Counter_Counter::get_storage_type()
S
82 1 3
Post_Views_Counter_Counter::get_storage()
S
82 1 3
Post_Views_Counter::__wakeup()
S
98 1 1
Post_Views_Counter_Settings::setting_delete_views()
S
70 1 6
Post_Views_Counter_Update::__construct()
S
79 1 3
Post_Views_Counter_Query::__construct()
S
63 1 10
Post_Views_Counter_Functions::__construct()
S
98 1 1
Post_Views_Counter_Settings::setting_users_count()
S
70 1 6
Post_Views_Counter_Admin::init_block_editor()
S
75 1 4
Post_Views_Counter_Counter::get_post_views_permissions_check()
S
78 1 3
Post_Views_Counter_Settings_API::get_input_settings()
S
82 1 3
Post_Views_Counter::load_pluggable_functions()
S
80 1 3
Post_Views_Counter_Cron::__construct()
S
72 1 5
Post_Views_Counter_Admin::register_chartjs()
S
77 1 3
Post_Views_Counter_Settings::get_counter_modes()
S
64 1 9
Post_Views_Counter_Query::query_vars()
S
77 1 4
Post_Views_Counter_Crawler_Detect::get_user_agent()
S
82 1 3
Post_Views_Counter_Settings_API::get_validated_settings()
S
82 1 3
Post_Views_Counter_Counter::add_to_queue()
S
80 1 3
Post_Views_Counter_Counter::view_post_permissions_check()
S
78 1 3
Post_Views_Counter::load_textdomain()
S
78 1 3
Post_Views_Counter_Widgets::register_widgets()
S
81 1 3
Post_Views_Counter_Frontend::register_shortcode()
S
79 1 3
Post_Views_Counter_Frontend::__construct()
S
72 1 5