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

Function Rating Maintainability Complexity Lines of code
parse_user_agent()
D
24
49 148
burst_notices::get_notices_list()
D
23
38 195
burst_get_user_agent_data()
C
39 33 57
burst_track_hit()
C
31 25 111
burst_check_upgrade()
B
40 22 58
burst_rest_api_fallback()
B
39 20 61
burst_rest_api_fields_set()
B
37 19 69
burst_statistics::get_sql_select_for_metric()
B
41 20 52
rsp_upgrade_to_pro::api_request()
B
41 20 48
burst_goals::set()
B
43 20 42
burst_get_data()
B
37 17 75
rsp_upgrade_to_pro::get_suggested_plugin()
B
38 17 70
rsp_upgrade_to_pro::validate()
B
37 16 72
burst_goal_statistics::get_goals_data()
B
32 13 116
burst_statistics::get_dashboard_widget_statistics()
A
36 13 90
burst_fields()
A
28
6 193
burst_goals::set_goal_field_values()
A
53 16 17
burst_sanitize_field()
A
49 15 32
burst_other_plugins_data()
A
42 13 52
rsp_upgrade_to_pro::__construct()
A
36 10 83
find_wordpress_base_path()
A
49 13 30
rsp_upgrade_to_pro::process_ajax_destination_clear()
A
44 12 43
burst_notices::count_plusones()
A
50 13 28
burst_statistics::get_sql_table_raw()
A
42 11 51
burst_notices::validate_function()
A
47 12 35
burst_do_action()
A
44 11 44
burst_admin::delete_all_burst_data()
A
39 9 69
rsp_upgrade_to_pro::print_install_modal()
A
40 9 67
burst_db_upgrade::init()
A
48 11 34
burst_rest_api_fields_get()
A
44 10 42
burst_statistics::get_insights_data()
A
41 9 54
burst_statistics::get_today_data()
A
37 7 83
burst_admin::deactivate_popup()
A
36 3 139
burst_is_pagebuilder_preview()
A
56 11 17
burst_get_posts()
A
41 8 60
burst_get_chunk_translations()
A
46 9 37
burst_rest_api_goal_fields_get()
A
47 9 33
burst_format_number()
A
49 9 31
burst_settings_rest_route()
A
35 1 140
burst_integration_plugin_is_active()
A
55 9 19
burst_create_missing_directories_recursively()
A
55 9 18
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_summary::summary_sql()
A
47 7 35
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_goal_fields()
A
35 1 123
burst_rest_api_goal_fields_set()
A
49 7 31
burst_update_option()
S
50 7 28
burst_statistics::get_devices_title_and_value_data()
S
40 4 72
burst_get_html_template()
S
51 7 25
burst_statistics::enqueue_burst_tracking_script()
S
46 6 39
rsp_upgrade_to_pro::process_ajax_activate_license()
S
54 7 20
burst_statistics::get_insights_date_modifiers()
S
46 6 35
burst_sanitize_referrer()
S
53 7 20
burst_statistics::get_where_clause_for_filters()
S
49 6 32
burst_summary::update_summary_table()
S
42 4 60
burst_summary::upgrade_summary_table_alltime()
S
49 6 29
burst_rest_api_options_set()
S
50 6 27
burst_create_goal_statistic()
S
52 6 26
burst_statistics::get_devices_subtitle_data()
S
42 4 55
burst_review::show_leave_review_notice()
S
43 3 69
burst_statistics::get_sql_select_for_metrics()
S
53 6 23
burst_goals::get_goals()
S
46 5 37
rsp_upgrade_to_pro::process_ajax_activate_plugin()
S
53 6 22
burst_db_upgrade::upgrade_goals_remove_columns()
S
53 6 22
burst_endpoint::endpoint_test_request()
S
47 5 36
burst_fix_rest_url_for_wpml()
S
57 6 18
burst_admin::listen_for_deactivation()
S
55 6 18
burst_admin::is_bf()
S
56 6 18
burst_goal_is_completed()
S
58 6 17
burst_admin::enqueue_assets()
S
61 7 9
burst_statistics::exclude_from_tracking()
S
58 6 15
burst_frontend::add_top_bar_menu()
S
50 5 29
burst_get_last_user_statistic()
S
51 5 28
burst_statistics::get_pages_data()
S
45 4 43
burst_statistics::get_sql_table()
S
60 6 11
burst_admin::setup_defaults()
S
52 5 25
burst_rest_api_goals_delete()
S
53 5 22
burst_db_upgrade::upgrade_drop_user_agent()
S
54 5 22
burst_rest_api_goals_add()
S
54 5 21
rsp_upgrade_to_pro::enqueue_assets()
S
53 5 20
burst_menu()
S
40 1 79
burst_statistics::get_device_name()
S
57 5 18
burst_dashboard_widget::enqueue()
S
50 4 33
burst_statistics::get_referrers_data()
S
44 3 48
burst_drop_empty_menu_items()
S
56 5 17
burst_schedule_cron()
S
59 5 16
burst_frontend::add_to_admin_bar_menu()
S
58 5 16
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_notices::is_burst_page()
S
60 5 13
burst_rest_track_hit()
S
60 5 12
burst_get_ip_address()
S
52 4 26
burst_panel()
S
53 4 26
BURST::instance()
S
54 4 23
burst_install_statistics_table()
S
47 2 52
burst_rest_api_goals_get()
S
54 4 21
burst_summary::is_summary_data()
S
55 4 21
burst_installer::download_plugin()
S
54 4 21
burst_db_upgrade::upgrade_empty_referrer_when_current_domain()
S
56 4 19
burst_db_upgrade::upgrade_strip_domain_names_from_entire_page_url()
S
56 4 19
burst_beacon_track_hit()
S
57 4 18
burst_db_upgrade::upgrade_goals_set_conversion_metric()
S
57 4 18
burst_statistics::get_metric_color()
S
51 3 31
burst_is_ip_blocked()
S
58 4 15
burst_goal_statistics::get_live_goals_data()
S
57 4 15
burst_admin::add_burst_admin_columns()
S
58 4 15
burst_admin::posts_orderby_total_pageviews()
S
64 5 9
burst_goals::get_goal_field_values()
S
57 4 15
burst_plugin_actions()
S
59 4 14
burst_sanitize_entire_page_url()
S
59 4 14
burst_sanitize_page_url()
S
59 4 14
burst_statistics::enqueue_burst_time_tracking_script()
S
61 4 12
BURST::includes()
S
52 3 27
burst_is_networkwide_active()
S
62 4 12
burst_get_completed_goals()
S
62 4 12
burst_goal_statistics::get_goal_id()
S
63 4 11
burst_add_option_menu()
S
52 3 26
burst_get_beacon_url()
S
62 4 11
burst_admin_notice()
S
58 3 21
burst_plugin_admin_scripts()
S
55 3 20
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_review::dismiss_review_notice_callback()
S
63 4 10
burst_installer::install()
S
66 4 9
burst_get_option()
S
64 4 9
burst_read_more()
S
59 3 15
burst_remove_empty_values()
S
66 4 8
burst_get_rest_url()
S
65 4 10
burst_get_current_post_id()
S
67 4 7
burst_create_statistic()
S
59 3 15
burst_statistics::get_compare_goals_data()
S
46 1 44
burst_get_template()
S
61 3 13
burst_endpoint::get_tracking_status_and_time()
S
60 3 13
burst_sprintf()
S
61 3 12
burst_installer::activate_plugin()
S
62 3 12
burst_admin::__construct()
S
50 2 27
burst_notice()
S
63 3 11
burst_summary::restart_update_summary_table_alltime()
S
61 3 11
burst_installer::get_plugin_info()
S
62 3 11
rsp_upgrade_to_pro::get_plugin_info()
S
62 3 11
burst_goals::get()
S
61 3 11
burst_goals::check_existing_goals()
S
62 3 11
burst_endpoint::test_tracking_status()
S
63 3 11
burst_install_goals_table()
S
54 2 24
burst_localized_settings()
S
52 2 23
burst_dashboard()
S
59 2 23
burst_statistics::get_compare_data()
S
48 1 37
burst_sanitize_field_type()
S
57 2 20
burst_install_sessions_table()
S
57 2 19
burst_install_goal_statistics_table()
S
57 2 18
burst_get_blocked_ips()
S
65 3 9
burst_summary::refresh_data()
S
64 3 10
burst_is_real_ip()
S
74 3 4
burst_admin_url()
S
77 3 3
burst_user_can_manage()
S
67 3 9
burst_is_logged_in_rest()
S
67 3 7
burst_sanitize_relative_url()
S
65 3 9
burst_required_values_set()
S
69 3 7
burst_rest_api_menu()
S
65 3 9
burst_sanitize_fingerprint()
S
70 3 6
burst_get_current_post_type()
S
65 3 10
burst_get_active_goals()
S
62 3 10
BURST::get_instance()
S
67 3 8
burst_user_can_view()
S
67 3 9
burst_summary::__construct()
S
67 3 7
burst_statistics::calculate_uplift_status()
S
64 3 10
burst_review::insert_dismiss_review()
S
57 1 30
burst_statistics::calculate_ratio()
S
64 3 9
burst_statistics::format_uplift()
S
67 3 7
burst_sanitize_uid()
S
71 3 6
burst_statistics::sanitize_metrics()
S
65 3 9
burst_sanitize_filters()
S
63 3 10
burst_admin::plugin_settings_link()
S
59 2 14
burst_admin::add_privacy_info()
S
61 2 13
burst_statistics::get_live_visitors_data()
S
59 2 13
burst_statistics::sanitize_interval()
S
63 2 12
burst_printf()
S
62 2 11
burst_get_first_time_visit()
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_upload_dir()
S
66 2 8
burst_sanitize_completed_goal_ids()
S
65 2 9
burst_admin::remove_plugin_from_array()
S
68 2 7
delete_post_pageviews_on_duplicate_product()
S
69 2 7
burst_db_upgrade::__construct()
S
66 2 8
burst_review::process_get_review_dismiss()
S
72 2 5
burst_has_open_basedir_restriction()
S
68 2 7
burst_statistics::get_nr_of_periods()
S
70 2 5
burst_statistics::sanitize_metric()
S
69 2 7
burst_goals::sanitize_status()
S
66 2 9
burst_frontend::render_burst_pageviews()
S
66 2 7
burst_statistics::convert_date_to_unix()
S
68 2 6
burst_dashboard_widget::__construct()
S
65 2 9
burst_dashboard_widget::add_burst_dashboard_widget()
S
66 2 9
burst_remove_fallback_notice()
S
74 2 5
burst_set_defaults()
S
66 2 8
burst_get_user_roles()
S
70 2 7
burst_intro()
S
69 2 7
burst_frontend::__construct()
S
63 2 10
burst_statistics::get_metrics()
S
59 1 15
burst_is_multisite_plugin_on_non_multisite_installation()
S
79 2 3
burst_statistics::calculate_time_per_session()
S
74 2 4
burst_get_active_goals_ids()
S
67 2 8
burst_array_filter_multidimensional()
S
70 2 6
burst_goals::sanitize_orderby()
S
63 2 10
burst_notices::dismiss_notice()
S
66 2 8
burst_summary::update_summary_table_today()
S
72 2 6
burst_notices::notices()
S
65 2 9
burst_summary::upgrade_completed()
S
69 2 7
burst_installer::__construct()
S
75 2 4
burst_statistics::calculate_percentage_uplift()
S
73 2 4
burst_goals::delete()
S
65 2 8
burst_endpoint::__construct()
S
68 2 7
burst_notices::__construct()
S
68 2 7
burst_sanitize_page_id()
S
80 2 3
burst_has_open_basedir_restriction()
S
68 2 7
burst_elementor_the_content()
S
68 2 7
burst_get_date_ranges()
S
61 1 14
burst_frontend::register_pageviews_block()
S
60 1 13
burst_db_upgrade::get_db_upgrades()
S
64 1 11
burst_update_statistic()
S
63 1 11
burst_dashboard_widget::this()
S
81 1 3
burst_endpoint::get_tracking_status()
S
76 1 4
burst_summary::summary_table_updated_yesterday()
S
69 1 6
BURST()
S
82 1 3
burst_statistics::__construct()
S
71 1 5
burst_statistics::calculate_conversion_rate()
S
79 1 3
burst_get_tracking_status()
S
82 1 3
burst_sanitize_first_time_visit()
S
81 1 3
burst_exclude_js()
S
74 1 5
burst\UserAgent\UserAgent::__construct()
S
74 1 5
burst_get_value()
S
80 1 3
burst_sanitize_time_on_page()
S
82 1 3
burst_is_pro()
S
81 1 3
burst\UserAgent\UserAgentParser::__invoke()
S
80 1 3
burst_installer::plugin_is_activated()
S
80 1 3
burst_admin::ms_remove_tables()
S
64 1 10
burst_clear_scheduled_hooks()
S
82 1 3
burst\UserAgent\UserAgent::browser()
S
82 1 3
burst_sanitize_time()
S
82 1 3
burst_endpoint::this()
S
80 1 3
burst_admin::this()
S
81 1 3
burst_sanitize_device_resolution()
S
79 1 3
burst_localize_date()
S
66 1 8
burst_complianz_add_cookies()
S
77 1 4
burst_format_milliseconds_to_readable_time()
S
65 1 9
burst_tracking_status_error()
S
80 1 3
burst_tracking_status_rest_api()
S
80 1 3
burst_sessions::__construct()
S
100 1 2
rsp_upgrade_to_pro::init()
S
64 1 9
burst_remote_file_exists()
S
64 1 10
burst_statistics::calculate_uplift()
S
75 1 4
burst_notices::this()
S
81 1 3
burst_register_track_hit_route()
S
66 1 10
burst_statistics::get_data()
S
68 1 6
BURST::hooks()
S
74 1 4
burst_goals::__construct()
S
79 1 3
burst_clear_elementor_cache()
S
81 1 3
burst_statistics::convert_unix_to_date()
S
67 1 7
burst_notices::get_lowest_possible_task_count()
S
75 1 4
burst_statistics::get_bounces()
S
71 1 5
burst_get_goals_script_url()
S
78 1 3
burst_update_session()
S
66 1 9
BURST::__construct()
S
91 1 2
burst_goal_statistics::init()
S
91 1 2
burst_goals::get_goal_setup()
S
69 1 6
burst_create_session()
S
66 1 9
burst_add_role_to_subsite()
S
74 1 5
burst_statistics::get_conversions()
S
71 1 5
burst_installer::plugin_is_downloaded()
S
79 1 3
burst_dashboard_widget::render_dashboard_widget()
S
82 1 3
burst_display_date()
S
79 1 3
burst_migrate_settings()
S
100 1 2
burst_tracking_status_beacon()
S
80 1 3
burst_goals::archive()
S
71 1 5
burst_installer::get_activation_slug()
S
66 1 9
burst_review::this()
S
81 1 3
burst\UserAgent\UserAgent::platform()
S
82 1 3
burst_notices::get()
S
74 1 5
burst_goal_statistics::__construct()
S
79 1 3
burst_exclude_inline_js()
S
77 1 4
burst\UserAgent\UserAgent::browserVersion()
S
82 1 3
burst\UserAgent\UserAgentParser::parse()
S
67 1 8
burst_frontend::this()
S
81 1 3