Code Analysis: AfterShip Tracking - All-In-One WooCommerce Order Tracking (Free plan available) 1.16.9

Function Rating Maintainability Complexity Lines of code
AfterShip_Import_Csv::import_order_tracking()
D
21
36 256
AfterShip_Import_Csv::import_csv()
D
23
32 185
AfterShip_Import_Csv::import_csv_callback()
D
21
23 304
AfterShip_API_V3_Orders::get_order()
C
24
23 184
AfterShip_API_V4_Orders::get_order()
C
25
22 169
AfterShip_API_V4_Settings::update()
B
47 21 32
AfterShip_API_Server::dispatch()
B
38 18 64
AM_REST_Settings_Controller::create_or_update_settings()
B
47 19 34
convert_country_code()
B
21
2 256
AfterShip_API_Server::convert_country_code()
B
21
2 256
AfterShip_API_Resource::merge_query_args()
A
43 15 51
Rest_Orders_Helper::get_order_item_data()
A
42 15 46
AfterShip_API_Orders::get_order()
A
34 9 103
AfterShip_API_Resource::validate_request()
A
46 13 36
AfterShip_API_Resource::maybe_add_meta()
A
47 12 34
AfterShip::__construct()
A
37 10 64
AfterShip_Import_Csv::import_tracking()
A
44 11 46
AfterShip_ShipmentTracking_Migrator::migrate_from_shipment_tracking()
A
45 11 41
AfterShip_API_Resource::filter_response_fields()
A
50 11 27
AfterShip_Actions::post_order_tracking()
A
47 10 36
Rest_Orders_Helper::get_formatted_item_data()
A
39 7 71
AfterShip_API_Server::get_index()
A
42 8 50
AfterShip_API_Server::serve_request()
A
48 9 34
AfterShip_Actions::convert_old_meta_in_order()
A
44 8 45
AfterShip_Actions::get_order_item_data()
A
50 9 27
AfterShip_API_Orders::getTrackingInfoByShipmentTracking()
A
50 8 28
AfterShip_API_V3_Orders::getTrackingInfoByShipmentTracking()
A
50 8 28
AfterShip_API_V4_Orders::getTrackingInfoByShipmentTracking()
A
50 8 28
AfterShip_API_Resource::delete()
A
50 8 26
AfterShip_Actions::add_aftership_tracking_actions_button()
A
54 8 20
AfterShip_Import_Csv::admin_enqueue_scripts()
A
46 7 35
AfterShip_API_Server::add_pagination_headers()
A
49 7 32
AM_REST_Controller::get_consumer_key_from_basic_authentication()
A
58 8 16
AfterShip_API_Server::__construct()
S
50 7 29
AfterShip_Actions::get_tracking_items_for_api()
S
52 7 26
AfterShip_Settings::sanitize()
S
55 7 22
AfterShip_Actions::add_tracking_item()
S
48 6 34
AfterShip_API_Common_JSON_Handler::generate_response()
S
46 5 43
AfterShip_API::handle_api_requests()
S
52 6 27
AfterShip_API_Authentication::perform_authentication()
S
53 6 21
AfterShip_API_Server::sort_callback_params()
S
54 6 19
AfterShip_API_Resource::check_permission()
S
56 6 18
AfterShip_Actions::check_aftership_tracking_fields()
S
63 7 10
AM_REST_Controller::parse_header()
S
57 6 15
AfterShip_Import_Csv::generate_log_ajax()
S
58 6 14
AfterShip_Actions::save_meta_box_ajax()
S
49 5 28
AfterShip_Actions::show_notices()
S
53 5 25
AfterShip_API_Server::format_datetime()
S
55 5 20
AfterShip_Actions::add_api_key_field()
S
52 4 33
AfterShip_Actions::get_automizely_aftership_tracking_column()
S
49 4 32
AfterShip_Actions::get_tracking_from_note()
S
58 5 15
AM_REST_Controller::get_authorization_header()
S
59 5 14
AfterShip_API_Server::get_routes()
S
60 5 12
AfterShip_API_V3_Orders::query_orders()
S
46 3 41
AfterShip_API_V4_Orders::query_orders()
S
46 3 41
AfterShip_Import_Csv::print_log_html()
S
53 4 26
AfterShip_API_Orders::query_orders()
S
46 3 41
AfterShip_API_Orders::get_order_notes()
S
51 4 24
AfterShip_Actions::revoke_aftership_key()
S
53 4 24
AfterShip_Actions::load_orders_page_script()
S
48 3 39
AfterShip_API_V3_Orders::get_orders()
S
53 4 23
AfterShip_API_V4_Orders::get_orders()
S
53 4 23
AfterShip_Import_Csv::add_menu()
S
55 4 21
AfterShip_Actions::add_customer_query()
S
55 4 20
AfterShip_Actions::check_order_fulfill_items()
S
57 4 17
AfterShip_API_Orders::get_orders()
S
57 4 16
AfterShip_API_Server::get_headers()
S
57 4 16
AfterShip_Settings::couriers_callback()
S
57 4 16
AfterShip_API_Server::is_xml_request()
S
64 5 9
AfterShip_Actions::delete_tracking_item()
S
58 4 15
AfterShip_API_JSON_Handler::generate_response()
S
58 4 14
AfterShip_Actions::get_tracking_number_for_tracking_button()
S
59 4 14
AfterShip_API_V4_Orders::uniquify_tracking_items()
S
58 4 14
AfterShip_Actions::generate_api_key()
S
59 4 13
AfterShip::install()
S
60 4 13
AM_REST_Controller::get_consumer_key_from_oauth_authentication()
S
60 4 13
AfterShip_Actions::save_tracking_items()
S
59 4 13
AfterShip_Import_Csv::get_user_selected_couriers()
S
61 4 12
AfterShip_Actions::get_tracking_item()
S
63 4 11
AfterShip_Actions::add_permission_cap()
S
63 4 11
AfterShip_API_Orders::edit_order()
S
61 4 11
AfterShip_Actions::email_display()
S
60 4 11
AfterShip_Import_Csv::__construct()
S
53 3 23
AfterShip_Actions::save_meta_box()
S
56 3 17
vi_at_set_time_limit()
S
71 4 5
AfterShip_API_Server::is_json_request()
S
65 4 9
AfterShip::get_selected_couriers()
S
63 4 10
AfterShip_Actions::delete_order_tracking()
S
58 3 14
AFTERSHIP_ORDERS_TRACKING_IMPORT_LOG::log()
S
59 3 13
AfterShip_Actions::get_tracking_items()
S
61 3 13
AfterShip_Actions::add_query()
S
61 3 13
aftership_wpbo_get_woo_version_number()
S
61 3 12
aftership_wpbo_get_woo_version_number()
S
61 3 12
AfterShip_API_Server::error_to_array()
S
62 3 12
AfterShip_Actions::display_html_tracking_item_for_meta_box()
S
49 1 42
AfterShip_Settings::page_init()
S
49 1 42
AfterShip_API_Server::parse_datetime()
S
61 3 12
aftership_wpbo_get_woo_version_number()
S
61 3 12
AFTERSHIP_ORDERS_TRACKING_DATA::set()
S
62 3 11
AfterShip_API_Authentication::authenticate()
S
62 3 11
AfterShip_API_Authentication::get_user_by_api_key()
S
56 2 20
AFTERSHIP_ORDERS_TRACKING_IMPORT_LOG::create_plugin_cache_folder()
S
60 2 18
AfterShip_Actions::get_order_detail()
S
56 2 17
AfterShip_API::register_resources()
S
59 2 16
AfterShip::automizely_aftership_index()
S
69 3 6
AfterShip_API_Orders::get_orders_count()
S
62 3 10
getallheaders()
S
63 3 9
AfterShip_Settings::track_button_callback()
S
69 3 6
Rest_Orders_Helper::merge_meta_item_with_formatted_meta_display_attributes()
S
59 2 15
AfterShip_API_Server::link_header()
S
62 3 10
AfterShip_Protection::get_cart_details_ajax_handler()
S
58 2 15
WC_Dependencies::woocommerce_active_check()
S
74 3 4
AfterShip_API_Orders::get_order_subtotal()
S
68 3 7
AfterShip_Actions::get_courier_by_slug()
S
65 3 9
AfterShip_API_Server::check_authentication()
S
62 3 10
AfterShip::deactivate_modal()
S
68 3 8
AfterShip_Actions::init_aftership_show_orders_actions()
S
68 3 7
AfterShip_Actions::generate_tracking_page_link()
S
63 3 9
AfterShip::as_admin_remove_notice_style()
S
64 3 10
AfterShip_Actions::get_tracking_items_for_display()
S
60 2 13
AfterShip_Actions::format_aftership_tracking_output()
S
61 2 13
AfterShip_Actions::get_meta_box_items_ajax()
S
61 2 12
AfterShip_Actions::mapping_tracking_additional_fields()
S
62 2 11
AfterShip_API_Common_JSON_Handler::map_error_code()
S
64 2 11
AfterShip_Actions::meta_box()
S
53 1 25
AM_REST_Settings_Controller::register_routes()
S
57 1 20
AfterShip_API_Orders::register_routes()
S
56 1 19
AfterShip_API::includes()
S
59 1 16
AfterShip::get_plugin_path()
S
69 2 7
AM_REST_Controller::filter_consumer_key()
S
69 2 7
get_order_id()
S
78 2 3
AfterShip_API_Resource::__construct()
S
64 2 8
AfterShip_Settings::show_order_actions_callback()
S
63 2 10
AfterShip_Settings::custom_domain_callback()
S
70 2 6
AM_REST_Settings_Controller::normalize_custom_domain()
S
68 2 7
AfterShip_Protection::get_instance()
S
72 2 6
AM_REST_Controller::create_item_permissions_check()
S
69 2 6
AfterShip_Protection::apply_aftership_shipping_insurance_fee()
S
70 2 6
AfterShip_Import_Csv::scheduled_cleanup()
S
74 2 5
AM_REST_Settings_Controller::seek_option_value()
S
78 2 3
WC_Dependencies::init()
S
71 2 5
AfterShip_Actions::render_shop_order_columns()
S
70 2 6
AfterShip_API::__construct()
S
66 2 8
AfterShip::deactivation()
S
67 2 7
AM_REST_Controller::delete_item_permissions_check()
S
69 2 6
AfterShip_Actions::handle_woocommerce_rest_insert_order_note()
S
65 2 8
AfterShip_API_Server::is_legacy()
S
71 2 6
AfterShip_Actions::get_instance()
S
72 2 6
AM_REST_Controller::get_items_permissions_check()
S
69 2 6
AfterShip::automizely_aftership_plugin_active()
S
68 2 7
AfterShip_ShipmentTracking_Migrator::init()
S
66 2 8
AfterShip_Actions::migrate()
S
67 2 8
AM_REST_Controller::get_consumer_key()
S
70 2 7
AfterShip_Actions::add_collection_params()
S
68 2 7
AfterShip_API_V4_Settings::normalize_custom_domain()
S
68 2 7
AfterShip_Settings::normalize_custom_domain()
S
68 2 7
aftership()
S
70 2 7
AfterShip_Actions::normalize_custom_domain()
S
68 2 7
AfterShip::includes()
S
59 1 14
AfterShip_Actions::save_order_tracking()
S
59 1 13
AfterShip_API_V5_Orders::register_routes()
S
62 1 12
AfterShip_Actions::display_tracking_info()
S
62 1 12
AM_REST_Settings_Controller::get_settings()
S
61 1 12
AfterShip_API_V3_Orders::register_routes()
S
62 1 12
AfterShip_API_V4_Orders::register_routes()
S
62 1 12
AfterShip_Actions::get_meta_box_item_ajax()
S
63 1 10
AfterShip_Actions::load_plugin_textdomain()
S
74 1 4
AfterShip_ShipmentTracking_Migrator::load()
S
79 1 3
is_woocommerce_active()
S
82 1 3
AfterShip_API_Common_JSON_Handler::parse_body()
S
79 1 3
AfterShip_Protection::set_insurance_fee_ajax_handler()
S
72 1 5
AfterShip_API_Orders::delete_order()
S
74 1 4
AfterShip::add_rest_api()
S
76 1 4
AfterShip_Protection::remove_insurance_fee_ajax_handler()
S
77 1 4
AfterShip::automizely_aftership_connect_page()
S
66 1 10
AfterShip_Actions::add_meta_box()
S
77 1 3
AfterShip::automizely_aftership_admin_menu()
S
66 1 10
AfterShip_API_V5_Orders::get_order()
S
66 1 8
AfterShip_API_JSON_Handler::get_content_type()
S
79 1 3
AfterShip_Actions::meta_box_delete_tracking()
S
64 1 9
AfterShip_API_JSON_Handler::parse_body()
S
79 1 3
AfterShip_API_Resource::is_editable()
S
79 1 3
AfterShip_API_Authentication::__construct()
S
78 1 3
AfterShip_API_Orders::ping()
S
82 1 3
AfterShip_Actions::admin_styles()
S
74 1 4
AfterShip_API::add_query_vars()
S
74 1 5
AfterShip_API_Server::header()
S
78 1 3
AfterShip_API_V3_Orders::ping()
S
82 1 3
AfterShip_API::add_endpoint()
S
71 1 5
AfterShip_Settings::admin_styles()
S
78 1 3
AfterShip_API_V4_Settings::register_routes()
S
68 1 7
AfterShip_API_Resource::is_deletable()
S
79 1 3
AfterShip_Protection::__construct()
S
63 1 10
AfterShip_API_Server::send_status()
S
81 1 3
AfterShip_API_Server::get_raw_data()
S
80 1 3
AfterShip_API_Server::get_paginated_url()
S
69 1 6
AfterShip_API_V5_Settings::register_routes()
S
68 1 7
AM_REST_Settings_Controller::__construct()
S
98 1 1
AfterShip_Import_Csv::sanitize_text_field()
S
80 1 3
AfterShip_Settings::__construct()
S
72 1 5
AfterShip_API_Common_JSON_Handler::get_content_type()
S
79 1 3
AfterShip_Import_Csv::set()
S
79 1 3
AfterShip_Actions::woocommerce_subscriptions_renewal_order_meta_query()
S
77 1 4
Rest_Orders_Helper::__construct()
S
80 1 3
AfterShip_Actions::handle_woocommerce_shipstation_shipnotify()
S
72 1 5
AfterShip_Actions::shop_order_columns()
S
76 1 4
AfterShip_API_V4_Settings::get_list()
S
72 1 5
order_post_meta_getter()
S
74 1 4
AfterShip_Settings::print_section_info()
S
91 1 2
AfterShip_Protection::handle_woocommerce_cart_emptied()
S
80 1 3
AfterShip::aftership_setting_page()
S
80 1 3
AfterShip::automizely_aftership_add_admin_css()
S
70 1 6
AfterShip_Settings::library_scripts()
S
64 1 9
AfterShip_Actions::get_settings()
S
65 1 10
AfterShip_API_Resource::is_readable()
S
79 1 3