Simba_Two_Factor_Authentication_1 D

Total Complexity 362
Dependencies 8
Dependents 0
Total lines 1,664
Lines of code 805
Logical lines of code 602
Comment lines 545
Methods 77
Properties 13

Methods 77

Method Rating Maintainability Complexity Lines of code
tfaVerifyCodeAndUser()
D
34 42 60
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
43 15 38
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
log_incorrect_tfa_code_attempt()
A
50 9 27
shared_ajax()
A
55 9 16
is_activated_for_user()
A
58 9 14
user_trust_token_valid()
S
59 8 12
setup_secret_encryption()
S
56 7 17
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
get_config_keys()
S
51 4 27
enqueue_gutenberg_block_scripts()
S
59 5 12
include_template()
S
55 4 17
random_bytes()
S
63 5 10
manage_users_custom_column_tfa()
S
61 4 12
set_cookie()
S
59 4 12
tfa_list_xmlrpc_status_radios()
S
60 4 11
remove_incorrect_tfa_code_old_attempts()
S
62 4 11
is_caller_active()
S
71 4 5
update_option()
S
64 3 9
user_get_trusted_devices()
S
65 3 9
delete_option()
S
64 3 9
change_tfa_enabled_status()
S
68 3 6
show_user_profile()
S
67 3 6
get_option()
S
64 3 9
get_ajax_url()
S
65 3 8
load_frontend()
S
71 3 5
load_users_css()
S
64 3 10
set_configs()
S
68 3 7
get_configs()
S
64 3 10
notify_incorrect_tfa_code_attempts()
S
59 2 12
save_incorrect_tfa_code_attempts()
S
69 2 7
is_mcrypt_deprecated()
S
78 2 3
register_two_factor_auth_settings()
S
70 2 6
get_php_errors()
S
69 2 6
delete_configs()
S
71 2 6
user_can_trust()
S
79 1 3
set_plugin_translate_url()
S
81 1 3
get_settings_page_heading()
S
82 1 3
shortcode_when_not_logged_in()
S
82 1 3
set_settings_page_heading()
S
81 1 3
get_user_settings_page_slug()
S
82 1 3
get_incorrect_tfa_user_info()
S
78 1 3
includes_url()
S
78 1 3
includes_dir()
S
80 1 3
admin_menu()
S
81 1 3
set_user_settings_page_slug()
S
81 1 3
get_premium_version_url()
S
82 1 3
get_incorrect_tfa_attempt_info()
S
74 1 4
get_management_capability()
S
79 1 3
manage_users_columns_tfa()
S
75 1 4
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
set_site_wide_administration_url()
S
81 1 3
get_plugin_translate_url()
S
82 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
set_faq_url()
S
81 1 3
untrust_device()
S
68 1 7
show_admin_warning()
S
78 1 3
set_premium_version_url()
S
81 1 3
set_authentication_slug()
S
81 1 3