Code Analysis: Wawp – Order Notifications, OTP Login, Checkout Verifications and Country Code 3.0.13

Function Rating Maintainability Complexity Lines of code
awp_UI::notification_settings()
D
3
76 777
AWP\Wawp_Countrycode::get_all_countries()
D
5
1 1,216
awp_UI::admin_notification_settings()
D
17
37 373
awp_Main::awp_wa_process_variables()
D
21
48 185
awp_UI::followup_settings()
D
19
33 359
awp_UI::logs_page()
D
19
6 521
Register::register()
C
30 26 123
awp_Main::awp_wa_send_msg()
B
31 20 110
awp_Main::awp_admin_notices()
B
42 18 50
AWP_Mainset::render_settings_page()
B
33 12 121
AWP_System_Info::awp_admin_page_content()
B
31 11 135
awp_Main::abandoned_order()
B
36 15 69
awp_Main::awp_wa_process_states_refunded()
A
43 16 42
awp_Main::awp_wa_process_states_onhold()
A
43 16 42
awp_Main::awp_wa_process_states_pending()
A
43 16 42
awp_Main::awp_wa_process_states_failed()
A
43 16 42
awp_Main::awp_wa_process_states_cancelled()
A
43 16 42
awp_Main::awp_send_login_notification()
A
45 16 37
awp_Main::awp_send_registration_notification()
A
42 15 46
awp_Main::awp_wa_process_states_processing()
A
42 15 46
awp_Main::awp_wa_process_states_completed()
A
42 15 46
awp_Main::awp_wa_process_states()
A
44 14 42
awp_Main::aftersales_order_2()
A
41 13 52
awp_Main::aftersales_order_3()
A
41 13 52
awp_Main::aftersales_order_4()
A
41 13 52
AWP_System_Info::awp_get_system_info()
A
43 14 37
awp_Main::aftersales_order()
A
41 13 52
awp_Main::followup_order_2()
A
41 13 50
awp_Main::followup_order()
A
42 13 49
awp_Main::followup_order_3()
A
42 13 49
awp_Main::followup_order_4()
A
42 13 49
awp_UI::abandoned_cart_settings()
A
36 9 104
Register::register_otp()
A
39 10 66
awp_checkout_otp::send_otp_ajax_handler()
A
40 9 58
awp_checkout_otp::verify_phone_number_ajax_handler()
A
40 8 70
Login::login_otp()
A
36 7 84
awp_Main::schedule_cron_events()
A
51 10 29
awp_checkout_otp::check_if_otp_verified()
A
49 10 29
awp_Main::awp_wa_process_note()
A
49 9 27
awp_Main::awp_admin_menu()
A
39 5 79
Login::login()
A
44 7 43
Login::login_form()
A
48 7 37
WWO::wawp_consent_banner()
S
40 4 73
awp_UI::setup_info()
S
46 5 51
WWO::enqueue()
S
45 6 35
WWO::__construct()
S
55 7 17
AWP\Wawp_Countrycode::allowlist_field_html()
S
48 6 29
awp_Main::awp_admin_assets()
S
49 6 26
AWP_Mainset::enqueue_admin_assets()
S
48 5 30
AWP\Wawp_Countrycode::enqueue_admin_scripts()
S
49 5 29
WWO::wawp_consent_footer()
S
46 4 43
awp_Main::check_wc_order_storage_settings()
S
60 6 12
awp_Main::awp_custom_order_status()
S
51 5 26
awp_checkout_otp::admin_enqueue_scripts()
S
53 5 20
AWP_Mainset::check_phone_status()
S
55 5 18
Login::wawp_account_login_shortcode()
S
49 4 31
Register::wawp_register_form_shortcode()
S
49 4 31
awp_checkout_otp::sort_users_by_column()
S
58 5 16
AWP_System_Info::awp_size_to_bytes()
S
59 5 15
AWP_System_Info::send_recurring_email()
S
48 4 30
awp_checkout_otp::show_user_column_data()
S
58 5 15
AWP\Wawp_Countrycode::save_iti_settings()
S
58 5 13
awp_UI::get_unique_log_values()
S
60 5 12
AWP::send_one_time()
S
50 4 26
AWP\Wawp_Countrycode::default_country_field_html()
S
55 4 18
awp_checkout_otp::load_otp_verification()
S
56 4 16
AWP_System_Info::awp_enqueue_admin_styles()
S
63 5 9
awp_UI::admin_page()
S
47 1 60
AWP_Mainset::register_settings()
S
45 1 58
awp_Main::awp_log_resend_message()
S
48 2 32
awp_UI::help_info()
S
48 1 46
awp_checkout_otp::add_otp_verification_popup()
S
51 1 46
awp_checkout_otp::update_user_phone_number()
S
58 3 15
Register::register_action()
S
65 4 8
awp_checkout_otp::verify_otp_ajax_handler()
S
58 3 15
awp_Main::status_on_admin_bar()
S
48 1 43
awp_checkout_otp::check_if_phone_number_blocked()
S
59 3 13
awp_Main::display_billing_phone_content()
S
62 3 12
AWP_Mainset::activate_login_callback()
S
62 3 11
AWP_Mainset::activate_register_callback()
S
62 3 11
awp_logger::open()
S
62 3 11
awp_checkout_otp::enqueue_scripts()
S
53 2 22
awp_Main::__construct()
S
46 1 36
awp_Main::display_wc_order_storage_notice()
S
56 2 20
Register::register_form()
S
57 2 19
AWP\Wawp_Countrycode::enqueue_scripts()
S
48 1 34
AWP\Wawp_Countrycode::get_country_name()
S
65 3 9
awp_logger::clear()
S
64 3 10
AWP\Wawp_Countrycode::register_settings()
S
58 2 15
Login::enqueue()
S
59 2 13
awp_checkout_otp::otp_message_template_field_callback()
S
56 1 23
AWP\Wawp_Countrycode::settings_section_description()
S
58 1 19
AWP\Wawp_Countrycode::settings_page()
S
61 1 16
AWP\Wawp_Countrycode::is_arabic_language()
S
71 2 5
AWP_Mainset::instance_id_callback()
S
65 2 9
AWP_Mainset::instance_id_notifications_callback()
S
65 2 9
Register::get_instance()
S
71 2 6
WWO::wawp_add_footer_script()
S
72 1 15
AWP_Mainset::unschedule_phone_status_check()
S
71 2 6
AWP_System_Info::schedule_recurring_email()
S
70 2 6
AWP_Mainset::access_token_notifications_callback()
S
65 2 9
AWP\Wawp_Countrycode::group_countries_by_region()
S
69 2 7
awp_checkout_otp::__construct()
S
58 1 15
Register::enqueue()
S
72 2 5
AWP_Mainset::schedule_phone_status_check()
S
73 2 5
AWP_Mainset::access_token_callback()
S
65 2 9
Login::get_instance()
S
71 2 6
AWP_System_Info::awp_status_class()
S
77 2 3
WWO::get_instance()
S
71 2 6
awp_logger::add()
S
72 2 5
awp_checkout_otp::settings_page_html()
S
70 2 6
Login::redirect_myaccount()
S
71 2 6
AWP_System_Info::awp_status_icon()
S
77 2 3
awp_UI::get_image_preview_html()
S
71 2 6
WWO::wawp_add_banner_script()
S
72 1 15
awp_logger::get_log_file()
S
70 2 6
awp_checkout_otp::register_settings()
S
57 1 15
awp_Main::get_instance()
S
71 2 6
awp_Main::save_billing_phone_on_edit_account()
S
72 2 5
AWP::check_woocommerce_active()
S
72 2 5
AWP_System_Info::awp_add_admin_menu()
S
63 1 12
WWO::settings()
S
62 1 12
awp_Main::followup_cron_schedule()
S
63 1 11
AWP\Wawp_Countrycode::load_textdomain()
S
77 1 3
WWO::setting_page()
S
82 1 3
AWP::woocommerce_inactive_notice()
S
66 1 9
awp_Main::awp_register_settings()
S
76 1 4
awp_UI::is_plugin_active()
S
78 1 3
Login::__construct()
S
64 1 9
awp_UI::other_settings()
S
75 1 6
AWP_System_Info::__construct()
S
72 1 5
WWO::set_access_token()
S
81 1 3
awp_checkout_otp::add_user_columns()
S
72 1 5
awp_Main::awp_wa_encoding()
S
79 1 3
AWP_Mainset::add_fifteen_minute_cron_interval()
S
68 1 7
awp_Main::spintax()
S
65 1 10
awp_Main::add_billing_phone_to_edit_account_form()
S
65 1 10
awp_checkout_otp::add_settings_page()
S
65 1 10
awp_checkout_otp::enable_otp_field_callback()
S
66 1 8
AWP::on_activation()
S
82 1 3
AWP\Wawp_Countrycode::add_admin_menu()
S
65 1 10
AWP::__construct()
S
65 1 9
AWP::admin_head_styles()
S
77 1 9
AWP\Wawp_Countrycode::__construct()
S
66 1 8
awp_logger::__construct()
S
72 1 5
awp_Main::is_plugin_active()
S
78 1 3
AWP::load_textdomain()
S
77 1 3
AWP_System_Info::awp_load_textdomain()
S
77 1 3
awp_UI::__construct()
S
76 1 4
awp_Main::awp_textdomain()
S
77 1 3
awp_checkout_otp::save_blocked_numbers()
S
69 1 6
AWP_Mainset::add_admin_menu()
S
65 1 10
awp_checkout_otp::blocked_numbers_field_callback()
S
71 1 5
AWP_Mainset::__construct()
S
64 1 9
AWP::include_required_files()
S
66 1 10
awp_Main::awp_load_admin_js()
S
79 1 3
Register::__construct()
S
63 1 10
awp_checkout_otp::enable_otp_for_visitors_field_callback()
S
66 1 8
awp_checkout_otp::make_columns_sortable()
S
74 1 5
WWO::set_instance_id()
S
81 1 3
awp_UI::convert_to_hijri()
S
80 1 3