Simba_Two_Factor_Authentication D

Total Complexity 323
Dependencies 9
Dependents 0
Total lines 1,405
Lines of code 858
Logical lines of code 572
Comment lines 268
Methods 52
Properties 4

Methods 52

Method Rating Maintainability Complexity Lines of code
tfaVerifyCodeAndUser()
C
38 33 52
authorise_user_from_login()
B
44 22 34
php_error_to_logline()
B
49 19 24
paint_enable_tfa_radios()
B
49 19 23
current_codes_box()
B
35 13 96
__construct()
A
44 16 39
pre_auth()
A
47 12 31
footer()
A
38 6 111
get_user_roles()
A
53 12 19
tfaInitLogin()
A
48 11 30
login_enqueue_scripts()
A
47 10 29
list_user_roles_checkboxes()
A
55 10 16
is_activated_for_user()
A
58 9 14
shared_ajax()
A
58 9 12
user_trust_token_valid()
S
59 8 12
print_private_keys()
S
52 7 24
settings_intro_notices()
S
53 7 22
user_property_active()
S
59 7 14
add_footer()
S
61 7 10
trust_device()
S
55 5 17
reset_private_key_and_emergency_codes()
S
57 5 15
init()
S
66 6 7
advanced_settings_box()
S
50 4 29
random_bytes()
S
63 5 10
tfa_list_xmlrpc_status_radios()
S
61 5 10
set_cookie()
S
59 4 12
print_algorithm_choice_radios()
S
60 4 11
reset_link()
S
63 4 8
is_caller_active()
S
69 4 6
check_possible_reset()
S
69 4 6
tfa_show_hotp_off_sync_message()
S
57 2 18
load_frontend()
S
71 3 5
get_ajax_url()
S
65 3 8
change_tfa_enabled_status()
S
68 3 6
current_otp_code()
S
62 3 10
tfa_qr_code_url()
S
67 2 6
user_get_trusted_devices()
S
72 2 5
get_option()
S
68 2 7
get_php_errors()
S
69 2 6
is_mcrypt_deprecated()
S
78 2 3
is_required_for_user()
S
78 1 3
user_can_trust()
S
79 1 3
get_totp_controller()
S
82 1 3
show_admin_warning()
S
78 1 3
reset_current_otp_link()
S
78 1 3
admin_notice_missing_mcrypt_and_openssl()
S
77 1 3
admin_notice_insufficient_php()
S
76 1 3
is_activated_by_user()
S
74 1 4
get_management_capability()
S
79 1 3
user_set_trusted_devices()
S
79 1 3
plugins_loaded()
S
69 1 7
shortcode_when_not_logged_in()
S
82 1 3