Simba_Two_Factor_Authentication D

Total Complexity 285
Dependencies 7
Dependents 0
Total lines 1,274
Lines of code 613
Logical lines of code 477
Comment lines 403
Methods 59
Properties 10

Methods 59

Method Rating Maintainability Complexity Lines of code
tfaVerifyCodeAndUser()
D
37 35 56
authorise_user_from_login()
B
44 22 34
php_error_to_logline()
B
49 19 24
paint_enable_tfa_radios()
B
49 19 23
pre_auth()
A
47 12 31
get_user_roles()
A
53 12 19
login_enqueue_scripts()
A
46 11 32
tfaInitLogin()
A
48 11 30
list_user_roles_checkboxes()
A
55 10 16
__construct()
A
50 9 24
shared_ajax()
A
55 9 16
is_activated_for_user()
A
58 9 14
user_trust_token_valid()
S
59 8 12
user_property_active()
S
59 7 14
trust_device()
S
55 5 17
init()
S
66 6 7
should_enqueue_login_scripts()
S
58 5 14
register_two_factor_auth_settings()
S
53 4 22
include_template()
S
56 4 16
random_bytes()
S
63 5 10
set_cookie()
S
59 4 12
manage_users_custom_column_tfa()
S
61 4 12
tfa_list_xmlrpc_status_radios()
S
60 4 11
is_caller_active()
S
71 4 5
change_tfa_enabled_status()
S
68 3 6
load_frontend()
S
71 3 5
get_ajax_url()
S
65 3 8
user_get_trusted_devices()
S
65 3 9
get_option()
S
64 3 9
get_php_errors()
S
69 2 6
is_mcrypt_deprecated()
S
78 2 3
includes_dir()
S
80 1 3
get_faq_url()
S
82 1 3
shortcode_when_not_logged_in()
S
82 1 3
includes_url()
S
78 1 3
set_user_settings_page_slug()
S
81 1 3
get_user_settings_page_slug()
S
82 1 3
set_settings_page_heading()
S
81 1 3
get_settings_page_heading()
S
82 1 3
set_plugin_translate_url()
S
81 1 3
get_plugin_translate_url()
S
82 1 3
set_premium_version_url()
S
81 1 3
get_premium_version_url()
S
82 1 3
set_faq_url()
S
81 1 3
set_site_wide_administration_url()
S
81 1 3
user_set_trusted_devices()
S
79 1 3
get_site_wide_administration_url()
S
82 1 3
user_can_trust()
S
79 1 3
templates_dir()
S
80 1 3
show_dashboard_user_settings_page()
S
81 1 3
load_users_css()
S
67 1 9
untrust_device()
S
68 1 7
manage_users_columns_tfa()
S
75 1 4
get_totp_controller()
S
82 1 3
show_admin_warning()
S
78 1 3
is_required_for_user()
S
78 1 3
is_activated_by_user()
S
74 1 4
get_management_capability()
S
79 1 3
set_authentication_slug()
S
81 1 3