Code Analysis: ReachShip WooCommerce Multi-Carrier & Conditional Shipping 1.1.0

Function Rating Maintainability Complexity Lines of code
elex_reachship_get_conditional_settings_carriers_and_flat_rate_callback()
D
18
74 202
elex_reachship_filter_rates_services_callback()
D
20
66 177
Elex_Reachship_Shipping_Methods::calculate_shipping()
D
19
62 185
Elex_Reachship_Api_Endpoints_Handler::elex_rs_generate_shipment_api_handler()
D
18
50 217
Mypost_Action_Schedulers::reachship_auto_generate_shipments_auspost_mypost_callback()
D
17
36 283
Elex_RS_Bulk_Actions_Endpoints::generate_shipments_and_save()
D
19
34 255
Elex_RS_Bulk_Actions_Endpoints::elex_rs_create_bulk_shipment_and_pickup_mypost()
D
24
36 192
Elex_Reachship_Api_Endpoints_Handler::elex_rs_generate_mypost_bulk_shipment_api_handler()
D
22
34 179
Elex_Reachship_Api_Endpoints_Handler::reachship_regenerate_package_handler_bulk()
C
23
21 216
Elex_Reachship_Api_Endpoints_Handler::reachship_generate_woocommerce_order_package_handler()
C
23
21 211
Elex_RS_Orders_Details_Endpoints::elex_rs_get_reachship_woocommerce_orders_summary()
C
25
24 163
Elex_Reachship_Api_Endpoints_Handler::reachship_regenerate_package_handler()
C
25
22 184
Elex_Reachship_Api_Endpoints_Handler::elex_rs_bulk_rates_api_handler()
C
29
23 128
Elex_Reachship_Api_Endpoints_Handler::elex_rs_rates_api_handler()
B
33 19 94
Elex_RS_Enqueue_Admin_Scripts::register_reachship_scripts()
B
32 17 103
Elex_Reachship_Api_Endpoints_Handler::return_modified_rates()
B
40 19 55
Elex_RS_Orders_Details_Endpoints::save_reachship_shipments_checkout()
B
33 14 97
Elex_Reachship_Shipping_Methods::calculate_auspost_mypost_extra_charges()
A
40 15 60
Elex_RS_Bulk_Actions_Endpoints::create_label_and_save()
A
33 11 103
Reachship_WC_Product_Page_Settings::reachship_save_product_settings_fields()
A
46 15 41
Elex_RS_Orders_Details_Endpoints::elex_rs_search_reachship_woocommerce_order()
A
33 11 100
Elex_Reachship_Api_Endpoints_Handler::calculate_auspost_mypost_shipment_extra_charges()
A
40 13 63
Other_Carriers_Action_Schedulers::reachship_auto_generate_shipment_other_carriers()
A
36 11 79
Elex_RS_Bulk_Actions_Endpoints::create_pickup_and_save()
A
34 9 95
Reachship_WC_Product_Page_Settings::reachship_product_data_panels()
A
46 13 34
elex_reachship_get_discrete_package_items_callback()
A
38 10 73
Elex_RS_API_Handlers::elex_rs_save_onboarding_settings()
A
42 11 51
ReachShip_Global_Functions::get_origin_address()
A
53 11 21
elex_reachship_get_system_info_callback()
A
45 10 35
Elex_Reachship_Api_Endpoints_Handler::reachship_generate_label_from_shipment_api_handler_bulk()
A
37 7 79
Elex_Reachship_Api_Endpoints_Handler::reachship_schedule_pickup_api_handler_bulk()
A
38 6 81
Elex_Reachship_Api_Endpoints_Handler::reachship_generate_label_from_shipment_api_handler()
A
38 6 75
Elex_Reachship_Api_Endpoints_Handler::elex_rs_bulk_delete_shipment_api_handler()
A
38 6 73
Elex_RS_Bulk_Actions_Endpoints::create_order_and_save()
A
38 6 72
Elex_RS_Bulk_Actions_Endpoints::is_signature_enabled()
A
51 9 25
Elex_Reachship_Api_Endpoints_Handler::is_signature_enabled()
A
51 9 25
Mypost_Action_Schedulers::is_signature_enabled()
A
51 9 25
Elex_Rs_Shipment_Meta_Model::update_shipment_meta()
A
47 8 39
Elex_Reachship_Api_Endpoints_Handler::reachship_schedule_pickup_api_handler()
A
37 5 84
Elex_RS_API_Handlers::elex_rs_get_error_logs()
A
52 9 23
Elex_Reachship_Api_Endpoints_Handler::reachship_extract_store_retrieve_labels_bulk()
A
42 7 52
ReachshipWoocommerceShipping\Review_Components::update_get_options()
A
53 9 22
ReachShip_Auspost_Mypost_Custom_Checkout_Fields::rs_auspost_cart_shipping_packages()
A
55 9 18
Elex_Reachship_Api_Endpoints_Handler::reachship_extract_store_retrieve_labels()
A
42 6 56
Elex_RS_API_Handlers::elex_rs_save_account_specific_carrier_settings()
A
46 7 41
Elex_RS_API_Handlers::elex_rs_save_carrier_services()
A
46 7 41
Elex_Reachship_Api_Endpoints_Handler::reachship_generate_order_from_shipment_api_handler_bulk()
A
39 5 69
Elex_Reachship_Api_Endpoints_Handler::elex_rs_delete_shipment_api_handler()
A
39 5 69
Elex_RS_Bulk_Actions_Endpoints::confirm_order_and_pickup_and_save()
A
40 5 66
Elex_RS_API_Handlers::elex_rs_update_carrier_credentials()
A
48 7 35
Elex_RS_API_Handlers::elex_rs_save_carrier_credentials()
A
48 7 35
Elex_RS_API_Handlers::elex_rs_get_woocommerce_product_categories()
A
48 7 33
Reachship_Shipments_Request_Generator::get_shipment_request_body()
A
38 4 78
elex_reachship_get_product_ids_callback()
S
50 7 26
Elex_RS_API_Handlers::elex_rs_delete_carrier_credentials()
S
46 6 39
Elex_Rs_Shipment_Meta_Model::get_shipment_meta()
S
53 7 24
elex_reachship_get_conditional_shipping_options()
S
53 7 23
Elex_RS_Enqueue_Admin_Scripts::enqueue_scripts()
S
54 7 23
Elex_Reachship_Api_Endpoints_Handler::reachship_track_shipment_api_handler()
S
42 5 53
Elex_RS_API_Handlers::elex_rs_get_carrier_services()
S
53 7 22
Mypost_Action_Schedulers::is_cover_enabled()
S
52 7 22
Elex_Reachship_Api_Endpoints_Handler::is_cover_enabled()
S
52 7 22
Elex_RS_Bulk_Actions_Endpoints::is_cover_enabled()
S
52 7 22
Elex_Reachship_Api_Endpoints_Handler::reachship_generate_order_from_shipment_api_handler()
S
40 4 66
Other_Carriers_Action_Schedulers::reachship_auto_schedule_pickup_other_carriers()
S
44 5 47
Elex_Reachship_Shipping_Methods::get_reachship_request_body()
S
49 6 30
Elex_Reachship_Shipping_Methods::__construct()
S
45 5 43
Elex_RS_API_Handlers::elex_rs_get_carrier_credentials_summary()
S
52 6 24
elex_reachship_get_predefined_boxes_callback()
S
54 6 23
elex_reachship_get_enabled_boxes_callback()
S
53 6 22
Elex_RS_Bulk_Actions_Endpoints::maybe_update_wc_order_status()
S
54 6 21
RS_Action_Schedulers_Base::maybe_update_wc_order_status()
S
54 6 21
Elex_RS_Enqueue_Admin_Scripts::get_translations()
S
53 6 21
Elex_Reachship_Api_Endpoints_Handler::maybe_update_wc_order_status()
S
54 6 21
Reachship_PDF_Utils::extract_pdf_and_download()
S
54 6 20
ReachShip_Global_Functions::get_cached_api_token()
S
55 6 19
ReachShip_Global_Functions::get_lowest_price()
S
51 5 26
ReachShip_Auspost_Mypost_Custom_Checkout_Fields::rs_auspost_mypost_add_custom_checkout_fields()
S
54 5 21
Elex_RS_Packaging_Settings_Endpoints::elex_rs_disable_packaging_setting()
S
56 5 18
Elex_Rs_Shipment_Model::get_shipment()
S
57 5 18
Elex_RS_Conditional_Shipping_Settings_Endpoints::elex_rs_disable_conditional_shipping_settings_rule()
S
56 5 18
Elex_Rs_Shipment_Meta_Model::delete_shipment_meta()
S
57 5 17
Reachship_Shipments_Request_Generator::get_auspost_mypost_label_request_body()
S
50 4 32
Elex_RS_API_Handlers::elex_rs_save_auspost_mypost_settings()
S
57 5 16
Elex_Rs_Delivery_Settings_Model::__construct()
S
62 6 9
Elex_Rs_Label_Generation_Settings_Model::__construct()
S
64 6 8
ReachShip_Auspost_Mypost_Custom_Checkout_Fields::rs_auspost_mypost_checkout_update_order_meta()
S
60 5 15
Elex_RS_Bulk_Actions_Endpoints::elex_rs_get_bulk_shipment_records()
S
50 4 29
Elex_Reachship_Shipping_Methods::get_reachship_general_settings()
S
62 5 11
Elex_RS_Orders_Details_Endpoints::maybe_update_rs_shipment_status()
S
54 4 22
Elex_RS_API_Handlers::elex_rs_search_woocommerce_products()
S
54 4 19
Reachship_Plugin_Initiator_Functions::log_reachship_errors()
S
48 3 34
Elex_RS_Bulk_Actions_Endpoints::get_base_shipments_query()
S
57 4 16
Reachship_WC_Order_Page_Metabox::reachship_package_selection_label_generation_metabox()
S
63 5 9
Reachship_WC_Order_Page_Metabox::add_reachship_generate_shipment_metabox()
S
63 5 9
Elex_RS_API_Handlers::elex_rs_save_cas_settings()
S
58 4 14
Elex_RS_API_Handlers::elex_rs_save_general_settings()
S
58 4 14
Elex_RS_Orders_Details_Endpoints::get_reachship_product_meta()
S
59 4 14
Reachship_Plugin_Initiator_Functions::rs_check_if_woocommerce_active()
S
59 4 13
Elex_Reachship_Api_Endpoints_Handler::reachship_get_flat_rate_boxes()
S
53 3 22
ReachShip_Shipping_Hooks::reachship_shipper_address()
S
57 3 17
Elex_RS_Conditional_Shipping_Settings_Endpoints::elex_rs_delete_conditional_shipping_settings_rule()
S
57 3 16
Elex_RS_Packaging_Settings_Endpoints::elex_rs_delete_packaging_setting()
S
57 3 16
Elex_RS_API_Handlers::elex_rs_get_woocommerce_shipping_classes()
S
59 3 15
Elex_Reachship_Api_Endpoints_Handler::update_rs_shipments_for_rates()
S
50 2 30
ReachShip_Global_Functions::maybe_convert_product_weight()
S
60 3 13
Elex_RS_Packaging_Settings_Endpoints::elex_rs_save_packaging_settings()
S
60 3 13
Elex_RS_Conditional_Shipping_Settings_Endpoints::elex_rs_save_conditional_shipping_settings()
S
60 3 13
Elex_RS_Bulk_Actions_Endpoints::get_shipments()
S
60 3 13
ReachshipWoocommerceShipping\Review_Components::admin_notice()
S
61 3 13
Elex_RS_API_Handlers::elex_rs_save_address_records()
S
61 3 12
Elex_RS_Bulk_Actions_Endpoints::get_segregated_shipments()
S
63 3 11
Other_Carriers_Action_Schedulers::elex_reachship_auto_generate_shipments_other_carriers_callback()
S
62 3 11
RS_Action_Schedulers_Base::log_failed_auto_shipment_generation_message()
S
63 3 11
RS_Action_Schedulers_Base::log_failed_auto_schedule_pickup_message()
S
63 3 11
Reachship_Shipments_Request_Generator::get_auspost_mypost_order_request_body()
S
56 2 20
Define_Reachship_Custom_Db_Tables::reachship_create_custom_tables_for_shipments()
S
52 1 33
Elex_RS_API_Handlers::elex_rs_fetch_woocommerce_store_address()
S
58 2 17
ReachShip_Global_Functions::maybe_convert_product_dimensions()
S
57 2 17
Elex_RS_API_Handlers::__construct()
S
48 1 32
Elex_RS_Enqueue_Cart_Checkout_Scripts::reachship_get_rates_request_logs()
S
59 2 16
Elex_RS_Dashboard_Stats_Endpoints::elex_rs_get_dashboard_stats_summary()
S
59 2 15
elex_reachship_calculate_flat_rate()
S
67 3 7
Elex_Rs_Shipment_Model::set_carrier_code()
S
72 3 5
ReachshipWoocommerceShipping\Review_Components::show_review()
S
64 3 10
Elex_Rs_Delivery_Settings_Model::set_working_days()
S
72 3 5
Elex_Rs_Shipment_Model::set_current_shipment_status()
S
72 3 5
Elex_Rs_Shipment_Model::set_account_name()
S
72 3 5
Elex_RS_API_Handlers::elex_rs_verify_client_credentials()
S
58 2 15
ReachShip_Global_Functions::get_api_mode()
S
70 3 5
Elex_RS_API_Handlers::elex_rs_save_delivery_settings()
S
58 2 15
Define_Reachship_Constants::define_constants()
S
69 3 7
Elex_Rs_Label_Generation_Settings_Model::set_woocommerce_order_status_for_ready_to_ship()
S
72 3 5
Elex_RS_API_Handlers::elex_rs_save_label_generation_settings()
S
58 2 14
Elex_RS_Bulk_Actions_Endpoints::elex_rs_delete_bulk_shipment_records()
S
60 2 13
Reachship_Review_Component_Init::review_component_init()
S
59 2 13
Elex_Reachship_Shipping_Methods::add_flat_rates()
S
61 2 13
Reachship_PDF_Utils::extract_and_download_bulk_pdf()
S
59 2 13
Elex_RS_API_Handlers::elex_rs_disconnect_session()
S
62 2 11
Elex_Reachship_Api_Endpoints_Handler::__construct()
S
53 1 21
Elex_RS_Conditional_Shipping_Settings_Endpoints::elex_rs_get_conditional_shipping_settings()
S
63 2 10
Elex_Rs_Label_Generation_Settings_Model::set_is_auto_label_generation_enabled()
S
73 2 5
ReachshipWoocommerceShipping\Review_Components::show_trubleshoot()
S
69 2 7
Elex_RS_API_Handlers::elex_rs_get_address_records()
S
67 2 8
Elex_Rs_Shipment_Model::set_woocommerce_order_id()
S
74 2 5
Elex_Rs_Delivery_Settings_Model::set_show_estimated_delivery_date()
S
73 2 5
Elex_Rs_Label_Generation_Settings_Model::set_order_status_after_shipment_created()
S
73 2 5
Elex_Reachship_Shipping_Methods::init()
S
60 1 15
Elex_RS_Bulk_Actions_Endpoints::wrap_implode()
S
70 2 6
Elex_RS_Enqueue_Admin_Scripts::register_reachship_styles()
S
69 2 6
Elex_RS_API_Handlers::elex_rs_get_auspost_mypost_settings()
S
67 2 8
Elex_RS_API_Handlers::elex_rs_get_system_info()
S
65 2 9
Elex_RS_Enqueue_Cart_Checkout_Scripts::__construct()
S
59 1 15
Elex_Rs_Delivery_Settings_Model::set_cutoff_time()
S
73 2 5
ReachShip_API_Hooks::reachship_get_token()
S
68 2 7
Elex_Rs_Shipment_Model::set_current_shipment_status_date()
S
74 2 5
Elex_Rs_Shipment_Model::__construct()
S
69 2 7
Elex_Rs_Delivery_Settings_Model::set_ready_time()
S
73 2 5
RS_Action_Schedulers_Base::get_reachship_shipments()
S
65 2 10
Elex_RS_API_Handlers::elex_rs_reset_carrier_credentials_cache()
S
66 2 9
reachship_db_migrate_auspost_service()
S
71 2 6
Elex_Rs_Shipment_Model::set_service_code()
S
74 2 5
Elex_RS_Packaging_Settings_Endpoints::elex_rs_get_packaging_settings()
S
63 2 10
Mypost_Action_Schedulers::merge_shipment_data_with_shipment_details_json()
S
64 1 11
Elex_RS_Bulk_Actions_Endpoints::merge_shipment_data_with_shipment_details_json()
S
64 1 11
Reachship_Plugin_Initiator_Functions::reachship_admin_menu()
S
60 1 11
Reachship_WC_Product_Page_Settings::__construct()
S
71 1 5
ReachShip_Global_Functions::api_client()
S
81 1 3
Other_Carriers_Action_Schedulers::__construct()
S
74 1 4
Elex_Rs_Delivery_Settings_Model::get_settings()
S
82 1 3
Elex_RS_Enqueue_Admin_Scripts::purifyJSONBoolean()
S
77 1 3
Elex_RS_Orders_Details_Endpoints::get_api_mode()
S
77 1 4
Elex_Rs_Delivery_Settings_Model::get_show_estimated_delivery_date()
S
80 1 3
Reachship_WC_Product_Page_Settings::reachship_settings_tabs()
S
65 1 9
RS_Action_Schedulers_Base::get_api_mode()
S
77 1 4
Elex_Rs_Delivery_Settings_Model::get_cutoff_time()
S
80 1 3
Reachship_WC_Order_Page_Metabox::reachship_package_generation_metabox_content()
S
82 1 3
Reachship_Review_Component_Init::__construct()
S
82 1 3
Reachship_WC_Order_Page_Metabox::show_generate_shipment_metabox()
S
71 1 6
Elex_RS_Packaging_Settings_Endpoints::__construct()
S
70 1 6
Elex_RS_Orders_Details_Endpoints::__construct()
S
71 1 5
Define_Reachship_Constants::__construct()
S
67 1 8
Elex_RS_Orders_Details_Endpoints::reachship_order_exists()
S
67 1 8
Other_Carriers_Action_Schedulers::get_api_mode()
S
77 1 4
Elex_Rs_Label_Generation_Settings_Model::get_order_status_after_shipment_created()
S
80 1 3
Elex_Rs_Delivery_Settings_Model::save()
S
80 1 3
Reachship_WC_Order_Page_Metabox::__construct()
S
75 1 4
Reachship_WC_Order_Page_Metabox::show_reachship_order_check()
S
68 1 7
Elex_RS_Bulk_Actions_Endpoints::get_order_status_after_shipment_creation()
S
76 1 4
Elex_Rs_Label_Generation_Settings_Model::get_is_auto_label_generation_enabled()
S
80 1 3
Elex_Rs_Delivery_Settings_Model::get_working_days()
S
80 1 3
Elex_Reachship_Api_Endpoints_Handler::get_order_status_after_shipment_creation()
S
76 1 4
ReachShip_API_Hooks::__construct()
S
78 1 3
Reachship_Plugin_Initiator_Functions::__construct()
S
71 1 5
ReachShip_Global_Functions::request_builder()
S
81 1 3
Reachship_WC_Order_Page_Metabox::reachship_package_selection_and_label_generation_metabox_content()
S
82 1 3
Reachship_Plugin_Initiator_Functions::reachship_plugin_action_links()
S
65 1 8
Elex_RS_Dashboard_Stats_Endpoints::__construct()
S
79 1 3
ReachShip_Auspost_Mypost_Custom_Checkout_Fields::__construct()
S
69 1 6
Elex_RS_Orders_Details_Endpoints::get_wc_status_for_ready_to_ship()
S
76 1 4
ReachShip_Shipping_Hooks::__construct()
S
78 1 3
ReachshipWoocommerceShipping\Review_Components::update_option()
S
78 1 3
Elex_RS_Conditional_Shipping_Settings_Endpoints::__construct()
S
70 1 6
Elex_Rs_Delivery_Settings_Model::get_ready_time()
S
80 1 3
RS_Action_Schedulers_Base::get_order_status_after_shipment_creation()
S
76 1 4
Reachship_Plugin_Initiator_Functions::elex_reachship_load_textdomain()
S
75 1 4
ReachshipWoocommerceShipping\Review_Components::on_activation()
S
79 1 3
Elex_Rs_Label_Generation_Settings_Model::get_settings()
S
82 1 3
Elex_RS_Enqueue_Admin_Scripts::__construct()
S
78 1 3
Elex_Rs_Label_Generation_Settings_Model::save()
S
80 1 3
Reachship_Plugin_Initiator_Functions::admin_menu_html()
S
82 1 3
ReachshipWoocommerceShipping\Review_Components::get_option()
S
78 1 3
ReachshipWoocommerceShipping\Review_Components::__construct()
S
67 1 7
ReachshipWoocommerceShipping\Review_Components::delete_options()
S
72 1 5
Elex_RS_Bulk_Actions_Endpoints::__construct()
S
72 1 5
Elex_Rs_Shipment_Meta_Model::is_json()
S
76 1 4
Elex_Rs_Label_Generation_Settings_Model::get_woocommerce_order_status_for_ready_to_ship()
S
80 1 3
Mypost_Action_Schedulers::__construct()
S
78 1 3
Elex_RS_Bulk_Actions_Endpoints::get_api_mode()
S
77 1 4