Code Analysis: WebFacing™ – Storage, resource usage and errors in cPanel® 2.8

Function Rating Maintainability Complexity Lines of code
WebFacing\cPanel\Health::admin_load()
D
4
120 346
WebFacing\cPanel\Glance::admin_load()
D
28
32 123
WebFacing\cPanel\Plugin::init_data()
B
36 19 67
WebFacing\cPanel\Health::mail_accounts()
A
51 13 24
WebFacing\cPanel\Health::disk_space_test()
A
48 12 27
WebFacing\cPanel\Charts::admin_load()
A
38 9 71
WebFacing\cPanel\Plugin::admin_load()
A
44 9 43
WebFacing\cPanel\Plugin::cpanel_uapi_result()
A
55 10 16
WebFacing\cPanel\Plugin::load()
A
52 8 21
WebFacing\cPanel\Plugin::cpanel_usages()
S
51 6 25
WebFacing\cPanel\Health::email_routing_test()
S
47 5 36
mb_str_replace()
S
56 6 17
WebFacing\cPanel\Plugin::cpanel_subaccounts()
S
54 5 19
WebFacing\cPanel\Plugin::cpanel_errors()
S
55 5 17
WebFacing\cPanel\Health::errors_test()
S
48 4 31
WebFacing\cPanel\Health::https_only_test()
S
49 4 27
WebFacing\cPanel\Plugin::cpanel_dns_local()
S
67 4 6
WebFacing\cPanel\Plugin::cpanel_uapi()
S
65 4 7
WebFacing\cPanel\Plugin::cpanel_email_routing_local()
S
67 4 6
WebFacing\cPanel\Plugin::to_bytes()
S
57 3 14
WebFacing\cPanel\Health::info_usages()
S
53 2 23
WebFacing\cPanel\Health::mail_forwarders()
S
58 2 16
WebFacing\cPanel\Plugin::cpanel_email_mx_self()
S
69 3 6
WebFacing\cPanel\Plugin::email_to_utf8()
S
65 3 8
WebFacing\cPanel\Plugin::cpanel_databases_disk_used()
S
63 3 10
str_starts_with()
S
74 2 4
str_ends_with()
S
74 2 4
WebFacing\cPanel\Health::load()
S
67 2 8
array_key_first()
S
74 2 5
error_log()
S
68 2 7
WebFacing\cPanel\Plugin::get_usages()
S
64 2 9
WebFacing\cPanel\Plugin::cpanel_email_accounts()
S
67 2 7
WebFacing\cPanel\Plugin::cpanel_email_disk_usage()
S
67 2 7
WebFacing\cPanel\Plugin::cpanel_main_email_account()
S
62 1 11
str_contains()
S
79 1 3
WebFacing\cPanel\Plugin::cpanel_total_disk_limit()
S
80 1 3
WebFacing\cPanel\Plugin::cpanel_contact()
S
70 1 6
WebFacing\cPanel\Plugin::cpanel_plan()
S
78 1 3
_e()
S
80 1 3
WebFacing\cPanel\Plugin::cpanel_email_forwarders()
S
73 1 4
WebFacing\cPanel\Plugin::cpanel_version()
S
78 1 3
WebFacing\cPanel\Plugin::cpanel_maximum_emails()
S
78 1 3
WebFacing\cPanel\Charts::load()
S
74 1 4
WebFacing\cPanel\Plugin::cpanel_token()
S
70 1 5
_x()
S
79 1 3
WebFacing\cPanel\Glance::load()
S
89 1 2
WebFacing\cPanel\Plugin::cpanel_quotas()
S
78 1 3
WebFacing\cPanel\Plugin::cpanel_user_ids()
S
73 1 4
WebFacing\cPanel\Plugin::cpanel_total_disk_used()
S
80 1 3
WebFacing\cPanel\Plugin::cpanel_two_factor()
S
78 1 3
WebFacing\cPanel\Plugin::cpanel_user()
S
78 1 3
WebFacing\cPanel\Plugin::cpanel_main_domain()
S
78 1 3
mb_str_starts_with()
S
75 1 4
WebFacing\cPanel\Plugin::cpanel_user_created()
S
78 1 3
WebFacing\cPanel\Plugin::cpanel_dead_domains()
S
77 1 3
WebFacing\cPanel\Plugin::cpanel_databases()
S
78 1 3
WebFacing\cPanel\Plugin::cpanel_user_updated()
S
78 1 3
_ex()
S
79 1 3
_n()
S
78 1 3
mb_str_ends_with()
S
75 1 4
_nx()
S
78 1 3
WebFacing\cPanel\Plugin::nocache_cpanel_uapi_result()
S
71 1 5
WebFacing\cPanel\Plugin::cpanel_list_domains()
S
78 1 3
__()
S
79 1 3