Code Analysis: OTP Login/Signup Woocommerce 2.6.7

Function Rating Maintainability Complexity Lines of code
Xoo_Admin::get_setting_html()
D
21
60 153
Xoo_Ml_Phone_Verification::request_otp()
D
31 40 93
Xoo_Ml_Phone_Verification::process_otp_form()
C
35 25 72
Xoo_Admin::auto_generate_settings()
B
43 19 46
Xoo_Admin::sort()
A
48 13 36
Xoo_Ml_Phone_Verification::is_a_phone_form()
A
47 12 35
Xoo_Ml_Service_Custom::sendSMS()
A
45 11 40
Xoo_Ml_Phone_Verification::process_login_with_otp_form()
A
45 11 38
Xoo_Ml_Otp_Handler::ok_to_send_otp()
A
48 11 31
Xoo_Helper::get_theme_templates()
A
47 10 33
Xoo_Ml_Admin_Settings::fetch_sdks_on_save()
A
56 11 17
Xoo_Ml_Callbacks::simplify_args()
A
51 10 24
Xoo_Ml_Gf_Phone::field_html()
A
51 9 24
Xoo_Ml_Geolocation::get_data()
A
51 9 23
Xoo_Ml::on_install()
A
52 9 23
Xoo_Ml_Phone_Frontend::enqueue_scripts()
A
41 7 50
Xoo_Admin::create_settings_html()
A
48 8 31
xoo_ml_get_user_by_phone()
A
46 7 43
Xoo_Ml_Services::set_operators_data()
A
36 3 99
Xoo_Ml_Service_Twilio::sendSMS()
A
44 6 52
Xoo_Admin::save_default_settings()
S
57 8 15
Xoo_Admin::reset_settings()
S
59 8 12
Xoo_Helper::upload_files_as_attachment()
S
51 7 26
Xoo_Ml_Admin_Settings::enqueue_scripts()
S
52 7 22
Xoo_Ml_Service::http_request()
S
50 6 27
Xoo_Helper::is_request()
S
61 7 12
Xoo_Ml::is_request()
S
61 7 12
Xoo_Ml_Users_Table::verify_user_fields()
S
61 7 11
Xoo_Ml_Users_Table::verify_user_fields()
S
61 7 11
Xoo_Helper::locate_template()
S
54 6 22
Xoo_Helper::scan_template_files()
S
55 6 19
Xoo_Ml_Gf_Phone::add_to_phone_form()
S
55 6 18
xoo_ml_get_country_codes()
S
57 6 17
Xoo_Helper::get_template()
S
58 6 16
Xoo_Ml_Users_Table::add_columns()
S
55 5 21
Xoo_Ml_Users_Table::add_columns()
S
55 5 21
Xoo_Ml_Geolocation::get_default_ip_address()
S
56 5 17
Xoo_Ml_Otp_Handler::sendOTPSMS()
S
49 4 31
Xoo_Ml_Gf_Phone::pre_submission_handler()
S
58 5 15
Xoo_Ml_Users_Table::save_customer_meta_fields()
S
59 5 15
Xoo_Ml_Users_Table::save_customer_meta_fields()
S
59 5 15
Xoo_Ml_Otp_Handler::cleanup()
S
57 5 15
Xoo_Ml_Phone_Verification::handle_phone_on_user_registration()
S
57 5 15
Xoo_Ml_Service::validate()
S
61 5 14
Xoo_Ml_Services::get_operator_data()
S
61 5 13
Xoo_Ml::set_is_sdk_version()
S
60 5 13
Xoo_Helper::get_outdated_section()
S
51 4 27
xoo_recursive_parse_args()
S
61 5 12
Xoo_Admin::register_setting()
S
51 4 26
Xoo_Ml_Admin_Settings::operator_documentation_links_html()
S
53 4 25
Xoo_Ml_Otp_Handler::set_otp_data()
S
56 4 20
Xoo_Ml_Phone_Verification::login_user_with_otp()
S
54 4 20
Xoo_Admin::save_settings()
S
54 4 19
Xoo_Ml::includes()
S
56 4 19
Xoo_Ml_Admin_Settings::notices()
S
61 4 16
Xoo_Ml_Otp_Handler::onlySendOTPSMS()
S
58 4 15
Xoo_Ml_Otp_Handler::resendOTPSMS()
S
64 5 8
Xoo_Admin::sort_by_priority()
S
63 5 10
Xoo_Ml_Phone_Frontend::hooks()
S
57 4 15
Xoo_Helper::time_to_update_theme_templates_data()
S
64 5 8
Xoo_Ml_Admin_Settings::unzip_sdk()
S
64 5 9
Xoo_Helper::get_file_version()
S
58 4 14
Xoo_Admin::export_settings()
S
61 4 12
Xoo_Admin::import_settings()
S
60 4 12
Xoo_Ml_Service::validate_incomplete_settings()
S
62 4 12
Xoo_Ml_Geolocation::get_external_ip_address()
S
61 4 11
Xoo_Ml_Phone_Verification::resendOTP()
S
52 3 24
Xoo_Ml_Service_AWS::sendSMS()
S
55 3 20
Xoo_Ml_Users_Table::edit_profile_page()
S
56 3 19
Xoo_Ml_Users_Table::edit_profile_page()
S
55 3 19
Xoo_Ml_Admin_Settings::__construct()
S
55 3 18
Xoo_Admin::register_menu_page()
S
50 2 32
Xoo_Helper::update_theme_templates_data()
S
57 3 16
Xoo_Ml_Phone_Frontend::enqueue_styles()
S
58 3 16
Xoo_Admin::hooks()
S
58 3 15
Xoo_Helper::get_option()
S
64 4 10
Xoo_Admin::shortcode_info()
S
66 4 7
Xoo_Ml_Admin_Settings::tab_html()
S
65 4 9
Xoo_Ml_Phone_Frontend::wc_login_username_field_i8n()
S
68 4 6
Xoo_Ml_Admin_Settings::fetch_sdk()
S
65 4 9
xoo_ml_get_user_phone()
S
61 3 13
Xoo_Ml_Admin_Settings::customCSS()
S
65 3 12
Xoo_Ml_Phone_Verification::process_login()
S
63 3 11
xoo_ml_get_phone_input_field()
S
53 2 21
Xoo_Ml_Service_Msegat::sendSMS()
S
55 2 20
Xoo_Ml_Service_Bulkssms::sendSMS()
S
56 2 19
Xoo_Ml_Gf_Phone::form_type_setting()
S
58 2 19
xoo_ml_get_login_with_otp_form()
S
55 2 18
Xoo_Ml_Service_OurSMS::sendSMS()
S
57 2 18
Xoo_Ml_Service_Msg91::sendSMS()
S
58 2 17
Xoo_Ml_Service_SMSLane::sendSMS()
S
58 2 16
Xoo_Ml_Service_TextLocal::sendSMS()
S
58 2 16
Xoo_Ml_Service_Semaphore::sendSMS()
S
59 2 15
Xoo_Ml_Service_SMSAlert::sendSMS()
S
59 2 15
Xoo_Ml_Service_Unifonic::sendSMS()
S
59 2 15
Xoo_Ml_Service::include_sdk()
S
72 3 5
Xoo_Ml_Helper::mergeCC()
S
70 3 6
Xoo_Ml_Service::validate_sdk()
S
71 3 5
Xoo_Ml_Geolocation::geolocate_via_api()
S
62 3 10
Xoo_Helper::get_theme_templates_data()
S
67 3 7
xoo_ml_get_default_phone_code()
S
67 3 8
Xoo_Ml_Otp_Handler::get_otp_data()
S
68 3 7
Xoo_Ml_Geolocation::get_phone_code()
S
65 3 9
Xoo_Ml_Service_Netgsm::sendSMS()
S
59 2 15
Xoo_Ml_Service_Bulksms::sendSMS()
S
61 2 13
Xoo_Ml_Phone_Verification::wc_myaccount_update_phone()
S
61 2 12
Xoo_Ml_Otp_Handler::getOTPSMSText()
S
62 2 11
Xoo_Ml_Callbacks::select()
S
62 2 11
Xoo_Ml_Service_Custom::__construct()
S
61 2 11
Xoo_Admin::register_as_submenu_page()
S
56 1 20
Xoo_Admin::register_section()
S
57 1 19
Xoo_Admin::register_tab()
S
57 1 18
Xoo_Ml_Phone_Frontend::wc_register_phone_input_args()
S
59 1 16
Xoo_Ml_Service::get_incomplete_setup_notice()
S
64 2 9
Xoo_Ml_Helper::canMergeCC()
S
78 2 3
Xoo_Ml_Otp_Handler::get_instance()
S
72 2 6
xoo_ml_add_notice()
S
70 2 5
Xoo_Ml_Gf_Phone::custom_validation()
S
70 2 6
Xoo_Admin::__construct()
S
67 2 8
Xoo_Ml_Users_Table::get_instance()
S
72 2 6
Xoo_Admin::is_settings_page()
S
78 2 3
Xoo_Ml_Users_Table::columns_output()
S
70 2 6
Xoo_Ml_Services::get_instance()
S
71 2 6
Xoo_Helper::define()
S
75 2 5
Xoo_Ml_Otp_Handler::getTimeDuration()
S
77 2 3
Xoo_Ml_Users_Table::get_instance()
S
72 2 6
Xoo_Admin::info_tab_data()
S
67 2 10
Xoo_Ml_Geolocation::get_country_code()
S
70 2 6
Xoo_Ml_Users_Table::columns_output()
S
70 2 6
Xoo_Ml_Services::operator()
S
66 2 8
Xoo_Admin::is_settings_page_request()
S
78 2 3
xoo_ml_init()
S
69 2 7
Xoo_Ml_Phone_Frontend::get_instance()
S
72 2 6
Xoo_Ml_Admin_Settings::get_instance()
S
72 2 6
Xoo_Ml_Service_AWS::set_credentials()
S
66 2 9
Xoo_Helper::box_shadow_desc()
S
69 2 7
Xoo_Ml_Admin_Settings::check_sdks()
S
72 2 5
Xoo_Ml::get_instance()
S
72 2 6
array_is_list()
S
70 2 6
Xoo_Admin::enqueue_scripts()
S
57 1 15
Xoo_Exception::__construct()
S
65 2 9
Xoo_Ml_Gf_Phone::editor_script()
S
69 1 15
Xoo_Ml_Service::has_sdk_folder()
S
74 2 4
Xoo_Ml_Callbacks::description()
S
71 2 6
Xoo_Ml_Otp_Handler::generate_otp_digits()
S
73 2 4
Xoo_Ml_Helper::get_instance()
S
71 2 6
Xoo_Ml_Phone_Verification::hooks()
S
59 1 14
Xoo_Admin::settings_page_markup()
S
62 1 11
Xoo_Ml_Callbacks::upload()
S
66 1 10
Xoo_Ml_Gf_Phone::hooks()
S
66 1 7
Xoo_Ml_Users_Table::remove_phone_fields()
S
75 1 4
xoo_ml_admin_settings()
S
82 1 3
Xoo_Ml_Phone_Verification::__construct()
S
82 1 3
xoo_ml_services()
S
82 1 3
xoo_ml_users_table()
S
82 1 3
Xoo_Ml_Callbacks::text()
S
69 1 7
Xoo_Ml_Service_OurSMS::__construct()
S
68 1 7
Xoo_Ml_Service_Twilio::__construct()
S
63 1 10
Xoo_Ml_Users_Table::remove_phone_fields()
S
75 1 4
Xoo_Ml_Callbacks::number()
S
69 1 7
Xoo_Ml::hooks()
S
82 1 3
Xoo_Ml_Helper::get_phone_option()
S
79 1 3
Xoo_Admin::get_setting_upload_markup()
S
68 1 7
Xoo_Ml_Phone_Frontend::wc_login_with_otp_form()
S
68 1 7
xoo_framework_includes()
S
77 1 4
Xoo_Ml_Users_Table::__construct()
S
63 1 10
Xoo_Ml_Callbacks::color()
S
69 1 7
xoo_ml()
S
82 1 3
Xoo_Ml_Users_Table::__construct()
S
65 1 8
Xoo_Ml_Services::__construct()
S
72 1 5
Xoo_Ml::__construct()
S
75 1 5
Xoo_Ml_Callbacks::textarea()
S
69 1 7
Xoo_Ml_Service::get_operator_data()
S
79 1 3
Xoo_Ml_Otp_Handler::get_otp_users()
S
79 1 3
Xoo_Helper::includes()
S
75 1 4
Xoo_Ml_Service_Semaphore::__construct()
S
70 1 6
Xoo_Ml_Phone_Frontend::fetch_geolocation()
S
82 1 3
Xoo_Admin::set_info_tab()
S
79 1 3
Xoo_Ml_Service_Msg91::__construct()
S
66 1 8
Xoo_Ml_Service_Bulkssms::__construct()
S
65 1 9
Xoo_Ml_Phone_Frontend::wc_register_phone_input()
S
80 1 3
Xoo_Exception::getWpErrorCode()
S
82 1 3
Xoo_Ml_Service_Bulksms::__construct()
S
70 1 6
Xoo_Ml_Service_TextLocal::__construct()
S
68 1 7
Xoo_Ml_Admin_Settings::plugin_action_links()
S
67 1 7
Xoo_Helper::__construct()
S
69 1 7
xoo_ml_otp_handler()
S
82 1 3
Xoo_Helper::internationalize()
S
78 1 3
Xoo_Ml_Helper::get_service_option()
S
79 1 3
Xoo_Ml_Phone_Frontend::wc_myaccount_edit_phone_input()
S
66 1 9
Xoo_Ml_Service_AWS::__construct()
S
66 1 8
Xoo_Helper::set_constants()
S
74 1 4
Xoo_Ml_Callbacks::section()
S
72 1 6
Xoo_Ml_Gf_Phone::get_form_editor_field_title()
S
79 1 3
Xoo_Helper::hooks()
S
75 1 4
Xoo_Ml_Service_SMSLane::__construct()
S
68 1 7
Xoo_Ml_Service_SMSAlert::__construct()
S
70 1 6
Xoo_Ml_Service_Unifonic::__construct()
S
70 1 6
Xoo_Ml_Otp_Handler::__construct()
S
73 1 5
Xoo_Ml_Admin_Settings::add_menu_pages()
S
69 1 7
Xoo_Ml_Phone_Frontend::__construct()
S
77 1 4
Xoo_Ml_Geolocation::get_ip_address()
S
79 1 3
xoo_ml_operator_data()
S
82 1 3
xoo_ml_country_codes_list()
S
78 1 3
Xoo_Ml_Callbacks::checkbox()
S
67 1 8
Xoo_Ml_Callbacks::__construct()
S
91 1 2
xoo_ml_helper()
S
80 1 3
Xoo_Ml_Admin_Settings::generate_settings()
S
82 1 3
Xoo_Ml_Phone_Frontend::phone_form_classes()
S
74 1 5
Xoo_Ml_Service::sendSMS()
S
91 1 2
xoo_ml_users_table()
S
82 1 3
xoo_ml_phone_frontend()
S
82 1 3
xoo_ml_activate_deactivate()
S
80 1 3
Xoo_Ml_Gf_Phone::get_form_editor_field_settings()
S
72 1 5
Xoo_Ml_Service_Msegat::__construct()
S
66 1 8
Xoo_Ml_Service_Netgsm::__construct()
S
68 1 7