SucuriScanTwoFactor D

Total Complexity 284
Dependencies 9
Dependents 2
Total lines 1,728
Lines of code 1,068
Logical lines of code 717
Comment lines 303
Methods 41
Properties 2

Methods 41

Method Rating Maintainability Complexity Lines of code
process_admin_bulk_action()
C
30 22 133
save_user_profile_section()
B
39 21 60
totp_verify()
A
42 14 46
is_enforced_for_user()
A
46 14 40
resolve_ajax_target_user()
A
46 14 35
on_profile_update_errors()
A
49 14 29
enqueue_profile_assets()
A
49 13 30
users_admin_section()
A
41 11 55
login_form_2fa()
A
40 10 60
authenticate()
A
42 10 56
verify_totp_code()
A
49 9 31
validate_secret_and_code_or_error()
A
51 9 24
render_user_profile_section()
A
46 8 37
bootstrap_session()
A
53 9 21
get_all_user_ids()
A
54 9 21
normalize_user_ids()
A
51 8 28
login_form_2fa_setup()
A
42 6 53
add_profile_error()
S
56 7 17
ensure_qr_script()
S
57 7 16
ajax_profile_reset()
S
51 6 25
topt()
S
51 5 27
process_successful_setup()
S
52 5 24
ajax_profile_enable()
S
52 5 22
current_user_block()
S
53 5 22
fetch_request_token()
S
58 5 15
update_login_session()
S
59 5 13
generate_setup_key_and_otpauth()
S
58 4 17
brand_login_logo()
S
60 4 12
enforce_user_agent()
S
65 4 8
get_login_session()
S
68 3 7
record_failed_attempt()
S
64 3 9
create_login_token()
S
58 2 14
clear_login_session()
S
74 2 5
extract_submitted_code()
S
73 2 4
complete_success_login()
S
64 2 10
store_user_totp_key()
S
67 2 7
add_hooks()
S
59 1 13
transient_key()
S
79 1 3
get_user_totp_key()
S
78 1 3
profile_status_snippet()
S
67 1 7
profile_setup_snippet()
S
64 1 9