Code Analysis: SlimStat Analytics 5.2.2

Function Rating Maintainability Complexity Lines of code
SlimStat\Utils\UADetector::get_browser()
D
9
111 280
wp_slimstat::slimtrack()
D
9
106 261
wp_slimstat_reports::raw_results_to_html()
D
17
75 184
wp_slimstat_reports::init()
D
9
16 824
wp_slimstat_admin::init()
D
20
48 190
wp_slimstat::slimstat_shortcode()
D
26
36 123
wp_slimstat_reports::show_rankings()
D
31 34 98
wp_slimstat::_get_content_info()
D
33 35 81
wp_slimstat::slimtrack_ajax()
D
29 33 111
SlimStat\Utils\UADetector::_get_os_version()
D
35 36 65
wp_slimstat_i18n::init_dynamic_strings()
D
11
2 562
wp_slimstat_db::parse_filters()
C
34 30 78
wp_slimstat_db::init()
C
28
23 119
wp_slimstat_db::get_single_where_clause()
C
35 26 74
wp_slimstat_db::init_filters()
C
36 23 80
SlimStat\Services\Browscap::update_browscap_database()
B
38 22 60
SlimStat\Utils\UADetector::_get_win_os_version()
B
40 21 62
wp_slimstat_admin::add_menus()
B
39 20 58
wp_slimstat::init()
B
38 20 55
wp_slimstat::_get_search_terms()
B
42 20 49
wp_slimstat_db::get_combined_where()
B
42 20 47
wp_slimstat_admin::add_menu_to_adminbar()
B
42 18 46
SlimStat\Services\GeoIP::download()
B
37 16 73
wp_slimstat_admin::manage_filters()
B
39 16 54
wp_slimstat_reports::report_pagination()
B
45 17 34
wp_slimstat_reports::show_chart()
A
35 12 102
wp_slimstat::_set_visit_id()
A
44 15 42
wp_slimstat_db::get_data_for_chart()
A
37 13 70
wp_slimstat_reports::get_resource_title()
A
43 14 46
wp_slimstat_reports::show_world_map()
A
40 13 55
wp_slimstat::enqueue_tracker()
A
44 14 37
SlimStat\Utils\UADetector::_get_webkit_info()
A
46 14 36
SlimStat\Utils\MaxMindDecoder::decodeByType()
A
47 13 36
wp_slimstat_reports::fs_url()
A
47 13 32
wp_slimstat_reports::show_group_by()
A
44 12 40
wp_slimstat::_get_client_info()
A
51 13 24
wp_slimstat_db::get_recent()
A
45 12 37
wp_slimstat_db::get_top()
A
50 11 26
wp_slimstat_reports::show_events()
A
45 10 36
wp_slimstat::rest_api_response()
A
46 10 36
wp_slimstat_db::get_visits_duration()
A
42 9 49
wp_slimstat_admin::init_data_for_column()
A
46 10 32
wp_slimstat_admin::update_tables_and_options()
A
44 9 43
Yoast_I18n_v3::retrieve_translation_details()
A
50 10 27
wp_slimstat_reports::_check_args()
A
45 8 45
wp_slimstat_db::get_top_aggr()
A
49 9 29
wp_slimstat::toggle_date_i18n_filters()
A
57 10 14
SlimStat\Services\Browscap::get_browser_from_browscap()
A
49 9 27
wp_slimstat_reports::get_filters_html()
A
52 9 19
wp_slimstat_admin::init_tables()
A
38 4 91
SlimStat\Services\Browscap::_get_user_agent()
A
57 9 16
Yoast_I18n_v3::promo_message()
A
50 8 29
wp_slimstat_reports::get_search_terms_info()
A
53 8 21
wp_slimstat_admin::add_dashboard_widgets()
A
54 8 19
wp_slimstat::_get_remote_ip()
A
54 8 18
SlimStat\Utils\MaxMindReader::get()
S
51 7 28
wp_slimstat::_update_row()
S
51 7 23
wp_slimstat_admin::get_template()
S
54 7 20
SlimStat\Utils\UADetector::_get_linux_os_version()
S
56 7 18
wp_slimstat_admin::rmdir()
S
57 7 17
SlimStat\Services\GeoService::getUserIP()
S
56 7 16
wp_slimstat_i18n::get_country_codes()
S
59 7 12
SlimStat\Utils\MaxMindDecoder::decodeBigUint()
S
50 6 26
SlimStat\Services\Browscap::get_browser()
S
52 6 23
SlimStat\Utils\MaxMindDecoder::decode()
S
48 5 35
wp_slimstat::_insert_row()
S
53 6 20
wp_slimstat_reports::report_header()
S
52 6 20
wp_slimstat_admin::contextual_help()
S
40 3 64
wp_slimstat_admin::initFeedback()
S
47 5 34
wp_slimstat::wp_slimstat_purge()
S
48 5 33
SlimStat\Utils\MaxMindReader::__construct()
S
49 5 32
wp_slimstat::_dtr_pton()
S
57 6 15
SlimStat\Utils\MaxMindReader::readNode()
S
50 5 29
wp_slimstat_reports::callback_wrapper()
S
59 6 13
SlimStat\Services\GeoService::download()
S
52 5 26
wp_slimstat::init_options()
S
37 1 85
wp_slimstat_db::get_visitors_summary()
S
47 4 35
SlimStat\Utils\MaxMindReader::findAddressInTree()
S
54 5 19
wp_slimstat::add_plugin_manual_download_link()
S
54 5 17
slimstat_widget::widget()
S
57 5 15
Yoast_I18n_v3::promo()
S
57 5 15
SlimStat\Utils\MaxMindDecoder::sizeFromCtrlByte()
S
57 5 15
Yoast_I18n_WordPressOrg_v3::set_defaults()
S
59 5 15
wp_slimstat::_is_blacklisted()
S
58 5 14
SlimStat\Utils\MaxMindReader::ipV4StartNode()
S
59 5 14
wp_slimstat::get_request_uri()
S
59 5 14
SlimStat\Services\GeoIP::getCity()
S
59 5 13
wp_slimstat::create_upload_directory()
S
61 5 11
SlimStat\Utils\MaxMindReader::findMetadataStart()
S
52 4 23
wp_slimstat_db::get_traffic_sources_summary()
S
46 3 35
wp_slimstat_db::get_top_outbound()
S
55 4 20
slimstat_widget::form()
S
48 3 34
SlimStat\Utils\MaxMindUtil::read()
S
60 4 14
SlimStat\Services\Browscap::init()
S
59 4 13
wp_slimstat_db::_get_sql_where()
S
59 4 13
Yoast_I18n_v3::__construct()
S
61 4 13
wp_slimstat_db::get_your_blog()
S
49 3 27
wp_slimstat_reports::inline_help()
S
63 4 11
SlimStat\Services\GeoService::checkDatabase()
S
55 3 20
wp_slimstat::wp_slimstat_update_geoip_database()
S
56 3 17
wp_slimstat_db::get_group_by()
S
56 3 17
wp_slimstat_admin::wp_slimstat_enqueue_scripts()
S
57 3 15
wp_slimstat_admin::add_lock_export_button()
S
62 4 10
wp_slimstat_admin::add_header()
S
70 4 5
wp_slimstat_admin::add_post_column()
S
65 4 7
SlimStat\Services\GeoIP::getCountry()
S
63 4 10
SlimStat\Services\GeoIP::getLocation()
S
63 4 10
wp_slimstat_admin::remove_spam()
S
63 4 9
wp_slimstat_admin::notices_handler()
S
63 4 9
wp_slimstat_admin::delete_pageview()
S
61 4 10
SlimStat\Utils\MaxMindReader::metadata()
S
62 3 13
SlimStat\Services\GeoIP::loader()
S
61 3 12
wp_slimstat_db::get_results()
S
60 3 12
wp_slimstat_db::count_records()
S
58 3 12
wp_slimstat_db::get_recent_outbound()
S
62 3 12
wp_slimstat_admin::add_column_header()
S
61 3 11
wp_slimstat_admin::show_message()
S
62 3 11
wp_slimstat_db::get_top_events()
S
55 2 20
wp_slimstat_i18n::get_string()
S
66 3 9
wp_slimstat::open_cors_admin_ajax()
S
67 3 7
wp_slimstat::rest_api_authorization()
S
64 3 9
Yoast_I18n_v3::get_promo_message()
S
70 3 6
wp_slimstat::add_defer_to_script_tag()
S
69 3 6
Yoast_I18n_v3::parse_translation_set()
S
65 3 10
SlimStat\Utils\MaxMindReader::startNode()
S
70 3 6
wp_slimstat::_get_mask_length()
S
66 3 8
wp_slimstat::_get_param_from_query_string()
S
67 3 7
wp_slimstat::update_content_type()
S
67 3 7
wp_slimstat_admin::_create_table()
S
65 3 9
wp_slimstat_reports::show_access_log()
S
70 3 6
wp_slimstat_db::get_var()
S
62 3 10
Yoast_I18n_v3::hide_promo()
S
63 3 10
wp_slimstat::string_to_array()
S
67 3 7
wp_slimstat_admin::update_geoip_database()
S
59 2 14
wp_slimstat_db::count_records_having()
S
60 2 13
SlimStat\Utils\MaxMindDecoder::decodePointer()
S
60 2 12
wp_slimstat_admin::handle_reset_layout()
S
60 2 12
wp_slimstat::register_rest_route()
S
50 1 27
wp_slimstat_db::get_overview_summary()
S
49 1 27
wp_slimstat_db::count_months_between()
S
62 2 11
wp_slimstat::_is_new_visitor()
S
62 2 11
SlimStat\Utils\MaxMindReader::resolveDataPointer()
S
63 2 11
wp_slimstat_db::get_data_size()
S
61 2 11
slimstat_uninstall()
S
55 1 20
wp_slimstat::get_lossy_url()
S
60 1 16
wp_slimstat_admin::init_environment()
S
68 2 7
SlimStat\Utils\MaxMindDecoder::verifySize()
S
70 2 7
SlimStat\Utils\MaxMindDecoder::decodeArray()
S
66 2 8
SlimStat\Services\GeoService::deleteDatabaseFile()
S
70 2 6
wp_slimstat_admin::styling_admin_menu()
S
74 2 5
wp_slimstat::get_schedule_interval()
S
67 2 8
SlimStat\Services\GeoIP::get_pack()
S
77 2 3
SlimStat\Services\GeoIP::database_exists()
S
69 2 7
wp_slimstat::update_option()
S
69 2 7
wp_slimstat::gethostbyaddr()
S
66 2 8
Yoast_I18n_v3::get_api_url()
S
70 2 6
Yoast_I18n_v3::find_or_initialize_translation_details()
S
66 2 8
Yoast_I18n_v3::init()
S
73 2 5
wp_slimstat::pro_is_installed()
S
69 2 7
SlimStat\Services\GeoService::getPack()
S
78 2 3
wp_slimstat_admin::wp_slimstat_stylesheet()
S
67 2 7
SlimStat\Utils\MaxMindDecoder::decodeMap()
S
65 2 9
SlimStat\Utils\MaxMindReader::close()
S
68 2 8
wp_slimstat_admin::check_geoip_database()
S
63 2 10
SlimStat\Services\GeoIP::get_database_file()
S
75 2 4
wp_slimstat::_get_language()
S
67 2 7
SlimStat\Utils\MaxMindDecoder::maybeSwitchByteOrder()
S
79 2 3
wp_slimstat::is_local_ip_address()
S
70 2 6
wp_slimstat::_get_value_without_checksum()
S
67 2 7
Yoast_I18n_v3::get_admin_locale()
S
72 2 6
wp_slimstat_db::get_max_and_average_pages_per_visit()
S
61 1 14
SlimStat\Utils\MaxMindMetadata::__construct()
S
60 1 13
wp_slimstat_db::count_bouncing_pages()
S
61 1 13
wp_slimstat_db::count_exit_pages()
S
61 1 13
wp_slimstat_admin::show_translate_notice()
S
61 1 12
SlimStat\Utils\MaxMindDecoder::isPlatformLittleEndian()
S
72 1 5
wp_slimstat::_get_value_with_checksum()
S
77 1 3
Yoast_I18n_WordPressOrg_v3::get_promo_message()
S
81 1 3
SlimStat\Utils\MaxMindDecoder::zeroPadLeft()
S
78 1 3
SlimStat\Services\GeoService::setPack()
S
77 1 4
slimstat_widget::__construct()
S
71 1 6
wp_slimstat::get_optout_html()
S
79 1 3
wp_slimstat_admin::wp_slimstat_include_layout()
S
79 1 3
wp_slimstat::register_widget()
S
80 1 3
SlimStat\Utils\MaxMindDecoder::decodeInt32()
S
72 1 5
Yoast_I18n_v3::get_dismiss_i18n_message_button()
S
68 1 7
SlimStat\Services\GeoService::setMaxmindLicense()
S
77 1 4
wp_slimstat_admin::wp_slimstat_userdefined_stylesheet()
S
78 1 3
Yoast_I18n_WordPressOrg_v3::get_dismiss_i18n_message_button()
S
81 1 3
SlimStat\Services\GeoIP::get_geo_ip_path()
S
76 1 3
Yoast_I18n_v3::translation_details()
S
70 1 6
Yoast_I18n_v3::set_api_url()
S
81 1 3
SlimStat\Utils\MaxMindDecoder::decodeDouble()
S
75 1 4
SlimStat\Services\GeoService::setUpdate()
S
77 1 4
Yoast_I18n_v3::is_default_language()
S
80 1 3
wp_slimstat_admin::wp_slimstat_pro()
S
79 1 3
wp_slimstat::_log_error()
S
71 1 5
SlimStat\Services\GeoService::clearScheduledEvent()
S
81 1 3
SlimStat\Utils\MaxMindDecoder::decodeFloat()
S
75 1 4
SlimStat\Services\GeoService::setEnableMaxmind()
S
77 1 4
wp_slimstat_admin::drop_tables()
S
68 1 7
SlimStat\Utils\MaxMindMetadata::__get()
S
82 1 3
wp_slimstat_reports::report_footer()
S
81 1 3
SlimStat\Services\GeoService::isGeoIPEnabled()
S
80 1 3
wp_slimstat_db::get_recent_events()
S
63 1 10
wp_slimstat_admin::wp_slimstat_include_config()
S
79 1 3
SlimStat\Utils\MaxMindDecoder::__construct()
S
71 1 6
Yoast_I18n_WordPressOrg_v3::__construct()
S
72 1 5
wp_slimstat::init_plugin()
S
76 1 4
Yoast_I18n_WordPressOrg_v3::set_api_url()
S
79 1 3
wp_slimstat_admin::deactivate()
S
77 1 4
SlimStat\Services\GeoService::isJsDelivrEnabled()
S
80 1 3
wp_slimstat::_base64_url_encode()
S
78 1 3
SlimStat\Utils\MaxMindDecoder::decodeBoolean()
S
79 1 3
SlimStat\Services\GeoService::getEnableMaxmind()
S
82 1 3
SlimStat\Services\GeoService::logError()
S
71 1 6
wp_slimstat_admin::show_latest_news()
S
79 1 3
SlimStat\Services\GeoService::isMaxMindEnabled()
S
80 1 3
SlimStat\Utils\MaxMindDecoder::decodeUint()
S
74 1 4
wp_slimstat_admin::new_blog()
S
74 1 5
wp_slimstat::date_i18n()
S
70 1 6
SlimStat\Utils\MaxMindMetadata::calculateNodeByteSize()
S
80 1 3
SlimStat\Services\GeoService::updateLastUpdateTime()
S
80 1 3
wp_slimstat_db::get_oldest_visit()
S
67 1 8
SlimStat\Services\GeoService::getMaxMindLicenseKey()
S
82 1 3
wp_slimstat_admin::wp_slimstat_include_view()
S
79 1 3
SlimStat\Utils\MaxMindMetadata::calculateSearchTreeSize()
S
80 1 3
SlimStat\Utils\MaxMindDecoder::decodeString()
S
82 1 3
wp_slimstat::_base64_url_decode()
S
77 1 3
slimstat_widget::update()
S
69 1 7