Simba_Two_Factor_Authentication_1 D

Total Complexity 301
Dependencies 7
Dependents 0
Total lines 1,358
Lines of code 643
Logical lines of code 496
Comment lines 443
Methods 62
Properties 12

Methods 62

Method Rating Maintainability Complexity Lines of code
tfaVerifyCodeAndUser()
D
36 36 56
authorise_user_from_login()
C
39 31 44
php_error_to_logline()
B
49 19 24
paint_enable_tfa_radios()
B
49 19 23
__construct()
A
46 12 31
pre_auth()
A
47 12 31
get_user_roles()
A
53 12 19
login_enqueue_scripts()
A
46 11 33
tfaInitLogin()
A
48 11 30
list_user_roles_checkboxes()
A
55 10 16
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 23
include_template()
S
55 4 17
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
load_frontend()
S
71 3 5
get_option()
S
64 3 9
get_ajax_url()
S
65 3 8
user_get_trusted_devices()
S
65 3 9
change_tfa_enabled_status()
S
68 3 6
get_php_errors()
S
69 2 6
is_mcrypt_deprecated()
S
78 2 3
user_can_trust()
S
79 1 3
get_plugin_translate_url()
S
82 1 3
set_plugin_translate_url()
S
81 1 3
get_settings_page_heading()
S
82 1 3
set_settings_page_heading()
S
81 1 3
get_user_settings_page_slug()
S
82 1 3
set_user_settings_page_slug()
S
81 1 3
includes_url()
S
78 1 3
includes_dir()
S
80 1 3
shortcode_when_not_logged_in()
S
82 1 3
set_premium_version_url()
S
81 1 3
set_faq_url()
S
81 1 3
get_premium_version_url()
S
82 1 3
admin_menu()
S
81 1 3
manage_users_columns_tfa()
S
75 1 4
load_users_css()
S
67 1 9
show_dashboard_user_settings_page()
S
81 1 3
is_required_for_user()
S
78 1 3
templates_dir()
S
80 1 3
is_activated_by_user()
S
74 1 4
get_site_wide_administration_url()
S
82 1 3
user_set_trusted_devices()
S
79 1 3
untrust_device()
S
68 1 7
get_management_capability()
S
79 1 3
set_site_wide_administration_url()
S
81 1 3
get_faq_url()
S
82 1 3
get_controller()
S
80 1 3
get_controllers()
S
82 1 3
get_totp_controller()
S
75 1 4
show_admin_warning()
S
78 1 3
set_authentication_slug()
S
81 1 3