Code Analysis: Multi Factor Authentication 1.3.0

Function Rating Maintainability Complexity Lines of code
Miniorange_Authentication::miniorange_auth_save_settings()
D
0
361 1,561
Miniorange_Password_2Factor_Login::miniorange_pass2login_redirect()
D
0
144 563
Mo2fConstants::langTranslate()
D
2
134 405
mo2f_create_2fa_form()
D
13
72 320
Miniorange_Password_2Factor_Login::miniorange_initiate_2nd_factor()
D
28
42 115
wpns_ajax::wpns_waf_rate_limiting_form()
C
28
23 172
Miniorange_Authentication::mo2f_update_db_check()
C
31 27 109
MO2f_Utility::mo2f_retrieve_user_temp_values()
C
35 28 83
Miniorange_Password_2Factor_Login::mo2f_check_username_password()
C
36 28 72
wpns_ajax::saveRateL()
B
31 19 130
FeedbackHandler::wpns_handle_feedback()
B
36 22 71
mo2f_get_push_notification_oobemail_prompt()
B
30 11 199
Miniorange_Password_2Factor_Login::mo2f_pass2login_push_oobemail_verification()
B
32 16 108
class_miniorange_2fa_strong_password::validatePassword()
B
49 21 24
Miniorange_Password_2Factor_Login::miniorange_pass2login_form_fields()
B
42 19 48
get_standard_premium_options()
B
28
2 278
Customer_Setup::validate_otp_token()
B
33 14 98
MO2f_Utility::set_user_values()
B
43 16 50
mo2f_get_otp_authentication_prompt()
B
36 12 107
wpns_ajax::wpns_waf_settings_form()
A
40 14 61
mo2f_configure_google_authenticator()
A
31 6 176
save_success_customer_config()
A
38 13 69
Miniorange_Authentication::mo2f_create_customer()
A
35 11 91
wpns_handle_feedback()
A
43 14 46
Mo2f_ajax_dashboard::mo2f_switch_functions()
A
46 14 39
Miniorange_Mobile_Login::mo2fa_default_login()
A
44 13 42
wpns_ajax::saveHWAF()
A
35 9 100
Miniorange_Mobile_Login::miniorange_login_form_fields()
A
46 13 37
Miniorange_Authentication::__construct()
A
37 10 82
wpns_ajax::wpns_captcha_settings()
A
46 13 36
mo2f_get_qrcode_authentication_prompt()
A
34 5 145
mo2f_configure_google_authenticator_onprem()
A
31 2 187
Google_auth_onpremise::_base32Decode()
A
46 12 35
mo2f_configure_kba_questions()
A
35 3 150
wpns_ajax::wpns_handle_bf_configuration_form()
A
49 11 29
mo2f_decode_2_factor()
A
39 8 72
mo2f_update_and_sync_user_two_factor()
A
45 10 42
mo2f_get_activated_second_factor()
A
46 10 37
mo2f_show_2FA_configuration_screen()
A
48 10 37
mo2f_configure_authy_authenticator()
A
38 6 96
Miniorange_Authentication::mo2f_create_user()
A
41 8 62
_register_customer()
A
44 9 44
Miniorange_twoFactor::miniorange_reset_save_settings()
A
49 10 29
mo2f_get_forgotphone_form()
A
41 6 83
wpns_ajax::wpns_login_security()
A
53 10 23
mo2f_get_kba_authentication_prompt()
A
39 5 96
Google_auth_onpremise::createSecret()
A
51 9 26
class_miniorange_2fa_strong_password::mo2f_isStrongPasswd()
A
52 9 23
mo2f_test_kba_security_questions()
A
39 3 105
Miniorange_Password_2Factor_Login::mo2f_pass2login_kba_verification()
A
42 6 51
mo2f_collect_attributes()
A
48 7 35
wpns_ajax::wpns_ip_lookup()
A
42 6 50
Miniorange_twoFactor::mo_wpns_widget_menu()
A
48 7 31
Miniorange_Password_2Factor_Login::mo2f_pass2login_otp_verification()
S
44 6 44
MocURL::send_email_alert()
S
43 6 44
wpns_ajax::savelfi()
S
43 5 58
Miniorange_twoFactor::mo_show_message()
S
47 5 58
wpns_ajax::savesql()
S
43 5 57
wpns_ajax::savexss()
S
43 5 57
wpns_ajax::saverce()
S
43 5 57
wpns_ajax::saverfi()
S
43 5 57
Miniorange_Password_2Factor_Login::mo2f_pass2login_mobile_verification()
S
45 6 41
mo2f_show_2FA_test_screen()
S
54 7 24
miniorange_2_factor_user_roles()
S
48 6 38
Customer_Setup::send_otp_token()
S
44 5 49
mo_2f_ajax::mo_two_factor_ajax()
S
58 7 16
mo_2f_ajax::mo2f_unlimitted_user()
S
50 6 31
wpns_ajax::wpns_update_plan()
S
58 7 15
Miniorange_Mobile_Login::mo_2_factor_show_wp_login_form()
S
46 4 60
Miniorange_Authentication::mo_auth_deactivate()
S
60 7 12
mo_2f_ajax::mo2f_role_based_2_factor()
S
53 6 23
Miniorange_Password_2Factor_Login::mo2fa_pass2login()
S
54 6 21
Customer_Setup::submit_contact_us()
S
47 5 33
mo2f_rba_description()
S
44 3 62
mo_2f_ajax::mo2f_save_email_verification()
S
49 5 32
Miniorange_Authentication::mo2f_save_2_factor_method()
S
48 5 31
Mo2fDB::generate_tables()
S
47 4 45
MO2f_Utility::mo2f_decode_2_factor()
S
46 4 43
mo2f_get_device_form()
S
42 1 88
redirect_user_to()
S
61 6 12
Miniorange_Password_2Factor_Login::mo_2_factor_pass2login_show_wp_login_form()
S
52 5 26
Customer_Setup::send_email_alert()
S
45 4 40
display_customer_registration_forms()
S
47 3 54
mo2f_personalization_description()
S
46 3 54
MoWpnsDB::update_transaction_table()
S
53 5 23
WPNS_unlimittedUser::wpns_handle_save()
S
53 5 23
MO2f_Utility::mo2f_get_cookie_values()
S
54 5 20
mo2f_get_user_2ndfactor()
S
55 5 20
wpns_ajax::wpns_strong_password_settings()
S
55 5 19
Miniorange_twoFactor::mo2f_mapped_email_column_content()
S
56 5 19
mo2f_shortcode_description()
S
46 3 49
Google_auth_onpremise::verifyCode()
S
55 5 18
wpns_handle_support_form()
S
56 5 18
Mo2f_ajax_dashboard::mo2f_handle_login_enable()
S
50 4 30
Miniorange_Password_2Factor_Login::miniorange_pass2login_start_session()
S
65 6 8
Miniorange_Password_2Factor_Login::miniorange_pass2login_check_otp_status()
S
69 6 6
Miniorange_Authentication::mo2f_get_qr_code_for_mobile()
S
50 4 29
MO2f_Utility::unset_session_variables()
S
61 5 13
MO2f_Utility::unset_cookie_variables()
S
60 5 13
Mo2f_ajax_dashboard::mo2f_handle_waf_enable()
S
50 4 27
mo2f_register_profile()
S
61 5 12
MocURL::submit_contact_us()
S
51 4 26
Miniorange_twoFactor::mo_reset_2fa_for_users_by_admin()
S
53 4 26
Miniorange_Password_2Factor_Login::mo2f_validate_soft_token()
S
52 4 23
Miniorange_Authentication::mo2f_get_GA_parameters()
S
53 4 22
mo2f_test_kba_security_questions()
S
48 2 51
show_2_factor_custom_design_options()
S
45 1 64
Mo2f_ajax_dashboard::mo2f_handle_backup_enable()
S
55 4 19
Mo2f_ajax_dashboard::mo2f_handle_block_enable()
S
55 4 19
MO2f_Utility::decrypt_data()
S
55 4 18
mo2f_method_display_name()
S
58 4 16
Mo2f_ajax_dashboard::mo2f_handle_notif_enable()
S
57 4 16
Mo2f_ajax_dashboard::mo2f_handle_2fa_enable()
S
58 4 15
Google_auth_onpremise::timingSafeEquals()
S
58 4 15
class_miniorange_2fa_strong_password::woocommerce_password_protection()
S
62 5 10
FeedbackHandler::mo_wpns_feedback_actions()
S
63 5 10
wpns_handle_enable_rename_login_url()
S
59 4 14
Miniorange_Mobile_Login::mo_auth_error_message()
S
59 4 14
Mo2f_ajax_dashboard::mo2f_handle_report_enable()
S
59 4 14
MO2f_Utility::mo2f_get_hidden_email()
S
58 4 14
Mo2f_ajax_dashboard::mo2f_handle_malware_enable()
S
60 4 13
mo_2f_ajax::CheckEVStatus()
S
61 4 13
mo2f_display_test_2fa_notification()
S
50 2 42
Customer_Setup::create_customer()
S
50 3 27
MoWpnsDB::mo_plugin_activate()
S
62 4 12
MO2f_Utility::mo2f_check_number_length()
S
63 4 11
mo2f_collect_device_attributes_handler()
S
48 2 41
miniorange_check_if_2fa_enabled_for_roles()
S
64 4 11
Miniorange_Password_2Factor_Login::remove_current_activity()
S
45 1 55
_get_current_customer()
S
52 3 24
Mo2fDB::database_table_issue()
S
54 3 23
MocURL::callAPI()
S
53 3 22
wpns_ajax::backupHtaccess()
S
55 3 19
wpns_ajax::limitAttack()
S
59 3 17
wpns_ajax::saveWAF()
S
58 3 17
MO2f_Utility::get_all_plugins_installed()
S
57 3 17
Miniorange_twoFactor::feedback_request()
S
56 3 17
Mo2fDB::update_user_details()
S
57 3 16
Mo2fDB::save_user_login_details()
S
57 3 16
mo2f_is_customer_registered()
S
65 4 9
Miniorange_Mobile_Login::miniorange_login_start_session()
S
72 4 5
Miniorange_Mobile_Login::remove_current_activity()
S
47 1 45
Google_auth_onpremise::mo_GAuth_get_details()
S
58 3 15
Miniorange_twoFactor::miniorange_reset_users()
S
64 4 8
wpns_handle_enable_recaptcha()
S
59 3 14
mo2f_configure_for_mobile_suppport_kba()
S
52 1 44
wpns_handle_recaptcha_configuration()
S
60 3 13
Mo2fDB::mo_plugin_activate()
S
62 3 13
_verify_customer()
S
62 3 11
MO2f_Utility::check_if_email_is_already_registered()
S
62 3 11
wpns_handle_bf_configuration_form()
S
61 3 11
wpns_ajax::disableRL()
S
53 2 23
Customer_Setup::guest_audit()
S
55 2 19
Mo2f_ajax_dashboard::mo2f_handle_all_enable()
S
56 2 19
Customer_Setup::get_customer_key()
S
55 2 18
mo2f_test_google_authy_authenticator()
S
53 1 33
Two_Factor_Setup::mo2f_update_userinfo()
S
56 2 18
mo2f_test_google_authy_authenticator()
S
53 1 33
Miniorange_Authentication::mo2f_delete_mo_options()
S
50 1 32
Two_Factor_Setup::mo_create_user()
S
58 2 16
Mo2f_Api::make_curl_call()
S
58 2 16
Miniorange_Rba_Attributes::mo2f_validate_google_auth()
S
58 2 16
Miniorange_Rba_Attributes::mo2f_evaluate_risk()
S
58 2 16
Miniorange_twoFactor::__construct()
S
56 2 16
Mo2fDB::get_user_login_details()
S
68 3 6
wpns_handle_custom_template()
S
67 3 7
mo2f_Logger::log_404()
S
65 3 8
class_miniorange_2fa_strong_password::woocommerce_password_edit_account()
S
62 3 10
MO2f_Utility::mo2f_check_empty_or_null()
S
70 3 6
Miniorange_Password_2Factor_Login::deniedMessage()
S
71 3 6
class_miniorange_2fa_strong_password::is_validPassword()
S
66 3 8
mo2f_get_binary_equivalent_2fa_lite()
S
66 3 10
Miniorange_Rba_Attributes::mo2f_google_auth_service()
S
58 2 15
Google_auth_onpremise::getCode()
S
56 2 15
Miniorange_Mobile_Login::mo_auth_success_message()
S
65 3 9
wpns_handle_bf_enable_form()
S
65 3 8
Miniorange_Password_2Factor_Login::miniorange_pass2login_check_push_oobemail_status()
S
71 3 6
wpns_handle_admin_email()
S
63 3 10
Mo2fDB::get_user_detail()
S
68 3 6
MO2f_Utility::check_if_request_is_from_mobile_device()
S
67 3 7
Miniorange_Rba_Attributes::mo2f_register_rba_profile()
S
58 2 15
wpns_handle_notify_admin_on_ip_block()
S
65 3 8
wpns_handle_notify_unusual_activity()
S
65 3 8
wpns_handle_enable_2fa()
S
65 3 8
wpns_handle_enable_strong_password()
S
64 3 9
Two_Factor_Setup::mo_check_user_already_exist()
S
59 2 14
Miniorange_twoFactor::mo_wpns_deactivate()
S
60 2 14
Two_Factor_Setup::register_mobile()
S
59 2 14
Two_Factor_Setup::mo2f_get_userinfo()
S
59 2 14
MoWpnsDB::insert_transaction_audit()
S
60 2 13
Miniorange_Rba_Attributes::mo2f_get_app_secret()
S
60 2 13
Miniorange_Password_2Factor_Login::mo2f_collect_device_attributes_for_authenticated_user()
S
61 2 13
Miniorange_Authentication::mo2f_delete_user_details()
S
61 2 13
wpns_ajax::wpns_whitelist_ip()
S
62 2 12
Two_Factor_Setup::check_mobile_status()
S
62 2 12
Two_Factor_Setup::register_kba_details()
S
59 2 12
wpns_ajax::wpns_handle_IP_blocking()
S
62 2 12
Mo2fDB::mo2f_get_all_user_2fa_methods()
S
62 2 11
Miniorange_Rba_Attributes::mo2f_collect_attributes()
S
61 2 11
Miniorange_Mobile_Login::mo2f_redirectto_wp_login()
S
62 2 11
Miniorange_twoFactor::mo_wpns_activate()
S
54 1 21
Miniorange_twoFactor::includes()
S
57 1 20
Miniorange_Password_2Factor_Login::miniorange_pass2login_footer_form()
S
100 1 19
Customer_Setup::get_customer_transactions()
S
56 1 19
Miniorange_Mobile_Login::miniorange_login_footer_form()
S
62 1 17
Miniorange_Password_2Factor_Login::miniorange_pass2login_reconfig_kba()
S
72 2 6
MO2f_Utility::is_curl_installed()
S
69 2 7
Miniorange_Password_2Factor_Login::miniorange_pass2login_check_trusted_device_status()
S
72 2 6
MO2f_Utility::random_str()
S
62 2 10
Google_auth_onpremise::mo2f_GAuth_get_site_option()
S
67 2 8
Miniorange_Mobile_Login::mo_2_factor_show_login()
S
63 2 10
MoWpnsHandler::get_failed_attempts_count()
S
65 2 10
Miniorange_twoFactor::mo_wpns_settings_style()
S
68 2 7
Miniorange_twoFactor::mo_wpns_settings_script()
S
66 2 8
Mo2fDB::check_if_column_exists()
S
65 2 9
Google_auth_onpremise::random_str()
S
66 2 8
class_miniorange_2fa_strong_password::woocommerce_password_registration_protection()
S
69 2 6
Miniorange_Password_2Factor_Login::miniorange_pass2login_check_kba_status()
S
72 2 6
Miniorange_Password_2Factor_Login::miniorange_pass2login_check_mobile_status()
S
72 2 6
_reset_password()
S
69 2 6
mo2f_Logger::log_403()
S
69 2 6
MocURL::create_customer()
S
58 1 15
Mo2f_Api::mo2f_wp_remote_post()
S
64 2 9
validate_email()
S
78 2 3
wpns_handle_enable_2fa_login_prompt()
S
69 2 6
WPNS_unlimittedUser::wpns_two_fa_unlimittedUser()
S
70 2 7
MoWpnsMessages::showMessage()
S
66 2 8
MO2f_Utility::get_plugin_name_by_identifier()
S
72 2 5
Miniorange_Password_2Factor_Login::miniorange_pass2login_check_forgotphone_status()
S
72 2 6
MO2f_Utility::unset_temp_user_details_in_table()
S
63 2 10
Miniorange_Password_2Factor_Login::miniorange_pass2login_reconfig_google()
S
72 2 6
mo2f_backup_yearly_standard_pricing()
S
63 1 14
mo2f_login_yearly_standard_pricing()
S
63 1 14
Mo2f_Api::get_http_header_array()
S
60 1 14
mo2f_waf_yearly_standard_pricing()
S
63 1 14
MocURL::send_otp_token()
S
59 1 14
mo2f_scanner_yearly_standard_pricing()
S
63 1 14
MocURL::validate_otp_token()
S
60 1 13
MocURL::createAuthHeader()
S
60 1 13
MoWpnsDB::insert_email_audit()
S
62 1 13
Customer_Setup::check_customer()
S
61 1 12
Miniorange_Mobile_Login::mo_2_factor_show_wp_login_form_when_phonelogin_enabled()
S
100 1 12
MocURL::mo_wpns_forgot_password()
S
62 1 11
Miniorange_Authentication::mo_auth_error_message()
S
67 1 11
WPNS_unlimittedUser::mo_two_fa_unlimittedUser_ajax()
S
79 1 3
MoWpnsDB::get_failed_transaction_count()
S
72 1 5
echo_js_css_files()
S
71 1 5
mo2f_GAuth_AESEncryption::decrypt_data()
S
62 1 10
mo_2f_ajax::mo2f_dismiss_button()
S
77 1 4
MO2f_Utility::encrypt_data()
S
63 1 9
MO2f_Utility::get_hidden_phone()
S
74 1 4
Google_auth_onpremise::geturl()
S
72 1 5
MoWpnsHandler::add_transactions()
S
75 1 4
MoWpnsHandler::get_error_transaction_report()
S
77 1 4
Mo2fDB::insert_user()
S
72 1 5
MoWpnsHandler::remove_failed_transactions()
S
77 1 4
mo2f_feature_on_hover_2fa_upgrade()
S
80 1 3
Miniorange_twoFactor::mo_wpns()
S
74 1 5
Miniorange_Password_2Factor_Login::create_session()
S
67 1 8
Miniorange_Mobile_Login::mo_auth_show_error_message()
S
75 1 4
MoWpnsHandler::get_all_transactions()
S
77 1 4
Miniorange_Authentication::mo_auth_success_message()
S
68 1 10
Miniorange_Authentication::mo2fa_load_textdomain()
S
78 1 3
WPNS_unlimittedUser::__construct()
S
79 1 3
MoWpnsDB::get_transasction_list()
S
75 1 4
mo_2f_ajax::__construct()
S
79 1 3
MoWpnsDB::__construct()
S
73 1 5
Miniorange_Mobile_Login::mo_auth_show_success_message()
S
75 1 4
_goto_sign_in_page()
S
70 1 6
Miniorange_Password_2Factor_Login::mo2f_redirect_shortcode_addon()
S
78 1 3
FeedbackHandler::__construct()
S
79 1 3
Mo2f_Api::get_timestamp()
S
72 1 5
MoWpnsConstants::__construct()
S
83 1 3
Mo2fDB::__construct()
S
73 1 5
mo2f_show_registration_screen()
S
77 1 4
Mo2fDB::get_current_user_email()
S
73 1 5
MocURL::lookupIP()
S
65 1 9
Miniorange_Password_2Factor_Login::mo_2_factor_enable_jquery_default_login()
S
82 1 3
Mo2fDB::check_if_table_exists()
S
69 1 7
Mo2fDB::check_if_user_column_exists()
S
68 1 8
Miniorange_Password_2Factor_Login::mo2f_restrict_access()
S
77 1 4
MoWpnsDB::get_count_of_attacks_blocked()
S
74 1 4
Miniorange_Mobile_Login::mo2f_verify_and_authenticate_userlogin()
S
65 1 9
Google_auth_onpremise::__construct()
S
100 1 2
Miniorange_twoFactor::footer_link()
S
83 1 3
Mo2f_ajax_dashboard::__construct()
S
79 1 3
Miniorange_Authentication::mo_auth_show_error_message()
S
79 1 3
Miniorange_Mobile_Login::mo_2_factor_hide_login()
S
63 1 10
MocURL::get_customer_key()
S
63 1 10
MoWpnsDB::get_error_transaction_report()
S
75 1 4
MoWpnsHandler::get_login_transaction_report()
S
77 1 4
MoWpnsDB::get_login_transaction_report()
S
75 1 4
Miniorange_Authentication::feedback_request()
S
83 1 3
Miniorange_Authentication::mo_auth_show_success_message()
S
79 1 3
_revert_back_registration()
S
67 1 8
Miniorange_Mobile_Login::custom_login_enqueue_scripts()
S
69 1 6
Google_auth_onpremise::mo_GAuth_get_secret()
S
68 1 7
Mo2fDB::execute_add_column()
S
75 1 5
mo2f_customize_logo()
S
74 1 5
Miniorange_Authentication::define_global()
S
77 1 4
Mo2fDB::delete_user_login_sessions()
S
68 1 8
wpns_handle_skip_feedback()
S
75 1 4
MoWpnsDB::get_email_audit_count()
S
72 1 5
class_miniorange_2fa_strong_password::__construct()
S
80 1 3
wpns_ajax::mo_login_security_ajax()
S
79 1 3
mo2f_lt()
S
80 1 3
mo2f_Logger::__construct()
S
76 1 4
mo2f_tooltip_array()
S
71 1 7
mo2f_GAuth_AESEncryption::encrypt_data_ga()
S
63 1 9
Two_Factor_Setup::get_curl_error_message()
S
66 1 8
Mo2fDB::delete_user_details()
S
68 1 8
MO2f_Utility::mo2f_set_cookie_values()
S
64 1 9
MoWpnsConstants::define_global()
S
68 1 7
Miniorange_Rba_Attributes::get_curl_error_message()
S
66 1 8
wpns_ajax::__construct()
S
79 1 3
Miniorange_twoFactor::mo2f_mapped_email_column()
S
77 1 4
Miniorange_Mobile_Login::mo_2_factor_show_login_with_password_when_phonelogin_enabled()
S
76 1 4
Mo2fDB::insert_user_login_session()
S
68 1 7
Google_auth_onpremise::mo_GAuth_set_secret()
S
68 1 7
miniorange_get_user_role()
S
83 1 3
MocURL::check_customer()
S
68 1 7
MoWpnsDB::generate_tables()
S
83 1 3
MoWpnsDB::delete_transaction()
S
67 1 8
MoWpnsHandler::move_failed_transactions_to_past_failed()
S
72 1 5
Google_auth_onpremise::_getBase32LookupTable()
S
62 1 9
mo_2f_ajax::mo_2f_two_factor()
S
79 1 3
mo_2f_ajax::mo2f_shift_to_onprem()
S
76 1 4
Mo2fDB::mo2f_get_no_of_2fa_users()
S
70 1 7
Mo2fDB::drop_table()
S
73 1 5
wpns_handle_enable_rba()
S
70 1 6