Code Analysis: افزونه حمل و نقل ووکامرس 4.1.1

Function Rating Maintainability Complexity Lines of code
PWS_get_state_city()
D
1
1 1,462
PWS_Status::change_status_callback()
D
20
34 245
PWS_Core::checkout_cities_field()
C
34 24 81
PWS_City::nabik_edit_state_callback()
B
26
14 198
PWS_Notice::notices()
B
37 22 69
PWS_Notice::update_notice()
B
39 20 58
PWS_Core::checkout_process()
B
41 18 50
Tapin_Pishtaz_Method::calculate_rates()
B
41 17 52
PWS_Settings::admin_init()
A
43 15 45
PWS_Core::check_states_beside()
A
31 6 160
PWS_Core::formatted_address_replacements()
A
50 15 24
PWS_Tapin::checkout_process()
A
44 13 43
PWS_Tapin_Method::calculate_shipping()
A
40 12 55
PWS_Version::update_219()
A
39 11 67
PWS_Settings_Tapin::get_fields()
A
33 7 118
WC_Custom_Method::calculate_shipping()
A
42 11 52
WC_Forehand_Method::calculate_shipping()
A
42 11 52
PWS_Tapin::check_states_beside()
A
33 4 153
PWS_Core::checkout_update_order_meta()
A
45 11 43
Tapin_Sefareshi_Method::calculate_rates()
A
41 10 55
PWS_Settings_Tools::get_fields()
A
31 3 159
PWS_Status::check_status_callback()
A
41 9 58
PWS_Ajax::load_districts_callback()
A
47 10 34
PWS_Settings_SMS::get_fields()
A
35 4 115
PWS_Notice::admin_notices()
A
44 8 55
PWS_Version::update_300()
A
46 8 37
PWS_Tools::admin_bar_menu()
A
43 7 47
PWS_Status::order_meta_box_callback()
A
42 5 71
PWS_Status::enqueue_scripts()
A
47 7 38
PWS_Admin::admin_menu()
S
42 5 57
PWS_Core::edit_checkout_cities_field()
S
46 6 38
PWS_Tapin::cities()
S
52 7 23
PWS_Status::save_order_meta_box()
S
54 7 22
PWS_Core::log()
S
53 7 21
PWS_Map_Service::init_hooks()
S
48 6 35
PWS_Shipping_Method::is_available()
S
54 7 20
PWS_Ajax::load_cities_callback()
S
53 7 20
PWS_Map_OSM::enqueue_scripts()
S
49 6 33
PWS_Settings::get_sanitize_callback()
S
59 7 14
PWS_Tapin::request()
S
44 5 44
PWS_Map_OSM::shortcode_callback()
S
42 4 58
PWS_Map_Neshan::enqueue_scripts()
S
51 6 27
PWS_Shipping_Method::init()
S
42 4 56
PWS_Install::install_cities()
S
52 6 24
PWS_Tapin::checkout_update_order_meta()
S
52 6 24
PWS_SMS::order_status_changed()
S
53 6 23
PWS_Version::__construct()
S
52 6 23
PWS_City::tapin_get_states()
S
53 6 21
PWS_Tapin::__construct()
S
50 5 28
PWS_Map_Service::validate_map_location_field()
S
60 6 12
PWS_Settings::script()
S
100 1 85
PWS_Map_Neshan::shortcode_callback()
S
43 3 54
PWS_Tapin::shop()
S
54 5 20
PWS_Order::get_shipping_method()
S
56 5 18
PWS_Cart::has_category()
S
57 5 16
PWS_Tapin::states()
S
56 5 16
PWS_Settings::callback_wysiwyg()
S
56 5 16
PWS_Core::cart_shipping_packages()
S
57 5 15
PWS_Status::top_order_list()
S
53 4 29
PWS_Order::get_weight()
S
58 5 14
PWS_Map_Service::is_iran_location()
S
59 5 14
PWS_Cart::has_shipping_method()
S
60 5 13
PWS_Core::pws_sort_state()
S
45 3 43
PWS_SMS::send()
S
51 4 26
PWS_Map::map_order_meta_box_callback()
S
53 4 23
PWS_Status::__construct()
S
53 4 21
PWS_Map::__construct()
S
55 4 21
PWS_Install::activated_plugin()
S
56 4 18
PWS_Map::add_map_location_field_to_order_form()
S
57 4 18
PWS_Core::state_city_taxonomy()
S
49 3 32
PWS_Core::cities()
S
56 4 17
PWS_Settings_Map::save_map_location_order_meta()
S
58 4 16
WC_Courier_Method::calculate_shipping()
S
57 4 16
WC_Tipax_Method::calculate_shipping()
S
57 4 16
PWS_Status::reports_statuses()
S
59 4 15
PWS_City::state_city_row_actions()
S
59 4 14
PWS_Tools::__construct()
S
59 4 14
PWS_Core::convert_currency_to_IRR()
S
61 4 14
PWS_Core::convert_currency_from_IRR()
S
61 4 14
PWS_Status::add_order_statuses()
S
62 4 12
PWS_Core::pws_single_country_field()
S
52 3 27
PWS_Settings::callback_select()
S
60 4 11
PWS_Settings_Map::map_order_meta_box_callback()
S
52 3 25
PWS_Version::update_220()
S
53 3 23
PWS_Status::get_statues()
S
55 3 18
PWS_City::__construct()
S
57 3 16
PWS_City::tapin_admin_footer()
S
61 3 16
PWS_Cart::get_shipping_items()
S
64 4 9
PWS_Settings::callback_file()
S
61 4 10
PWS_Tools::hide_when_free()
S
64 4 9
PWS_Tools::hide_when_courier()
S
64 4 9
PWS_Core::init_hooks()
S
44 1 45
PWS_Core::checkout_update_order_review()
S
63 4 10
PWS_Settings::callback_text()
S
63 4 8
PWS_Core::get_terms_option()
S
59 3 14
PWS_SMS::save_order_post_barcode()
S
59 3 14
PWS_Core::states()
S
58 3 14
PWS_Settings::callback_multicheck()
S
59 3 13
PWS_Status::paid_statuses()
S
61 3 12
PWS_Map::save_map_location_order_meta()
S
61 3 12
PWS_Tools::new_order_note_data()
S
60 3 12
PWS_Settings::show_navigation()
S
62 3 11
PWS_Map_Service::save_map_location_meta()
S
62 3 11
PWS_Settings::show_forms()
S
55 2 25
PWS_get_states()
S
47 1 35
PWS_Admin::shipping_setting()
S
57 2 18
PWS_Tapin::enqueue_select2_scripts()
S
57 2 16
PWS_Settings_Map::add_map_location_field_to_order_form()
S
59 2 16
PWS_Shipping_Method::get_destination()
S
69 3 6
WC_Forehand_Method::is_available()
S
66 3 8
WC_Custom_Method::is_available()
S
66 3 8
PWS_Tapin_Method::is_available()
S
66 3 8
PWS_Product::get_weight()
S
63 3 10
PWS_Cart::has_shipping_class()
S
65 3 9
PWS_Cart::has_shipping_class_id()
S
65 3 9
PWS_Cart::has_product()
S
64 3 9
PWS_Settings::callback_textarea()
S
66 3 7
PWS_Admin::parent_file()
S
70 3 6
PWS_Tapin::formatted_address_replacements()
S
66 3 8
PWS_Settings::callback_password()
S
66 3 7
PWS_Core::get_city()
S
73 3 4
PWS_Settings::callback_color()
S
65 3 7
PWS_Notice::set_dismiss()
S
66 3 7
PWS_Settings::sanitize_options()
S
64 3 10
PWS_Core::enqueue_select2_scripts()
S
58 2 15
PWS_Core::add_shipping_method()
S
67 3 8
PWS_Core::get_settings_general()
S
67 3 8
PWS_Core::shipping_method_image()
S
64 3 8
PWS_Shipping_Method::free_shipping()
S
64 3 9
PWS_Status::register_order_statuses()
S
61 2 12
PWS_Settings::callback_radio()
S
60 2 12
PWS_SMS::sanitize_phone()
S
52 1 25
WC_Forehand_Method::init_form_fields()
S
54 1 25
WC_Custom_Method::init_form_fields()
S
53 1 25
PWS_Tapin_Method::init_form_fields()
S
54 1 25
WC_Courier_Method::init_form_fields()
S
57 1 18
WC_Tipax_Method::init_form_fields()
S
57 1 18
PWS_Settings_SMS::get_sections()
S
60 1 16
PWS_Settings_Tapin::instance()
S
72 2 6
PWS_Core::get_option()
S
66 2 8
PWS_Core::set_option()
S
67 2 7
PWS_SMS::__construct()
S
67 2 7
PWS_Status::bulk_actions()
S
67 2 7
PWS_Status::check_status_scheduled()
S
73 2 5
PWS_Tapin::instance()
S
72 2 6
PWS_Cart::get_weight()
S
66 2 7
PWS_Tapin::cart_shipping_packages()
S
69 2 6
PWS_City::remove_edit_term_link()
S
72 2 6
PWS_City::flush_cache()
S
65 2 8
PWS_Tools::fix_arabic_characters()
S
69 2 6
PWS_Settings_SMS::instance()
S
72 2 6
PWS_Core::edit_state_city_rows_taxonomy()
S
72 2 6
PWS_Settings_Tools::instance()
S
72 2 6
PWS_Core::checkout_get_value()
S
70 2 6
PWS_Settings::get_field_description()
S
66 2 8
PWS_Version::update_230()
S
71 2 6
PWS_Tapin::set_gateway()
S
73 2 5
PWS_Core::order_formatted_billing_address()
S
71 2 6
PWS_Cart::get_items_qty()
S
68 2 7
PWS_Map_Service::disable_map_location_field_get_value()
S
70 2 6
PWS()
S
72 2 6
PWS_Core::order_formatted_shipping_address()
S
71 2 6
PWS_Tapin::zone()
S
66 2 8
PWS_Core::types()
S
69 2 7
PWS_City::tapin_edit_term_link()
S
72 2 6
PWS_Core::instance()
S
72 2 6
PWS_Settings::get_option()
S
69 2 7
PWS_Settings_Tools::get_sections()
S
63 1 12
PWS_SMS::tags()
S
62 1 11
PWS_Settings::add_field()
S
63 1 11
PWS_Core::set_term_option()
S
74 1 4
PWS_Core::localisation_address_formats()
S
76 1 4
PWS_Map_Service::get_provider()
S
82 1 3
PWS_Settings::admin_enqueue_scripts()
S
72 1 6
PWS_Settings_Map::add_map_order_meta_box()
S
65 1 10
PWS_Tapin_Method::init()
S
69 1 6
PWS_Map_Service::get_api_key()
S
82 1 3
WC_Tipax_Method::__construct()
S
68 1 7
PWS_Admin::admin_head()
S
77 1 9
PWS_Tapin::get_city()
S
75 1 4
PWS_Core::load_maps_init()
S
74 1 5
PWS_Settings::get_sections()
S
83 1 3
PWS_Settings::escape()
S
72 1 5
PWS_Core::get_state()
S
75 1 4
PWS_Settings::callback_checkbox()
S
62 1 10
PWS_Tapin::get_term_option()
S
74 1 4
WC_Courier_Method::is_available()
S
69 1 6
PWS_Map_Service::enqueue_scripts()
S
68 1 8
PWS_Notice::__construct()
S
72 1 5
PWS_Notice::dismiss_notice()
S
73 1 5
WC_Forehand_Method::__construct()
S
69 1 7
WC_Tipax_Method::is_available()
S
69 1 6
PWS_Core::my_account_my_address_formatted_address()
S
74 1 4
PWS_Settings_SMS::output()
S
69 1 7
PWS_City::admin_menu()
S
71 1 6
WC_Courier_Method::__construct()
S
68 1 7
PWS_Settings::callback_html()
S
81 1 3
PWS_Core::__construct()
S
67 1 9
PWS_Map_Service::set_provider()
S
81 1 3
PWS_Admin::includes()
S
70 1 7
PWS_Core::pws_pro_url()
S
79 1 3
WC_Forehand_Method::init()
S
67 1 7
PWS_Tapin::get_gateway()
S
80 1 3
PWS_Core::convert_currency()
S
75 1 4
PWS_Settings::get_fields()
S
83 1 3
PWS_Map_Neshan::get_service_key()
S
82 1 3
PWS_City::tapin_get_state_city_per_page()
S
80 1 3
PWS_Settings::add_section()
S
77 1 4
PWS_Map_Service::get_map_params()
S
82 1 3
PWS_Map_Service::set_api_key()
S
81 1 3
WC_Courier_Method::init()
S
69 1 6
PWS_Status::order_meta_box()
S
66 1 9
PWS_Shipping_Method::__construct()
S
68 1 8
PWS_Map_Service::do_map_shortcode()
S
80 1 3
PWS_Core::delete_term_option()
S
80 1 3
PWS_Tapin::localisation_address_formats()
S
76 1 4
PWS_Admin::shipping_section()
S
76 1 4
PWS_Map_Neshan::set_service_key()
S
81 1 3
PWS_Map_Service::add_map_shortcode()
S
79 1 3
WC_Custom_Method::init()
S
67 1 7
PWS_Tapin::is_enable()
S
78 1 3
PWS_Map_Neshan::init_hooks()
S
72 1 5
PWS_Map_Service::set_map_params()
S
80 1 3
PWS_Notice::is_dismiss()
S
78 1 3
PWS_Map_Service::__construct()
S
64 1 9
PWS_Cart::get_items_type_qty()
S
80 1 3
PWS_Core::get_term_option()
S
74 1 4
PWS_Core::edit_state_city_columns_taxonomy()
S
73 1 5
PWS_Settings_Tools::output()
S
69 1 7
PWS_Map::add_map_order_meta_box()
S
66 1 9
Tapin_Sefareshi_Method::__construct()
S
69 1 7
PWS_Map_Service::add_map_location_field_to_checkout_form()
S
65 1 9
PWS_Tapin::set_term_option()
S
74 1 4
PWS_Settings_Map::__construct()
S
70 1 6
PWS_Settings::__construct()
S
75 1 4
PWS_Settings::callback_url()
S
82 1 3
PWS_Map_Neshan::__construct()
S
67 1 7
PWS_Map_Service::shortcode_callback()
S
82 1 3
PWS_Core::enqueue_admin_scripts()
S
68 1 8
WC_Tipax_Method::init()
S
69 1 6
PWS_Settings_Tapin::get_sections()
S
69 1 8
Tapin_Pishtaz_Method::__construct()
S
69 1 7
PWS_Map_OSM::init_hooks()
S
72 1 5
PWS_Shipping_Method::add_rate_cost()
S
65 1 9
PWS_Core::load_shipping_init()
S
65 1 10
WC_Custom_Method::__construct()
S
69 1 7
PWS_Install::__construct()
S
78 1 3
PWS_Settings_Tapin::output()
S
69 1 7
PWS_Tapin::delete_term_option()
S
80 1 3
PWS_Admin::__construct()
S
65 1 8
PWS_Core::iran_states()
S
76 1 4
PWS_Settings::callback_number()
S
82 1 3