Code Analysis: Two Factor Authentication 1.12.2

Function Rating Maintainability Complexity Lines of code
Simba_Two_Factor_Authentication::tfaVerifyCodeAndUser()
C
38 33 52
Simba_Two_Factor_Authentication::authorise_user_from_login()
B
44 22 34
TFA_Frontend::ajax()
B
43 18 40
Simba_Two_Factor_Authentication::php_error_to_logline()
B
49 19 24
Simba_Two_Factor_Authentication::paint_enable_tfa_radios()
B
49 19 23
Simba_Two_Factor_Authentication::current_codes_box()
B
35 13 96
Simba_Two_Factor_Authentication::__construct()
A
44 16 39
Simba_TFA_Provider_TOTP::check_code_for_user()
A
42 15 46
Simba_TFA_Admin_Dashboard_Integration::show_user_settings_page()
A
53 13 19
Simba_Two_Factor_Authentication::pre_auth()
A
47 12 31
Simba_Two_Factor_Authentication::footer()
A
38 6 111
Simba_Two_Factor_Authentication::get_user_roles()
A
53 12 19
Simba_Two_Factor_Authentication::tfaInitLogin()
A
48 11 30
Simba_TFA_Provider_TOTP::potentially_port_private_keys()
A
48 10 32
Simba_Two_Factor_Authentication::login_enqueue_scripts()
A
47 10 29
Simba_Two_Factor_Authentication::list_user_roles_checkboxes()
A
55 10 16
TFA_Frontend::save_settings_javascript_output()
A
50 9 24
Simba_TFA_Provider_TOTP::decrypt()
A
57 9 14
Simba_Two_Factor_Authentication::is_activated_for_user()
A
58 9 14
Simba_Two_Factor_Authentication::shared_ajax()
A
58 9 12
Simba_Two_Factor_Authentication::user_trust_token_valid()
S
59 8 12
Simba_Two_Factor_Authentication::print_private_keys()
S
52 7 24
Simba_TFA_Provider_TOTP::getPanicCodesString()
S
55 7 17
Base32::decode()
S
49 6 29
Simba_Two_Factor_Authentication::user_property_active()
S
59 7 14
Base32::encode()
S
52 6 24
Simba_TFA_Login_Form_Integrations::__construct()
S
52 6 23
Simba_Two_Factor_Authentication::add_footer()
S
61 7 10
Simba_Two_Factor_Authentication::trust_device()
S
55 5 17
Simba_TFA_Login_Form_Integrations::affwp_process_login_form()
S
55 5 17
Simba_Two_Factor_Authentication::init()
S
66 6 7
Simba_TFA_Provider_TOTP::generateOTP()
S
58 5 15
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_TFA_Admin_Dashboard_Integration::register_two_factor_auth_settings()
S
53 4 22
Simba_Two_Factor_Authentication::include_template()
S
56 4 16
Simba_Two_Factor_Authentication::random_bytes()
S
63 5 10
Simba_TFA_Provider_TOTP::print_default_hmac_radios()
S
63 5 8
Simba_Two_Factor_Authentication::tfa_list_xmlrpc_status_radios()
S
61 5 10
Simba_TFA_Provider_TOTP::generate_otps_for_login_check()
S
58 4 14
HOTP::generateByTimeWindow()
S
59 4 13
Simba_Two_Factor_Authentication::set_cookie()
S
59 4 12
Simba_TFA_Admin_Dashboard_Integration::manage_users_custom_column_tfa()
S
61 4 12
Simba_Two_Factor_Authentication::print_algorithm_choice_radios()
S
60 4 11
Simba_TFA_Admin_Dashboard_Integration::menu_entry_for_admin()
S
62 4 11
HOTPResult::toDec()
S
56 3 18
Simba_Two_Factor_Authentication::check_possible_reset()
S
69 4 6
Simba_Two_Factor_Authentication::reset_link()
S
63 4 8
Simba_Two_Factor_Authentication::is_caller_active()
S
69 4 6
Simba_TFA_Provider_TOTP::get_user_otp_algorithm()
S
65 4 8
Simba_TFA_Provider_TOTP::get_iv_size()
S
65 4 8
Simba_TFA_Provider_TOTP::encrypt()
S
64 4 8
Simba_TFA_Provider_TOTP::setUserHMACTypes()
S
63 4 9
Simba_TFA_Provider_TOTP::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
Simba_Two_Factor_Authentication::change_tfa_enabled_status()
S
68 3 6
Simba_TFA_Provider_TOTP::plugins_loaded()
S
64 3 8
Simba_Two_Factor_Authentication::get_ajax_url()
S
65 3 8
Simba_Two_Factor_Authentication::load_frontend()
S
71 3 5
HOTP::generateByTime()
S
67 3 7
Simba_TFA_Admin_Dashboard_Integration::show_admin_settings_page()
S
67 3 7
Simba_Two_Factor_Authentication::current_otp_code()
S
62 3 10
Simba_TFA_Admin_Dashboard_Integration::__construct()
S
58 2 14
Simba_TFA_Admin_Dashboard_Integration::add_plugin_settings_link()
S
59 2 14
Simba_TFA_Provider_TOTP::changeUserAlgorithmTo()
S
62 2 11
Simba_Two_Factor_Authentication::user_get_trusted_devices()
S
72 2 5
HOTPResult::toHex()
S
70 2 7
Simba_Two_Factor_Authentication::get_php_errors()
S
69 2 6
Simba_TFA_Provider_TOTP::addPrivateKey()
S
64 2 9
TFA_Frontend::tfa_user_settings_front()
S
71 2 5
TFA_Frontend::tfa_algorithm_info()
S
70 2 5
Simba_TFA_Provider_TOTP::getUserCounter()
S
73 2 4
Simba_TFA_Provider_TOTP::encryptString()
S
63 2 10
Simba_TFA_Provider_TOTP::get_current_code()
S
71 2 5
Simba_Two_Factor_Authentication::is_mcrypt_deprecated()
S
78 2 3
Simba_TFA_Login_Form_Integrations::do_shortcode_tag()
S
75 2 4
Simba_TFA_Admin_Dashboard_Integration::admin_menu()
S
68 2 6
Simba_Two_Factor_Authentication::get_option()
S
68 2 7
Base32::chunk()
S
67 2 7
Simba_Two_Factor_Authentication::tfa_qr_code_url()
S
67 2 6
Simba_TFA_Provider_TOTP::getPrivateKeyPlain()
S
73 1 5
Simba_Two_Factor_Authentication::is_required_for_user()
S
78 1 3
Simba_Two_Factor_Authentication::admin_notice_missing_mcrypt_and_openssl()
S
77 1 3
Simba_TFA_Provider_TOTP::hash()
S
75 1 4
TFA_Frontend::settings_enable_or_disable_output()
S
65 1 10
Simba_TFA_Admin_Dashboard_Integration::load_users_css()
S
67 1 9
Simba_TFA_Provider_TOTP::decryptString()
S
63 1 9
Simba_Two_Factor_Authentication::plugins_loaded()
S
69 1 7
TFA_Frontend::save_settings_button()
S
78 1 3
Simba_Two_Factor_Authentication::get_management_capability()
S
79 1 3
HOTPResult::toHOTP()
S
71 1 5
HOTPResult::toString()
S
82 1 3
Simba_Two_Factor_Authentication::user_set_trusted_devices()
S
79 1 3
HOTP::getTime()
S
80 1 3
HOTPResult::__construct()
S
81 1 3
Simba_Two_Factor_Authentication::get_totp_controller()
S
82 1 3
Simba_Two_Factor_Authentication::user_can_trust()
S
79 1 3
Simba_TFA_Login_Form_Integrations::simba_tfa_login_enqueue_localize()
S
73 1 5
Simba_Two_Factor_Authentication::reset_current_otp_link()
S
78 1 3
Simba_TFA_Provider_TOTP::__construct()
S
72 1 5
Simba_Two_Factor_Authentication::shortcode_when_not_logged_in()
S
82 1 3
Simba_TFA_Provider_TOTP::hashAndBin()
S
71 1 5
TFA_Frontend::__construct()
S
72 1 5
Simba_Two_Factor_Authentication::admin_notice_insufficient_php()
S
76 1 3
Simba_TFA_Login_Form_Integrations::tml_display()
S
77 1 4
Simba_Two_Factor_Authentication::show_admin_warning()
S
78 1 3
Simba_Two_Factor_Authentication::is_activated_by_user()
S
74 1 4
Simba_TFA_Admin_Dashboard_Integration::manage_users_columns_tfa()
S
75 1 4