Code Analysis: Burst Statistics - Privacy-Friendly Analytics for WordPress 1.4.3

Function Rating Maintainability Complexity Lines of code
parse_user_agent()
D
24
49 148
burst_notices::get_notices_list()
D
25
37 180
burst_get_user_agent_data()
C
40 32 51
burst_track_hit()
B
32 21 103
burst_rest_api_fallback()
B
39 20 61
burst_rest_api_fields_set()
B
37 19 69
rsp_upgrade_to_pro::api_request()
B
41 20 48
burst_goals::set()
B
44 19 40
rsp_upgrade_to_pro::validate()
B
37 16 72
rsp_upgrade_to_pro::get_suggested_plugin()
B
38 16 70
burst_check_upgrade()
A
46 15 39
burst_sanitize_field()
A
49 15 32
burst_statistics::get_sql_select_for_metric()
A
44 14 45
burst_get_data()
A
40 13 56
burst_other_plugins_data()
A
42 13 54
burst_goal_statistics::get_goals_data()
A
35 10 94
burst_goals::set_goal_field_values()
A
54 15 16
burst_statistics::get_dashboard_widget_statistics()
A
43 13 44
rsp_upgrade_to_pro::__construct()
A
36 10 83
burst_statistics::get_sql_table()
A
42 12 48
rsp_upgrade_to_pro::process_ajax_destination_clear()
A
44 12 43
burst_notices::count_plusones()
A
50 13 28
burst_statistics::get_chart_data_by_metric()
A
35 9 85
burst_notices::validate_function()
A
47 12 35
rsp_upgrade_to_pro::print_install_modal()
A
40 9 67
burst_statistics::get_today_data()
A
37 7 85
burst_fields()
A
33 4 128
burst_plugin_admin_scripts()
A
41 9 53
burst_do_action()
A
47 10 35
burst_admin::deactivate_popup()
A
36 3 139
burst_is_pagebuilder_preview()
A
56 11 17
burst_rest_api_fields_get()
A
45 9 39
burst_update_option()
A
47 9 34
burst_format_number()
A
49 9 31
burst_integration_plugin_is_active()
A
55 9 19
burst_rest_api_goal_fields_get()
A
50 8 25
burst_db_upgrade::upgrade_bounces()
A
48 7 40
burst_review::__construct()
A
52 8 25
rsp_upgrade_to_pro::process_ajax_package_information()
A
53 8 23
burst_add_view_capability()
A
54 8 20
burst_add_manage_capability()
A
54 8 20
rsp_upgrade_to_pro::process_ajax_install_plugin()
A
48 7 34
burst_exclude_plugins_for_rest_api()
A
56 8 18
burst_get_posts()
S
49 7 27
burst_get_html_template()
S
51 7 25
burst_admin::delete_all_burst_data()
S
47 6 39
burst_statistics::enqueue_burst_tracking_script()
S
47 6 36
rsp_upgrade_to_pro::process_ajax_activate_license()
S
54 7 20
burst_statistics::get_pages_data()
S
44 5 47
burst_statistics::get_insights_data()
S
42 4 56
burst_review::show_leave_review_notice()
S
43 3 69
burst_goal_fields()
S
37 1 99
burst_rest_api_goal_fields_set()
S
52 6 23
rsp_upgrade_to_pro::process_ajax_activate_plugin()
S
53 6 22
burst_db_upgrade::upgrade_goals_remove_columns()
S
53 6 22
burst_statistics::get_sql_select_for_metrics()
S
53 6 22
burst_db_upgrade::init()
S
56 6 19
burst_goal_is_completed()
S
57 6 18
burst_fix_rest_url_for_wpml()
S
57 6 18
burst_settings_rest_route()
S
39 1 92
burst_admin::is_bf()
S
57 6 17
burst_admin::enqueue_assets()
S
61 7 9
burst_statistics::exclude_from_tracking()
S
58 6 15
burst_admin::listen_for_deactivation()
S
58 6 14
burst_get_last_user_statistic()
S
51 5 28
burst_statistics::get_devices_data()
S
40 2 71
burst_admin::setup_defaults()
S
52 5 25
rsp_upgrade_to_pro::enqueue_assets()
S
53 5 20
burst_drop_empty_menu_items()
S
55 5 19
burst_statistics::get_device_name()
S
57 5 18
burst_rest_api_options_set()
S
55 5 18
burst_admin_logged_in()
S
76 6 3
burst_integrations()
S
58 5 15
burst_statistics::defer_burst_tracking_script()
S
59 5 15
burst_endpoint::endpoint_test_request()
S
50 4 29
burst_statistics::get_referrers_data()
S
45 3 43
burst_notices::is_burst_page()
S
60 5 13
burst_rest_track_hit()
S
60 5 12
burst_panel()
S
53 4 26
burst_get_ip_address()
S
52 4 26
BURST::instance()
S
54 4 22
burst_installer::download_plugin()
S
54 4 21
burst_create_goal_statistic()
S
57 4 17
burst_rest_api_goals_delete()
S
56 4 16
burst_statistics::get_metric_color()
S
51 3 31
burst_menu()
S
44 1 60
burst_required_values_are_not_set()
S
75 5 3
burst_is_ip_blocked()
S
58 4 15
burst_admin::posts_orderby_total_pageviews()
S
64 5 9
burst_admin::add_burst_admin_columns()
S
58 4 15
burst_goal_statistics::get_live_goals_data()
S
57 4 15
burst_plugin_actions()
S
59 4 14
burst_goals::get_goals()
S
50 3 29
burst_goals::get_goal_field_values()
S
58 4 14
burst_sanitize_filters()
S
60 4 13
burst_rest_api_goals_add()
S
59 4 13
burst_get_completed_goals()
S
61 4 13
burst_is_networkwide_active()
S
62 4 12
burst_sanitize_referrer()
S
60 4 12
burst_goal_statistics::get_goal_id()
S
63 4 11
burst_endpoint::install_endpoint_file()
S
62 4 11
BURST::includes()
S
52 3 26
burst_add_option_menu()
S
52 3 26
burst_admin_notice()
S
58 3 21
BURST::setup_constants()
S
57 3 19
burst_endpoint::rest_api_test_request()
S
56 3 18
burst_admin::add_admin_column()
S
57 3 17
burst_install_statistics_table()
S
52 2 32
burst_statistics::get_compare_goals_data()
S
45 1 46
burst_review::dismiss_review_notice_callback()
S
63 4 10
burst_installer::install()
S
66 4 9
burst_statistics::enqueue_burst_time_tracking_script()
S
65 4 8
burst_remove_empty_values()
S
66 4 8
burst_read_more()
S
59 3 15
burst_beacon_track_hit()
S
59 3 15
burst_get_current_post_id()
S
67 4 7
burst_create_statistic()
S
60 3 15
burst_get_option()
S
64 4 9
burst_get_chunk_translations()
S
59 3 14
burst_admin::__construct()
S
50 2 28
burst_frontend::add_to_admin_bar_menu()
S
61 3 13
burst_endpoint::get_tracking_status_and_time()
S
60 3 13
burst_get_template()
S
61 3 13
burst_installer::activate_plugin()
S
62 3 12
burst_sprintf()
S
61 3 12
burst_rest_api_goals_get()
S
60 3 12
burst_endpoint::test_tracking_status()
S
63 3 11
burst_installer::get_plugin_info()
S
62 3 11
rsp_upgrade_to_pro::get_plugin_info()
S
62 3 11
burst_notice()
S
63 3 11
burst_goals::check_existing_goals()
S
62 3 11
burst_statistics::get_compare_data()
S
48 1 38
burst_dashboard()
S
59 2 23
burst_install_goals_table()
S
55 2 23
burst_sanitize_field_type()
S
57 2 19
burst_install_sessions_table()
S
57 2 18
burst_install_goal_statistics_table()
S
58 2 16
burst_sanitize_uid()
S
71 3 6
burst_user_can_view()
S
67 3 9
burst_admin_url()
S
77 3 3
burst_get_blocked_ips()
S
65 3 9
burst_sanitize_relative_url()
S
65 3 9
burst_is_real_ip()
S
74 3 4
burst_schedule_cron()
S
64 3 10
burst_get_active_goals()
S
62 3 10
burst_get_current_post_type()
S
65 3 10
burst_is_logged_in_rest()
S
67 3 7
burst_sanitize_fingerprint()
S
70 3 6
burst_user_can_manage()
S
67 3 9
burst_statistics::sanitize_metrics()
S
65 3 9
burst_ip_anonymizer::anonymize()
S
64 3 10
BURST::get_instance()
S
67 3 8
burst_statistics::calculate_uplift_status()
S
64 3 10
burst_statistics::format_uplift()
S
67 3 7
burst_review::insert_dismiss_review()
S
57 1 30
burst_statistics::calculate_ratio()
S
64 3 9
burst_statistics::get_live_visitors_data()
S
59 2 14
burst_admin::plugin_settings_link()
S
59 2 14
burst_admin::add_privacy_info()
S
61 2 13
burst_statistics::sanitize_interval()
S
63 2 12
burst_printf()
S
62 2 11
burst_sanitize_ip_field()
S
63 2 11
burst_goals::get_available_goal_types()
S
55 1 22
burst_filter_cron_schedules()
S
57 1 19
burst_statistics::get_pages_by_metric()
S
56 1 18
burst_endpoint::get_endpoint_file_contents()
S
60 1 16
burst_sanitize_page_url()
S
69 2 7
burst_db_upgrade::__construct()
S
66 2 8
burst_is_multisite_plugin_on_non_multisite_installation()
S
79 2 3
burst_sanitize_completed_goal_ids()
S
67 2 8
burst_endpoint::update()
S
66 2 8
burst_frontend::__construct()
S
66 2 8
burst_installer::__construct()
S
75 2 4
burst_statistics::calculate_percentage_uplift()
S
73 2 4
burst_notices::dismiss_notice()
S
66 2 8
burst_statistics::calculate_time_per_session()
S
74 2 4
burst_statistics::get_nr_of_periods()
S
70 2 5
burst_elementor_the_content()
S
68 2 7
burst_get_active_goals_ids()
S
67 2 8
burst_get_user_roles()
S
70 2 7
burst_intro()
S
69 2 7
burst_array_filter_multidimensional()
S
70 2 6
burst_rest_api_menu()
S
70 2 6
burst_set_defaults()
S
66 2 8
burst_admin::remove_plugin_from_array()
S
68 2 7
burst_get_first_time_visit()
S
66 2 7
burst_sanitize_page_id()
S
79 2 3
burst_remove_fallback_notice()
S
74 2 5
burst_get_referrer_url()
S
64 2 9
burst_notices::__construct()
S
68 2 7
burst_endpoint::install()
S
66 2 8
burst_admin::add_burst_dashboard_widget()
S
66 2 9
burst_notices::notices()
S
65 2 9
burst_statistics::sanitize_metric()
S
69 2 7
delete_post_pageviews_on_duplicate_product()
S
69 2 7
burst_statistics::convert_date_to_utc()
S
68 2 6
burst_review::process_get_review_dismiss()
S
72 2 5
burst_endpoint::__construct()
S
65 2 9
burst_get_date_ranges()
S
63 1 12
burst_db_upgrade::get_db_upgrades()
S
72 1 6
burst_tracking_status_beacon()
S
80 1 3
burst_get_value()
S
80 1 3
burst_sanitize_user_agent()
S
79 1 3
BURST::hooks()
S
74 1 4
burst_installer::get_activation_slug()
S
67 1 8
burst_goal_statistics::__construct()
S
79 1 3
burst_statistics::get_bounces()
S
69 1 6
burst\UserAgent\UserAgentParser::__invoke()
S
80 1 3
burst_installer::plugin_is_activated()
S
80 1 3
burst_statistics::calculate_conversion_rate()
S
79 1 3
burst_complianz_add_cookies()
S
77 1 4
burst_statistics::__construct()
S
71 1 5
burst_admin::this()
S
81 1 3
burst_statistics::get_metrics()
S
65 1 9
burst_notices::this()
S
81 1 3
burst_get_beacon_url()
S
76 1 4
BURST::__construct()
S
91 1 2
burst_tracking_status_rest_api()
S
80 1 3
burst_endpoint::get_tracking_status()
S
76 1 4
burst_notices::get()
S
74 1 5
burst_create_session()
S
66 1 9
burst_update_statistic()
S
64 1 10
burst_is_pro()
S
81 1 3
burst\UserAgent\UserAgent::platform()
S
82 1 3
burst\UserAgent\UserAgent::browserVersion()
S
82 1 3
burst_statistics::get_conversions()
S
71 1 5
burst_ip_anonymizer::anonymizeIPv6()
S
78 1 3
burst_get_tracking_status()
S
82 1 3
burst_get_goals_script_url()
S
79 1 3
burst_admin::generate_dashboard_widget()
S
80 1 3
burst_tracking_status_error()
S
80 1 3
burst_goals::__construct()
S
79 1 3
burst_add_role_to_subsite()
S
74 1 5
burst_goals::get_goal_setup()
S
69 1 6
burst_get_anon_ip_address()
S
77 1 4
burst_goals::delete()
S
69 1 6
burst_notices::get_lowest_possible_task_count()
S
75 1 4
burst\UserAgent\UserAgent::__construct()
S
74 1 5
burst_admin::ms_remove_tables()
S
68 1 7
burst_goals::get()
S
65 1 8
burst_review::this()
S
81 1 3
rsp_upgrade_to_pro::init()
S
64 1 9
burst_installer::plugin_is_downloaded()
S
79 1 3
burst_display_date()
S
79 1 3
burst_statistics::calculate_uplift()
S
75 1 4
burst_exclude_js()
S
73 1 5
burst\UserAgent\UserAgent::browser()
S
82 1 3
burst_update_session()
S
66 1 9
burst\UserAgent\UserAgentParser::parse()
S
67 1 8
burst_migrate_settings()
S
100 1 2
burst_endpoint::this()
S
80 1 3
burst_ip_anonymizer::anonymizeIPv4()
S
78 1 3
burst_sessions::__construct()
S
100 1 2
burst_goal_statistics::init()
S
91 1 2
burst_format_milliseconds_to_readable_time()
S
65 1 9
burst_clear_scheduled_hooks()
S
82 1 3
burst_localize_date()
S
66 1 8
burst_sanitize_device_resolution()
S
79 1 3
burst_sanitize_entire_page_url()
S
79 1 3
burst_statistics::get_data()
S
69 1 6
burst_sanitize_time_on_page()
S
82 1 3
burst_sanitize_time()
S
82 1 3
burst_sanitize_first_time_visit()
S
81 1 3
BURST()
S
82 1 3
burst_register_track_hit_route()
S
66 1 10
burst_goals::archive()
S
71 1 5
burst_ip_anonymizer::anonymizeIp()
S
75 1 4
burst_clear_elementor_cache()
S
81 1 3
burst_frontend::this()
S
81 1 3
burst_exclude_inline_js()
S
77 1 4