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

Function Rating Maintainability Complexity Lines of code
AfterShip_API_V4_Orders::get_order()
C
24
23 185
AfterShip_API_V3_Orders::get_order()
C
24
23 184
AfterShip_API_Server::dispatch()
B
38 18 64
convert_country_code()
B
21
2 256
AfterShip_API_Server::convert_country_code()
B
21
2 256
AfterShip_API_V4_Settings::update()
A
50 17 26
AfterShip_API_Resource::merge_query_args()
A
43 15 51
Rest_Orders_Helper::get_order_item_data()
A
42 15 46
AfterShip_Actions::meta_box()
A
30 6 166
AfterShip_API_Orders::get_order()
A
34 9 103
AfterShip_API_Resource::validate_request()
A
46 13 36
AM_REST_Settings_Controller::create_or_update_settings()
A
51 13 24
AfterShip_API_Resource::maybe_add_meta()
A
47 12 34
AfterShip_API_Resource::filter_response_fields()
A
50 11 27
AfterShip::__construct()
A
40 9 51
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_API_V3_Orders::getTrackingInfoByShipmentTracking()
A
50 8 28
AfterShip_API_V4_Orders::getTrackingInfoByShipmentTracking()
A
50 8 28
AfterShip_API_Orders::getTrackingInfoByShipmentTracking()
A
50 8 28
AfterShip_API_Resource::delete()
A
50 8 26
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_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
AM_REST_Controller::parse_header()
S
57 6 15
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_Settings::sanitize()
S
59 5 16
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_API_Orders::query_orders()
S
46 3 41
AfterShip_Actions::revoke_aftership_key()
S
53 4 24
AfterShip_API_Orders::get_order_notes()
S
51 4 24
AfterShip_API_V3_Orders::get_orders()
S
53 4 23
AfterShip_API_V4_Orders::get_orders()
S
53 4 23
AfterShip_API_Server::get_headers()
S
57 4 16
AfterShip_API_Orders::get_orders()
S
57 4 16
AfterShip_API_Server::is_xml_request()
S
64 5 9
AfterShip_Actions::convert_old_meta_in_order()
S
50 3 30
AfterShip_Actions::delete_tracking_item()
S
58 4 15
AfterShip_Actions::get_tracking_number_for_tracking_button()
S
59 4 14
AfterShip_API_V4_Orders::uniquify_tracking_items()
S
58 4 14
AfterShip_API_JSON_Handler::generate_response()
S
58 4 14
AfterShip_Actions::generate_api_key()
S
59 4 13
AM_REST_Controller::get_consumer_key_from_oauth_authentication()
S
60 4 13
AfterShip::install()
S
62 4 12
AfterShip_API_Orders::edit_order()
S
61 4 11
AfterShip_Actions::add_permission_cap()
S
63 4 11
AfterShip_Actions::email_display()
S
60 4 11
AfterShip_Actions::get_tracking_item()
S
63 4 11
AfterShip_Actions::save_meta_box()
S
56 3 17
AfterShip::get_selected_couriers()
S
63 4 10
AfterShip_API_Server::is_json_request()
S
65 4 9
AfterShip_Actions::add_query()
S
61 3 13
AfterShip_Settings::couriers_callback()
S
59 3 13
AfterShip_Actions::get_tracking_items()
S
61 3 13
aftership_wpbo_get_woo_version_number()
S
61 3 12
AfterShip_API_Server::parse_datetime()
S
61 3 12
AfterShip_Actions::display_html_tracking_item_for_meta_box()
S
49 1 42
AfterShip_API_Server::error_to_array()
S
62 3 12
aftership_wpbo_get_woo_version_number()
S
61 3 12
aftership_wpbo_get_woo_version_number()
S
61 3 12
AfterShip_API_Authentication::authenticate()
S
62 3 11
AfterShip_Settings::page_init()
S
51 1 35
AfterShip_API_Authentication::get_user_by_api_key()
S
56 2 20
AfterShip_API::register_resources()
S
59 2 16
AfterShip::automizely_aftership_index()
S
69 3 6
AfterShip_API_Orders::get_order_subtotal()
S
68 3 7
AfterShip_API_Server::link_header()
S
62 3 10
getallheaders()
S
63 3 9
AfterShip_Actions::generate_tracking_page_link()
S
63 3 9
Rest_Orders_Helper::merge_meta_item_with_formatted_meta_display_attributes()
S
59 2 15
AfterShip_Actions::get_courier_by_slug()
S
65 3 9
AfterShip_Settings::track_button_callback()
S
69 3 6
WC_Dependencies::woocommerce_active_check()
S
74 3 4
AfterShip::deactivate_modal()
S
68 3 8
AfterShip_API_Orders::get_orders_count()
S
62 3 10
AfterShip::as_admin_remove_notice_style()
S
64 3 10
AfterShip_API_Server::check_authentication()
S
62 3 10
AfterShip_Actions::get_tracking_items_for_display()
S
60 2 13
AfterShip_Actions::save_tracking_items()
S
60 2 13
AfterShip_Actions::get_meta_box_items_ajax()
S
61 2 12
AfterShip_API_Common_JSON_Handler::map_error_code()
S
64 2 11
AfterShip_Actions::mapping_tracking_additional_fields()
S
62 2 11
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()
S
70 2 7
AM_REST_Controller::get_consumer_key()
S
70 2 7
AM_REST_Settings_Controller::seek_option_value()
S
78 2 3
AM_REST_Controller::delete_item_permissions_check()
S
69 2 6
AfterShip_Actions::get_instance()
S
72 2 6
AfterShip::automizely_aftership_plugin_active()
S
71 2 6
AM_REST_Controller::get_items_permissions_check()
S
69 2 6
WC_Dependencies::init()
S
71 2 5
AfterShip_API_Server::is_legacy()
S
71 2 6
AM_REST_Controller::filter_consumer_key()
S
69 2 7
AfterShip::get_plugin_path()
S
69 2 7
get_order_id()
S
78 2 3
AfterShip_Actions::migrate()
S
67 2 8
AfterShip_Actions::add_collection_params()
S
68 2 7
AfterShip_API::__construct()
S
66 2 8
AfterShip_API_Resource::__construct()
S
64 2 8
AfterShip_Settings::custom_domain_callback()
S
70 2 6
AM_REST_Controller::create_item_permissions_check()
S
69 2 6
AfterShip_Actions::normalize_custom_domain()
S
68 2 7
AM_REST_Settings_Controller::normalize_custom_domain()
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_API_V3_Orders::register_routes()
S
62 1 12
AfterShip_API_V4_Orders::register_routes()
S
62 1 12
AfterShip_Actions::display_tracking_info()
S
62 1 12
AfterShip_API_V5_Orders::register_routes()
S
62 1 12
AM_REST_Settings_Controller::get_settings()
S
72 1 5
AfterShip::automizely_aftership_connect_page()
S
66 1 10
AfterShip_Settings::print_section_info()
S
91 1 2
AfterShip_API_JSON_Handler::parse_body()
S
79 1 3
AfterShip_API_V3_Orders::ping()
S
82 1 3
AfterShip_Actions::admin_styles()
S
74 1 4
AfterShip_API_Resource::is_editable()
S
79 1 3
AfterShip_API_Common_JSON_Handler::get_content_type()
S
79 1 3
AfterShip::aftership_setting_page()
S
80 1 3
Rest_Orders_Helper::__construct()
S
80 1 3
AM_REST_Settings_Controller::__construct()
S
98 1 1
AfterShip_API_Server::get_paginated_url()
S
69 1 6
AfterShip::automizely_aftership_add_admin_css()
S
70 1 6
AfterShip_Actions::load_plugin_textdomain()
S
74 1 4
AfterShip_Settings::__construct()
S
72 1 5
is_woocommerce_active()
S
82 1 3
order_post_meta_getter()
S
74 1 4
AfterShip_API::add_query_vars()
S
74 1 5
AfterShip::automizely_aftership_admin_menu()
S
66 1 10
AfterShip_API_V4_Settings::get_list()
S
72 1 5
AfterShip::includes()
S
67 1 8
AfterShip_API_Orders::delete_order()
S
74 1 4
AfterShip_API_Resource::is_deletable()
S
79 1 3
AfterShip_Settings::admin_styles()
S
79 1 3
AfterShip_Settings::library_scripts()
S
66 1 8
AfterShip_API_V5_Orders::get_order()
S
66 1 8
AfterShip_API::add_endpoint()
S
71 1 5
AfterShip_API_Server::send_status()
S
81 1 3
AfterShip::deactivation()
S
70 1 6
AfterShip_API_Orders::ping()
S
82 1 3
AfterShip_API_V4_Settings::register_routes()
S
68 1 7
AfterShip_Actions::woocommerce_subscriptions_renewal_order_meta_query()
S
77 1 4
AfterShip_API_Server::header()
S
78 1 3
AfterShip::add_rest_api()
S
76 1 4
AfterShip_API_Resource::is_readable()
S
79 1 3
AfterShip_API_Authentication::__construct()
S
78 1 3
AfterShip_API_Common_JSON_Handler::parse_body()
S
79 1 3
AfterShip_API_JSON_Handler::get_content_type()
S
79 1 3
AfterShip_Actions::meta_box_delete_tracking()
S
64 1 9
AfterShip_API_Server::get_raw_data()
S
80 1 3
AfterShip_API_V5_Settings::register_routes()
S
68 1 7
AfterShip_Actions::add_meta_box()
S
77 1 3
AfterShip_Actions::get_meta_box_item_ajax()
S
63 1 10