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

Function Rating Maintainability Complexity Lines of code
parse_user_agent()
D
24
49 148
burst_notices::get_notices_list()
D
24
37 183
burst_get_user_agent_data()
C
39 33 57
burst_wp_enqueue_media()
C
23
21 189
burst_track_hit()
C
33 26 93
burst_check_upgrade()
C
36 26 75
burst_fields()
B
24
9 265
burst_statistics::get_sql_select_for_metric()
B
39 21 58
rsp_upgrade_to_pro::api_request()
B
39 20 61
burst_rest_api_fallback()
B
39 20 61
burst_rest_api_fields_set()
B
37 19 69
burst_get_data()
B
36 18 79
rsp_upgrade_to_pro::get_suggested_plugin()
B
38 17 70
rsp_upgrade_to_pro::validate()
B
36 16 79
burst_statistics::get_sql_table_raw()
B
39 17 60
burst_goal_statistics::get_goals_data()
B
32 13 116
burst_statistics::get_dashboard_widget_statistics()
A
36 13 90
burst_mail_reports::send_report()
A
31 11 120
burst_sanitize_field()
A
48 16 34
burst_goal::get()
A
46 15 32
burst_db_upgrade::init()
A
45 14 43
burst_get_posts()
A
36 11 84
burst_other_plugins_data()
A
42 13 52
rsp_upgrade_to_pro::__construct()
A
36 10 83
burst_mailer::send_mail()
A
36 9 91
find_wordpress_base_path()
A
49 13 30
burst_notices::count_plusones()
A
50 13 28
rsp_upgrade_to_pro::process_ajax_destination_clear()
A
44 12 43
burst_notices::validate_function()
A
47 12 35
burst_sanitize_url()
A
47 12 33
burst_do_action()
A
44 11 44
rsp_upgrade_to_pro::print_install_modal()
A
40 9 70
burst_admin::deactivate_popup()
A
35 3 159
burst_review::__construct()
A
46 11 37
burst_ip_in_range()
A
46 11 36
burst_rest_api_fields_get()
A
44 10 42
burst_mail_reports::format_array_as_table()
A
46 10 40
burst_statistics::get_insights_data()
A
41 9 54
burst_frontend::enqueue_burst_tracking_script()
A
42 9 54
burst_is_pagebuilder_preview()
A
56 11 17
burst_get_chunk_translations()
A
46 9 37
burst_format_number()
A
49 9 31
burst_goal_fields()
A
33 1 147
burst_summary::update_summary_table()
A
37 4 101
burst_summary::summary_sql()
A
45 8 40
burst_mail_reports::maybe_send_report()
A
51 9 25
burst_goal::save()
A
46 8 36
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_rest_api_goals_set()
A
48 8 33
burst_statistics::get_sql_select_for_metrics()
A
52 8 23
rsp_upgrade_to_pro::process_ajax_package_information()
A
53 8 23
burst_review::show_leave_review_notice()
A
40 4 81
burst_menu()
A
37 3 96
burst_statistics::get_where_clause_for_filters()
A
47 7 35
burst_add_view_capability()
A
54 8 20
burst_add_manage_capability()
A
54 8 20
burst_goals::get_goals()
A
43 6 49
burst_admin::delete_all_burst_configuration()
A
44 6 49
rsp_upgrade_to_pro::process_ajax_install_plugin()
A
48 7 34
burst_exclude_plugins_for_rest_api()
A
56 8 18
burst_add_option_menu()
A
49 7 31
burst_get_hit_type()
A
56 8 16
burst_admin::delete_all_burst_data()
S
46 6 44
burst_update_option()
S
50 7 28
burst_statistics::get_devices_title_and_value_data()
S
40 4 72
burst_frontend::most_visited_posts()
S
42 5 56
burst_sanitize_referrer()
S
53 7 20
burst_statistics::get_insights_date_modifiers()
S
46 6 35
rsp_upgrade_to_pro::process_ajax_activate_license()
S
54 7 20
burst_statistics::get_today_data()
S
42 4 63
burst_rest_api_goals_add_predefined()
S
50 6 28
burst_admin::setup_defaults()
S
50 6 28
burst_rest_api_options_set()
S
50 6 27
burst_statistics::get_devices_subtitle_data()
S
42 4 55
burst_endpoint::endpoint_test_request()
S
46 5 39
burst_db_upgrade::upgrade_goals_remove_columns()
S
53 6 22
rsp_upgrade_to_pro::process_ajax_activate_plugin()
S
53 6 22
burst_db_upgrade::upgrade_bounces()
S
49 5 36
burst_admin::run_table_init_hook()
S
55 6 21
burst_sanitize_email_reports()
S
55 6 20
burst_schedule_cron()
S
57 6 19
burst_admin::listen_for_deactivation()
S
55 6 19
burst_admin::create_js_file()
S
47 5 34
burst_admin::is_bf()
S
56 6 18
burst_goal_is_completed()
S
57 6 17
burst_frontend::add_top_bar_menu()
S
50 5 31
burst_admin::add_top_bar_menu()
S
50 5 31
burst_frontend::exclude_from_tracking()
S
58 6 15
burst_admin::enqueue_assets()
S
62 7 9
burst_mail_reports::get_compare_row()
S
50 5 29
burst_error_log()
S
61 6 12
burst_statistics::get_sql_table()
S
60 6 11
burst_rest_api_goals_delete()
S
51 5 25
burst_summary::is_summary_data()
S
52 5 25
burst_goal::add_predefined()
S
52 5 25
burst_rest_api_goals_add()
S
53 5 23
burst_summary::upgrade_summary_table_alltime()
S
52 5 23
burst_db_upgrade::upgrade_drop_user_agent()
S
54 5 22
rsp_upgrade_to_pro::enqueue_assets()
S
53 5 20
burst_get_last_user_statistic()
S
56 5 18
burst_statistics::get_device_name()
S
57 5 18
burst_dashboard_widget::enqueue()
S
50 4 33
burst_drop_empty_menu_items()
S
56 5 17
burst_frontend::add_to_admin_bar_menu()
S
58 5 16
burst_admin::add_to_admin_bar_menu()
S
58 5 16
burst_admin_logged_in()
S
76 6 3
burst_frontend::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_statistics::get_compare_data()
S
46 3 42
burst_statistics::get_datatables_data()
S
45 3 42
burst_get_beacon_url()
S
62 5 11
burst_get_ip_address()
S
52 4 26
BURST::instance()
S
53 4 25
burst_rest_api_goals_get()
S
52 4 24
burst_install_statistics_table()
S
46 2 54
burst_admin::add_burst_admin_columns()
S
54 4 22
burst_rest_api_goal_fields_get()
S
54 4 21
burst_installer::download_plugin()
S
54 4 21
burst_create_goal_statistic()
S
56 4 20
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_db_upgrade::upgrade_goals_set_conversion_metric()
S
57 4 18
burst_beacon_track_hit()
S
57 4 18
burst_statistics::get_metric_color()
S
51 3 31
burst_goals_tracker::handle_hook()
S
57 4 16
burst_goal_statistics::get_live_goals_data()
S
56 4 16
burst_goals_tracker::add_dynamic_hooks()
S
58 4 16
burst_admin::posts_orderby_total_pageviews()
S
64 5 9
BURST::includes()
S
51 3 30
burst_is_ip_blocked()
S
58 4 15
burst_goals_tracker::get_goal_by_hook_name()
S
58 4 15
burst_goals::get_predefined_goals()
S
60 4 14
burst_plugin_actions()
S
59 4 14
burst_admin::__construct()
S
45 2 43
burst_admin::add_admin_column()
S
52 3 28
burst_mailer::send_mail_queue()
S
61 4 13
burst_frontend::enqueue_burst_time_tracking_script()
S
61 4 12
burst_mail_reports::test_report()
S
61 4 12
burst_is_networkwide_active()
S
62 4 12
burst_get_completed_goals()
S
62 4 12
burst_installer::install()
S
64 4 11
burst_goal_statistics::get_goal_id()
S
63 4 11
burst_integrations()
S
62 4 11
burst_prepare_tracking_data()
S
47 2 40
burst_check_media_months()
S
54 3 23
burst_get_media_months()
S
55 3 22
burst_endpoint::rest_api_test_request()
S
54 3 21
burst_plugin_admin_scripts()
S
55 3 20
BURST::setup_constants()
S
57 3 19
burst_get_option()
S
64 4 9
burst_create_statistic()
S
59 3 15
burst_review::dismiss_review_notice_callback()
S
63 4 10
burst_admin::maybe_delete_all_data()
S
59 3 15
burst_update_statistic()
S
58 3 15
burst_remove_empty_values()
S
66 4 8
burst_db_upgrade::__construct()
S
60 3 14
burst_statistics::get_compare_goals_data()
S
46 1 44
burst_endpoint::get_tracking_status_and_time()
S
60 3 13
burst_sanitize_filters()
S
61 3 13
burst_sprintf()
S
61 3 12
burst_installer::activate_plugin()
S
62 3 12
rsp_upgrade_to_pro::get_plugin_info()
S
62 3 11
burst_localized_settings()
S
51 2 26
burst_install_goals_table()
S
53 2 26
burst_endpoint::test_tracking_status()
S
63 3 11
burst_summary::restart_update_summary_table_alltime()
S
61 3 11
burst_installer::get_plugin_info()
S
62 3 11
burst_dashboard()
S
59 2 23
burst_sanitize_field_type()
S
56 2 21
burst_install_sessions_table()
S
56 2 19
burst_mailer::__construct()
S
47 1 34
burst_install_goal_statistics_table()
S
57 2 18
burst_frontend::__construct()
S
56 2 18
burst_admin_url()
S
78 3 3
burst_statistics::calculate_ratio()
S
64 3 9
burst_rest_api_menu()
S
65 3 9
burst_is_real_ip()
S
74 3 4
burst_user_can_manage()
S
67 3 9
burst_statistics::calculate_uplift_status()
S
64 3 10
burst_user_can_view()
S
67 3 9
burst_get_blocked_ips()
S
65 3 9
burst_is_logged_in_rest()
S
67 3 7
burst_sanitize_uid()
S
71 3 6
burst_sanitize_fingerprint()
S
70 3 6
burst_required_values_set()
S
69 3 7
burst_statistics::format_uplift()
S
67 3 7
burst_sanitize_relative_url()
S
65 3 9
burst_statistics::sanitize_metrics()
S
63 3 10
burst_admin::activation()
S
68 3 8
burst_summary::refresh_data()
S
64 3 10
burst_review::insert_dismiss_review()
S
57 1 30
burst_summary::__construct()
S
67 3 7
BURST::get_instance()
S
67 3 8
burst_set_bounce_for_session()
S
60 2 14
burst_admin::plugin_settings_link()
S
59 2 14
burst_admin::add_privacy_info()
S
60 2 14
burst_dashboard_widget::__construct()
S
61 2 13
burst_statistics::get_live_visitors_data()
S
59 2 13
burst_dashboard_widget::add_burst_dashboard_widget()
S
63 2 13
burst_statistics::sanitize_interval()
S
63 2 12
burst_goal::get_available_goal_types()
S
62 2 11
burst_get_first_time_visit()
S
62 2 11
burst_printf()
S
62 2 11
burst_endpoint::__construct()
S
64 2 11
burst_sanitize_ip_field()
S
63 2 11
burst_filter_cron_schedules()
S
57 1 19
burst_get_date_ranges()
S
59 1 17
burst_statistics::get_metrics()
S
57 1 17
burst_frontend::register_pageviews_block()
S
58 1 16
burst_installer::__construct()
S
71 2 6
burst_review::process_get_review_dismiss()
S
72 2 5
burst_admin::remove_plugin_from_array()
S
68 2 7
burst_upload_dir()
S
66 2 8
burst_get_user_roles()
S
70 2 7
burst_goal::__get()
S
73 2 5
burst_statistics::get_nr_of_periods()
S
70 2 5
burst_has_open_basedir_restriction()
S
68 2 7
burst_get_active_goals()
S
69 2 6
burst_update_for_multisite()
S
73 2 5
burst_goal::__set()
S
71 2 6
burst_notices::notices()
S
65 2 9
burst_notices::__construct()
S
68 2 7
burst_goal::sanitize_metric()
S
74 2 4
burst_goal::sanitize_type()
S
75 2 4
burst_summary::upgrade_completed()
S
71 2 6
burst_notices::dismiss_notice()
S
66 2 8
burst_statistics::sanitize_metric()
S
69 2 7
burst_statistics::convert_date_to_unix()
S
68 2 6
delete_post_pageviews_on_duplicate_product()
S
69 2 7
burst_mailer::log_mailer_errors()
S
74 2 5
burst_sanitize_page_id()
S
80 2 3
burst_goals::sanitize_orderby()
S
63 2 10
burst_frontend::render_burst_pageviews()
S
66 2 7
burst_sanitize_completed_goal_ids()
S
65 2 9
burst_summary::update_summary_table_today()
S
72 2 6
burst_goal::sanitize_status()
S
66 2 9
burst_goal::can_add_goal()
S
66 2 8
burst_goal::delete()
S
65 2 8
burst_has_open_basedir_restriction()
S
68 2 7
burst_remove_fallback_notice()
S
74 2 5
burst_set_defaults()
S
65 2 9
burst_elementor_the_content()
S
68 2 7
burst_is_multisite_plugin_on_non_multisite_installation()
S
79 2 3
burst_db_upgrade::get_db_upgrades()
S
62 1 14
burst_localize_date()
S
66 1 8
burst_complianz_add_cookies()
S
77 1 4
burst_installer::plugin_is_activated()
S
80 1 3
burst\UserAgent\UserAgent::__construct()
S
74 1 5
burst_tracking_status_error()
S
80 1 3
burst\UserAgent\UserAgentParser::__invoke()
S
80 1 3
BURST::__construct()
S
91 1 2
burst_get_tracking_status()
S
82 1 3
burst_upload_url()
S
69 1 6
burst_email_block::__construct()
S
91 1 2
burst_get_value()
S
80 1 3
burst_frontend::this()
S
81 1 3
burst_goals_tracker::__construct()
S
79 1 3
burst_add_role_to_subsite()
S
74 1 5
burst_mail_reports::__construct()
S
75 1 4
burst_remote_file_exists()
S
64 1 10
burst_statistics::convert_unix_to_date()
S
67 1 7
burst_installer::get_activation_slug()
S
65 1 9
BURST()
S
82 1 3
burst_sanitize_time()
S
82 1 3
burst_sessions::__construct()
S
100 1 2
burst\UserAgent\UserAgent::browserVersion()
S
82 1 3
burst_clear_scheduled_hooks()
S
82 1 3
burst_goal::__construct()
S
76 1 4
burst_statistics::get_bounces()
S
71 1 5
burst_tracking_status_rest_api()
S
80 1 3
burst_goals::__construct()
S
91 1 2
burst_exclude_inline_js()
S
77 1 4
burst_register_track_hit_route()
S
66 1 10
burst_is_pro()
S
81 1 3
burst_statistics::__construct()
S
100 1 2
burst_goal::has_setup_column()
S
72 1 5
burst_goal_statistics::init()
S
91 1 2
burst_dashboard_widget::render_dashboard_widget()
S
82 1 3
burst_email_block::get()
S
69 1 7
burst\UserAgent\UserAgent::platform()
S
82 1 3
BURST::hooks()
S
74 1 4
burst_update_session()
S
64 1 10
rsp_upgrade_to_pro::init()
S
64 1 9
burst_notices::this()
S
81 1 3
burst_format_milliseconds_to_readable_time()
S
65 1 9
burst_clear_elementor_cache()
S
81 1 3
burst_statistics::get_referrers_sql()
S
66 1 7
burst_statistics::get_conversions()
S
71 1 5
burst\UserAgent\UserAgentParser::parse()
S
67 1 8
burst_statistics::calculate_conversion_rate()
S
79 1 3
burst_exclude_js()
S
74 1 5
burst_sanitize_device_resolution()
S
79 1 3
burst_notices::get()
S
74 1 5
burst_statistics::get_data()
S
68 1 6
burst_summary::summary_table_updated_yesterday()
S
69 1 6
burst_review::this()
S
81 1 3
burst_endpoint::get_tracking_status()
S
76 1 4
burst_sanitize_time_on_page()
S
82 1 3
burst_notices::get_lowest_possible_task_count()
S
75 1 4
burst_sanitize_first_time_visit()
S
81 1 3
burst_display_date()
S
79 1 3
burst_create_session()
S
66 1 9
burst_goal_statistics::__construct()
S
79 1 3
burst_migrate_settings()
S
100 1 2
burst_tracking_status_beacon()
S
80 1 3
burst\UserAgent\UserAgent::browser()
S
82 1 3
burst_installer::plugin_is_downloaded()
S
79 1 3
burst_endpoint::this()
S
80 1 3
burst_admin::this()
S
80 1 3
burst_admin::ms_remove_tables()
S
64 1 10
burst_get_active_goals_ids()
S
75 1 4
burst_statistics::calculate_uplift()
S
75 1 4
burst_get_goals_script_url()
S
78 1 3
burst_dashboard_widget::this()
S
81 1 3