Code Analysis: Two Factor Authentication 1.8.7

Function Rating Maintainability Complexity Lines of code
Simba_Two_Factor_Authentication::tfaVerifyCodeAndUser()
C
40 28 47
Simba_TFA::authUserFromLogin()
B
44 22 34
Simba_Two_Factor_Authentication::__construct()
B
38 20 59
Simba_Two_Factor_Authentication::tfaListEnableRadios()
B
48 20 25
TFA_Frontend::ajax()
B
43 18 40
Simba_Two_Factor_Authentication::php_error_to_logline()
B
49 19 24
Simba_Two_Factor_Authentication::current_codes_box()
B
34 13 100
Simba_TFA::check_code_for_user()
A
42 15 46
TFA_Frontend::wp_footer()
A
36 6 133
Simba_TFA::preAuth()
A
48 12 30
Simba_Two_Factor_Authentication::footer()
A
38 6 111
Simba_TFA::get_user_roles()
A
53 12 19
Simba_TFA::potentially_port_private_keys()
A
48 10 32
Simba_Two_Factor_Authentication::tfaInitLogin()
A
48 10 30
Simba_Two_Factor_Authentication::login_enqueue_scripts()
A
48 10 27
Simba_Two_Factor_Authentication::list_user_roles_checkboxes()
A
55 10 16
Simba_TFA::isActivatedForUser()
A
57 9 15
Simba_TFA::decrypt()
A
57 9 14
Simba_Two_Factor_Authentication::shared_ajax()
A
58 9 12
Simba_TFA::user_trust_token_valid()
S
59 8 12
Simba_Two_Factor_Authentication::before_login_form_generic()
S
49 7 25
Simba_Two_Factor_Authentication::print_private_keys()
S
52 7 24
Simba_Two_Factor_Authentication::settings_intro_notices()
S
53 7 22
Simba_TFA::getPanicCodesString()
S
55 7 17
Simba_TFA::user_property_active()
S
58 7 15
Base32::decode()
S
49 6 29
Base32::encode()
S
52 6 24
Simba_TFA::trust_device()
S
54 6 18
Simba_Two_Factor_Authentication::add_footer()
S
61 7 10
Simba_Two_Factor_Authentication::affwp_process_login_form()
S
54 5 18
Simba_TFA::generateOTP()
S
58 5 15
Simba_Two_Factor_Authentication::init()
S
66 6 7
Simba_Two_Factor_Authentication::tfaListAlgorithmRadios()
S
61 6 9
Simba_Two_Factor_Authentication::reset_private_key_and_emergency_codes()
S
57 5 15
Simba_Two_Factor_Authentication::advanced_settings_box()
S
50 4 29
Simba_Two_Factor_Authentication::tfaListXMLRPCStatusRadios()
S
60 5 11
Simba_Two_Factor_Authentication::register_two_factor_auth_settings()
S
54 4 20
Simba_TFA::random_bytes()
S
63 5 10
Simba_Two_Factor_Authentication::tfaListDefaultHMACRadios()
S
63 5 8
Simba_Two_Factor_Authentication::manageUsersCustomColumnTFA()
S
58 4 15
Simba_TFA::generateOTPsForLoginCheck()
S
58 4 14
Simba_TFA::__construct()
S
57 4 14
HOTP::generateByTimeWindow()
S
59 4 13
Simba_TFA::setUserHMACTypes()
S
60 4 13
Simba_TFA::set_cookie()
S
59 4 12
Simba_Two_Factor_Authentication::menu_entry_for_admin()
S
61 4 12
TFA_Frontend::tfa_user_settings_front()
S
53 3 26
HOTPResult::toDec()
S
56 3 18
Simba_TFA::isCallerActive()
S
69 4 6
Simba_TFA::get_iv_size()
S
65 4 8
Simba_TFA::encrypt()
S
64 4 8
Simba_Two_Factor_Authentication::reset_link()
S
63 4 8
Simba_Two_Factor_Authentication::check_possible_reset()
S
69 4 6
TFA_Frontend::save_settings_javascript_output()
S
63 4 9
Simba_TFA::getUserAlgorithm()
S
65 4 8
Simba_TFA_Provider_TOTP::get_simba_tfa()
S
68 4 6
Simba_TFA::hex2bin()
S
63 4 10
Simba_TFA::randString()
S
59 3 14
HOTP::generateByCounter()
S
59 3 13
Simba_Two_Factor_Authentication::tfa_show_hotp_off_sync_message()
S
57 2 18
TFA_Frontend::tfa_fetch_assort_vars()
S
56 2 16
HOTP::generateByTime()
S
67 3 7
Simba_Two_Factor_Authentication::load_frontend()
S
71 3 5
Simba_Two_Factor_Authentication::get_ajax_url()
S
65 3 8
Simba_Two_Factor_Authentication::current_otp_code()
S
63 3 9
Simba_TFA::changeEnableTFA()
S
68 3 6
Simba_Two_Factor_Authentication::addPluginSettingsLink()
S
59 2 14
Simba_Two_Factor_Authentication::tfa_qr_code_url()
S
61 2 11
Simba_Two_Factor_Authentication::do_shortcode_tag()
S
75 2 4
Simba_Two_Factor_Authentication::get_php_errors()
S
69 2 6
Simba_Two_Factor_Authentication::admin_menu()
S
66 2 7
Simba_TFA::encryptString()
S
63 2 10
Simba_TFA::addPrivateKey()
S
64 2 9
Simba_Two_Factor_Authentication::get_option()
S
68 2 7
Simba_TFA_Provider_TOTP::get_current_code()
S
71 2 5
TFA_Frontend::get_tfa()
S
79 2 3
HOTPResult::toHex()
S
70 2 7
Simba_TFA::user_get_trusted_devices()
S
72 2 5
TFA_Frontend::tfa_algorithm_info()
S
70 2 5
Base32::chunk()
S
67 2 7
Simba_TFA::changeUserAlgorithmTo()
S
63 2 10
Simba_TFA::getUserCounter()
S
66 2 8
Simba_Two_Factor_Authentication::tml_display()
S
77 1 4
Simba_Two_Factor_Authentication::affwp_login_fields_before()
S
82 1 3
TFA_Frontend::save_settings_button()
S
78 1 3
Simba_Two_Factor_Authentication::shortcode_when_not_logged_in()
S
82 1 3
Simba_TFA::hash()
S
75 1 4
Simba_TFA::user_set_trusted_devices()
S
79 1 3
TFA_Frontend::__construct()
S
72 1 5
Simba_Two_Factor_Authentication::admin_notice_insufficient_php()
S
76 1 3
TFA_Frontend::settings_enable_or_disable_output()
S
65 1 10
Simba_TFA::isRequiredForUser()
S
78 1 3
HOTPResult::toHOTP()
S
71 1 5
Simba_Two_Factor_Authentication::get_management_capability()
S
79 1 3
Simba_Two_Factor_Authentication::woocommerce_before_customer_login_form()
S
82 1 3
Simba_TFA::isActivatedByUser()
S
74 1 4
Simba_Two_Factor_Authentication::show_admin_warning()
S
78 1 3
HOTP::getTime()
S
80 1 3
Simba_TFA::decryptString()
S
63 1 9
Simba_Two_Factor_Authentication::show_admin_settings_page()
S
73 1 5
Simba_Two_Factor_Authentication::show_user_settings_page()
S
76 1 4
Simba_Two_Factor_Authentication::manage_users_columns_tfa()
S
75 1 4
HOTPResult::toString()
S
82 1 3
HOTPResult::__construct()
S
81 1 3
Simba_Two_Factor_Authentication::admin_notice_missing_mcrypt_and_openssl()
S
77 1 3
Simba_Two_Factor_Authentication::plugins_loaded()
S
69 1 7
Simba_Two_Factor_Authentication::reset_current_otp_link()
S
78 1 3
Simba_TFA::hashAndBin()
S
71 1 5
Simba_TFA::user_can_trust()
S
78 1 3
Simba_Two_Factor_Authentication::load_users_css()
S
67 1 9
Simba_TFA::getPrivateKeyPlain()
S
73 1 5
Simba_Two_Factor_Authentication::getTFA()
S
81 1 3