Code Analysis: Two Factor Authentication 1.14.17

Function Rating Maintainability Complexity Lines of code
Simba_Two_Factor_Authentication_1::tfaVerifyCodeAndUser()
D
34 41 60
Simba_Two_Factor_Authentication_1::authorise_user_from_login()
C
39 31 44
Simba_TFA_Frontend::ajax()
B
43 18 40
Simba_Two_Factor_Authentication_1::php_error_to_logline()
B
49 19 24
Simba_Two_Factor_Authentication_1::paint_enable_tfa_radios()
B
49 19 23
Simba_TFA_Provider_totp::check_code_for_user()
B
42 16 48
Simba_TFA_Provider_totp::current_codes_box()
A
35 12 89
Simba_Two_Factor_Authentication_1::__construct()
A
43 15 38
Simba_Two_Factor_Authentication_Plugin::__construct()
A
46 13 33
Simba_TFA_Provider_totp::admin_init()
A
54 13 18
Simba_Two_Factor_Authentication_1::pre_auth()
A
47 12 31
Simba_Two_Factor_Authentication_1::get_user_roles()
A
53 12 19
Simba_Two_Factor_Authentication_1::login_enqueue_scripts()
A
46 11 33
Simba_Two_Factor_Authentication_1::tfaInitLogin()
A
48 11 30
Simba_TFA_Provider_totp::potentially_port_private_keys()
A
48 10 32
Simba_Two_Factor_Authentication_1::list_user_roles_checkboxes()
A
55 10 16
Simba_Two_Factor_Authentication_1::log_incorrect_tfa_code_attempt()
A
50 9 27
Simba_TFA_Frontend::save_settings_javascript_output()
A
50 9 24
Simba_TFA_Provider_totp::potentially_encrypt_private_keys()
A
46 8 39
Simba_Two_Factor_Authentication_1::shared_ajax()
A
55 9 16
Simba_TFA_Provider_totp::decrypt()
A
57 9 14
Simba_Two_Factor_Authentication_1::is_activated_for_user()
A
58 9 14
simba_two_factor_authentication_activation()
A
53 8 22
Simba_Two_Factor_Authentication_1::user_trust_token_valid()
S
59 8 12
Simba_TFA_Provider_totp::add_footer()
S
59 8 11
Simba_TFA_Provider_totp::print_private_keys()
S
54 7 19
Simba_TFA_Provider_totp::get_emergency_codes_as_string()
S
54 7 18
Simba_Two_Factor_Authentication_1::setup_secret_encryption()
S
56 7 17
Base32::decode()
S
49 6 29
Simba_Two_Factor_Authentication_1::user_property_active()
S
59 7 14
Base32::encode()
S
52 6 24
Simba_TFA_Login_Form_Integrations::__construct()
S
52 6 24
Simba_TFA_Login_Form_Integrations::affwp_process_login_form()
S
55 6 17
Simba_TFA_Provider_totp::encryptString()
S
60 6 11
Simba_Two_Factor_Authentication_Plugin::show_admin_settings_page()
S
47 4 40
Simba_Two_Factor_Authentication_1::trust_device()
S
55 5 17
Simba_TFA_Provider_totp::reset_private_key_and_emergency_codes()
S
57 5 15
Simba_TFA_Provider_totp::generateOTP()
S
58 5 15
Simba_Two_Factor_Authentication_1::init()
S
66 6 7
Simba_Two_Factor_Authentication_1::should_enqueue_login_scripts()
S
58 5 14
Simba_TFA_Provider_totp::advanced_settings_box()
S
51 4 28
Simba_Two_Factor_Authentication_1::enqueue_gutenberg_block_scripts()
S
59 5 12
Simba_Two_Factor_Authentication_1::get_config_keys()
S
51 4 27
Simba_TFA_Encryption_Muplugin::insert_contents()
S
51 4 25
Simba_Two_Factor_Authentication_1::include_template()
S
55 4 17
Simba_Two_Factor_Authentication_1::random_bytes()
S
63 5 10
Simba_TFA_Provider_totp::generate_otps_for_login_check()
S
58 4 14
Simba_TFA_Provider_totp::translation_strings()
S
58 4 14
HOTP::generateByTimeWindow()
S
59 4 13
Simba_Two_Factor_Authentication_Plugin::menu_entry_for_admin()
S
61 4 12
Simba_Two_Factor_Authentication_1::manage_users_custom_column_tfa()
S
61 4 12
Simba_Two_Factor_Authentication_1::set_cookie()
S
59 4 12
Simba_Two_Factor_Authentication_1::tfa_list_xmlrpc_status_radios()
S
60 4 11
Simba_TFA_Provider_totp::print_algorithm_choice_radios()
S
60 4 11
Simba_Two_Factor_Authentication_1::remove_incorrect_tfa_code_old_attempts()
S
62 4 11
HOTPResult::toDec()
S
56 3 18
Simba_TFA_Provider_totp::get_user_otp_algorithm()
S
68 4 6
Simba_TFA_Provider_totp::get_iv_size()
S
65 4 8
Simba_TFA_Provider_totp::encrypt()
S
64 4 8
Simba_Two_Factor_Authentication_1::is_caller_active()
S
71 4 5
Simba_Two_Factor_Authentication_Plugin::add_plugin_settings_link()
S
58 3 15
Simba_TFA_Provider_totp::check_possible_reset()
S
69 4 6
Simba_TFA_Provider_totp::reset_link()
S
63 4 8
Simba_TFA_Provider_totp::print_default_hmac_radios()
S
63 4 8
Simba_TFA_Provider_totp::randString()
S
59 3 14
HOTP::generateByCounter()
S
59 3 13
Simba_TFA_Provider_totp::tfa_show_hotp_off_sync_message()
S
57 2 17
Simba_TFA_Frontend::tfa_fetch_assort_vars()
S
56 2 16
Simba_Two_Factor_Authentication_1::update_option()
S
64 3 9
Simba_TFA_Provider_totp::decryptString()
S
62 3 9
Simba_Two_Factor_Authentication_1::get_option()
S
64 3 9
Simba_Two_Factor_Authentication_1::delete_option()
S
64 3 9
Simba_Two_Factor_Authentication_1::get_ajax_url()
S
65 3 8
Simba_Two_Factor_Authentication_1::show_user_profile()
S
67 3 6
Simba_TFA_Provider_totp::current_otp_code()
S
63 3 9
Simba_Two_Factor_Authentication_1::load_users_css()
S
64 3 10
HOTP::generateByTime()
S
67 3 7
Simba_TFA_Provider_totp::plugins_loaded()
S
64 3 8
Simba_Two_Factor_Authentication_1::set_configs()
S
68 3 7
Simba_Two_Factor_Authentication_1::user_get_trusted_devices()
S
65 3 9
Simba_Two_Factor_Authentication_1::change_tfa_enabled_status()
S
68 3 6
Simba_Two_Factor_Authentication_1::get_configs()
S
64 3 10
Simba_Two_Factor_Authentication_1::load_frontend()
S
71 3 5
Simba_Two_Factor_Authentication_1::notify_incorrect_tfa_code_attempts()
S
59 2 12
Simba_TFA_Provider_totp::changeUserAlgorithmTo()
S
62 2 11
Simba_Two_Factor_Authentication_1::save_incorrect_tfa_code_attempts()
S
69 2 7
Simba_TFA_Provider_totp::__construct()
S
63 2 10
Simba_Two_Factor_Authentication_Plugin::menu_entry_for_user()
S
68 2 6
Simba_Two_Factor_Authentication_1::delete_configs()
S
71 2 6
Simba_Two_Factor_Authentication_1::is_mcrypt_deprecated()
S
78 2 3
Simba_TFA_Provider_totp::tfa_qr_code_url()
S
67 2 6
Simba_TFA_Provider_totp::getUserCounter()
S
73 2 4
Simba_TFA_Provider_totp::addPrivateKey()
S
64 2 9
Simba_TFA_Frontend::tfa_user_settings_front()
S
71 2 5
Base32::chunk()
S
67 2 7
Simba_TFA_Provider_totp::get_current_code()
S
71 2 5
HOTPResult::toHex()
S
70 2 7
Simba_Two_Factor_Authentication_1::register_two_factor_auth_settings()
S
70 2 6
Simba_Two_Factor_Authentication_1::get_php_errors()
S
69 2 6
Simba_TFA_Login_Form_Integrations::do_shortcode_tag()
S
75 2 4
Simba_TFA_Frontend::tfa_algorithm_info()
S
70 2 5
Simba_Two_Factor_Authentication_1::is_activated_by_user()
S
74 1 4
HOTPResult::toHOTP()
S
71 1 5
Simba_TFA_Provider_totp::getPrivateKeyPlain()
S
73 1 5
HOTPResult::__construct()
S
81 1 3
Simba_Two_Factor_Authentication_1::show_admin_warning()
S
78 1 3
Simba_TFA_Encryption_Muplugin::get_mu_plugin_dir()
S
82 1 3
Simba_TFA_Encryption_Muplugin::get_contents()
S
68 1 7
Simba_Two_Factor_Authentication_1::set_authentication_slug()
S
81 1 3
Simba_TFA_Provider_totp::setUserHMACTypes()
S
81 1 3
Simba_Two_Factor_Authentication_1::shortcode_when_not_logged_in()
S
82 1 3
Simba_Two_Factor_Authentication_Plugin::admin_notice_insufficient_php()
S
76 1 3
Simba_Two_Factor_Authentication_1::manage_users_columns_tfa()
S
75 1 4
Simba_Two_Factor_Authentication_1::get_controllers()
S
82 1 3
Simba_TFA_Encryption_Muplugin::muplugin_exists()
S
80 1 3
Simba_Two_Factor_Authentication_1::set_site_wide_administration_url()
S
81 1 3
Simba_Two_Factor_Authentication_1::user_set_trusted_devices()
S
79 1 3
Simba_TFA_Frontend::save_settings_button()
S
78 1 3
Simba_Two_Factor_Authentication_1::set_settings_page_heading()
S
81 1 3
Simba_TFA_Encryption_Muplugin::__construct()
S
75 1 4
Simba_Two_Factor_Authentication_1::get_incorrect_tfa_attempt_info()
S
74 1 4
Simba_Two_Factor_Authentication_1::get_totp_controller()
S
75 1 4
Simba_Two_Factor_Authentication_Plugin::admin_notice_missing_db_encryption_key()
S
75 1 3
Simba_TFA_Provider_totp::refresh_current_otp_link()
S
78 1 3
Simba_TFA_Encryption_Muplugin::get_file_path()
S
82 1 3
Simba_Two_Factor_Authentication_1::show_dashboard_user_settings_page()
S
81 1 3
Simba_Two_Factor_Authentication_1::includes_url()
S
78 1 3
Simba_Two_Factor_Authentication_1::set_premium_version_url()
S
81 1 3
Simba_Two_Factor_Authentication_Plugin::get_settings_link()
S
77 1 3
Simba_Two_Factor_Authentication_1::set_user_settings_page_slug()
S
81 1 3
Simba_Two_Factor_Authentication_1::get_settings_page_heading()
S
82 1 3
HOTP::getTime()
S
80 1 3
Simba_Two_Factor_Authentication_1::set_plugin_translate_url()
S
81 1 3
Simba_Two_Factor_Authentication_1::get_incorrect_tfa_user_info()
S
78 1 3
Simba_Two_Factor_Authentication_1::is_required_for_user()
S
78 1 3
Simba_TFA_Frontend::__construct()
S
65 1 9
Simba_Two_Factor_Authentication_1::get_premium_version_url()
S
82 1 3
Simba_TFA_Provider_totp::were_settings_saved()
S
82 1 3
Simba_TFA_Frontend::settings_enable_or_disable_output()
S
65 1 10
Simba_TFA_Provider_totp::hashAndBin()
S
71 1 5
Simba_Two_Factor_Authentication_1::get_faq_url()
S
82 1 3
Simba_Two_Factor_Authentication_1::includes_dir()
S
80 1 3
Simba_Two_Factor_Authentication_Plugin::plugins_loaded_load_textdomain()
S
67 1 8
Simba_TFA_Login_Form_Integrations::pb_login_form()
S
77 1 4
Simba_Two_Factor_Authentication_1::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_1::get_management_capability()
S
79 1 3
Simba_TFA_Provider_totp::hash()
S
75 1 4
Simba_Two_Factor_Authentication_1::admin_menu()
S
81 1 3
Simba_Two_Factor_Authentication_1::set_faq_url()
S
81 1 3
Simba_Two_Factor_Authentication_Plugin::admin_notice_missing_mcrypt_and_openssl()
S
77 1 3
Simba_TFA_Login_Form_Integrations::tml_display()
S
77 1 4
Simba_Two_Factor_Authentication_1::templates_dir()
S
80 1 3
Simba_Two_Factor_Authentication_1::get_plugin_translate_url()
S
82 1 3
HOTPResult::toString()
S
82 1 3
Simba_Two_Factor_Authentication_1::get_site_wide_administration_url()
S
82 1 3
Simba_Two_Factor_Authentication_1::untrust_device()
S
68 1 7
Simba_Two_Factor_Authentication_1::get_controller()
S
80 1 3
Simba_Two_Factor_Authentication_1::get_user_settings_page_slug()
S
82 1 3