Two_Factor_Totp A

Total Complexity 54
Dependencies 4
Dependents 0
Total lines 792
Lines of code 452
Logical lines of code 165
Comment lines 247
Methods 26
Properties 1

Methods 26

Method Rating Maintainability Complexity Lines of code
user_two_factor_options()
A
34 3 159
rest_setup_totp()
S
51 6 25
base32_decode()
S
54 4 20
validate_code_for_user()
S
59 4 15
base32_encode()
S
58 4 15
pack64()
S
58 4 14
register_rest_routes()
S
46 1 49
get_authcode_valid_ticktime()
S
58 3 14
calc_totp()
S
56 2 16
rest_delete_totp()
S
58 2 15
abssort()
S
66 3 8
authentication_page()
S
57 1 22
enqueue_assets()
S
64 2 10
generate_qr_code_url()
S
58 1 15
is_valid_key()
S
68 2 7
validate_authentication()
S
68 2 7
__construct()
S
68 1 7
get_label()
S
79 1 3
get_alternative_provider_label()
S
79 1 3
get_user_totp_key()
S
78 1 3
set_user_totp_key()
S
79 1 3
delete_user_totp_key()
S
76 1 4
is_valid_authcode()
S
78 1 3
generate_key()
S
71 1 5
is_available_for_user()
S
75 1 4
uninstall_user_meta_keys()
S
72 1 6