Code Analysis: Shiptimize for WooCommerce 3.1.41

Function Rating Maintainability Complexity Lines of code
ShiptimizeShipping::writeShippingClassFree()
C
26
25 171
ShiptimizeShipping::writeShippingClass()
C
27
25 153
WooShiptimizeOrder::export()
B
35 19 84
ShiptimizeOptionsUIDefault::print_table_rate_shipping_plus()
B
35 18 91
ShiptimizeConnector::options_section()
B
34 17 93
WooShiptimizeOrder::shipments_response()
B
39 17 62
WooShiptimizeOrder::set_carrier()
B
39 16 64
ShiptimizeOrder::get_api_props()
B
37 15 76
ShiptimizeOrderUI::get_status_icon()
B
39 15 67
ShiptimizeWCFM::request_account()
A
47 17 30
ShiptimizeWCFM::auto_export()
A
42 16 45
ShiptimizeOrder::normalizeData()
A
45 15 38
ShiptimizeWCFM::export()
A
39 13 60
ShiptimizeV3::__()
A
51 14 25
WooShiptimize::create_account()
A
41 12 55
ShiptimizeConnector::account_page()
A
31 1 218
ShiptimizeWCFM::save_options()
A
48 13 31
WooShiptimizeOrder::print_label()
A
43 11 47
WooShiptimize::refresh_carriers()
A
48 12 32
ShiptimizeShipping::shipping_fragments()
A
44 10 45
ShiptimizeWCFM::get_carrier_for_order()
A
43 10 45
ShiptimizeWCFM::copy_shipping_rules_to_user()
A
48 10 33
ShiptimizeWCFM::api_update()
A
42 9 47
ShiptimizeOptionsUIDefault::print_settings_form()
A
43 8 57
ShiptimizeConnector::connect_to_master()
A
51 10 23
ShiptimizeMarketplace::shipments_response()
A
47 9 33
ShiptimizeApiV3::send_to_api()
A
44 8 43
ShiptimizeShipping::writeWeightShippingClass()
A
37 4 101
WooShiptimize::callback_url()
A
47 8 38
ShiptimizeMarketplace::request_account()
A
46 8 36
ShiptimizeWCFM::vendor_shipping_options()
A
54 9 19
WooShiptimizeOrder::set_carrier_cod()
A
51 8 27
ShiptimizeWCFM::save_shipping()
A
52 8 25
ShiptimizeOptionsUI::table_rate_checks()
A
52 8 25
ShiptimizeOptionsUIDefault::print_brazilian_fields()
S
47 6 45
ShiptimizeWCFM::vendor_options()
S
49 7 29
WooShiptimize::api_update()
S
49 7 29
ShiptimizeOrderUI::custom_js_to_head()
S
45 6 42
ShiptimizeWCFM::scripts_and_styles()
S
52 7 23
WooShiptimize::activate()
S
52 7 22
ShiptimizeOptionsUI::get_custom_field_select()
S
53 7 19
ShiptimizeShipping::clear_carrier_classes()
S
55 7 18
ShiptimizeShipping::get_shiptimize_carrier()
S
56 7 17
WooShiptimizeOrder::get_product_with_meta()
S
49 6 30
ShiptimizeWCFM::shiptimize_options()
S
48 5 44
ShiptimizeWCFM::vendor_shipping()
S
59 7 14
ShiptimizeWCFM::vendor_shipping_rules()
S
59 7 14
ShiptimizeShipping::ajax_get_pickup_locations()
S
51 6 27
WooShiptimize::print_pickup_label()
S
59 7 12
WooShiptimizeOrder::set_brazilian_fields()
S
53 6 24
ShiptimizeOptionsUIDefault::print_carriers()
S
53 6 23
ShiptimizeWCFM::get_client_data()
S
42 4 53
WooShiptimize::get_api()
S
54 6 22
ShiptimizeShipping::get_shiptimize_carrier_from_table_rates()
S
54 6 21
WooShiptimizeOrder::set_woo_extra_fields()
S
38 1 96
ShiptimizeDokan::api_update()
S
54 6 21
ShiptimizeOrderUI::action_filter_order_status()
S
57 6 17
WooShiptimize::auto_export()
S
56 6 16
WooShiptimizeOrder::set_dimensions()
S
50 5 30
ShiptimizeOptionsUI::page_init()
S
50 5 28
ShiptimizeOrderUI::ajax_monitor_label_status()
S
50 5 28
ShiptimizeOrder::is_address_valid()
S
60 6 12
ShiptimizeOptions::getOptionValue()
S
49 4 41
ShiptimizeWCFM::actions()
S
45 4 39
ShiptimizeShipping::shiptimize_order_submited()
S
52 5 24
ShiptimizeOptionsUI::grantToken()
S
54 5 22
ShiptimizeOrder::escape_text_data()
S
54 5 19
ShiptimizeWCFM::disconnect()
S
55 5 19
WooShiptimize::bootstrap()
S
56 5 17
ShiptimizeWCFM::connect()
S
58 5 17
ShiptimizeOrderUI::bulk_export()
S
56 5 16
ShiptimizeWCFM::vendor_shipping_fields()
S
63 6 10
ShiptimizeOrderUI::query_filter_order_status_where()
S
63 6 9
WooShiptimize::grant_valid_token()
S
64 6 9
ShiptimizeShipping::checkout_validation()
S
57 5 14
WooShiptimizeOrder::checkSimpleOptionWithOrderValue()
S
59 5 14
shiptimize_upgrade_function()
S
62 5 11
WooShiptimize::parse_request()
S
63 5 11
shiptimize_account_print_form()
S
51 4 25
WooShiptimizeOrder::set_address()
S
53 4 24
ShiptimizeShipping::get_settings_from_shipping_method_id()
S
52 4 23
ShiptimizeMarketplace::shiptimize_options()
S
55 4 23
WooShiptimizeOrder::bootstrap()
S
54 4 22
ShiptimizeOrder::escape_non_latin1()
S
35 1 66
WooShiptimize::check_update()
S
58 4 16
ShiptimizeDokan::export()
S
57 4 16
ShiptimizeOrderUI::query_filter_order_status_join()
S
63 5 9
ShiptimizeShipping::add_shipping_methods()
S
59 4 14
ShiptimizeShipping::shiptimize_init_shipping()
S
60 4 14
WooShiptimizeOrder::get_status_label()
S
61 4 13
ShiptimizeOrder::append_errors()
S
60 4 13
ShiptimizeMarketplace::append_errors()
S
60 4 13
ShiptimizeApiV3::get_carriers()
S
61 4 12
ShiptimizeMarketplace::instance()
S
62 4 12
ShiptimizeApiV3::get_utf8()
S
63 4 11
WooShiptimize::add_states()
S
62 4 11
WooShiptimize::log()
S
62 4 11
ShiptimizeWCFM::export_vendor()
S
53 3 23
ShiptimizeApiV3::get_pickup_locations()
S
54 3 22
ShiptimizeDokan::ui_keys()
S
55 3 22
WooShiptimizeOrder::get_export_summary()
S
54 3 20
ShiptimizeApiV3::get_token()
S
55 3 19
ShiptimizeOptionsUIDefault::print_export_all()
S
57 3 19
ShiptimizeOptionsUIDefault::print_automatic_export()
S
57 3 17
ShiptimizeOptionsUI::table_rate_shipping_plus_save()
S
57 3 16
shiptimize_check_upgrade()
S
57 3 15
ShiptimizeV3::get_cart_meta()
S
70 4 5
ShiptimizeMarketplace::refresh_token()
S
58 3 15
ShiptimizeShipping::script_carriers_with_pickup()
S
54 2 30
ShiptimizeOptionsUIDefault::print_shiptimize_options()
S
53 2 29
ShiptimizeMarketplace::add_message()
S
59 3 14
WooShiptimize::notice_list()
S
62 3 14
ShiptimizeWCFM::shiptimize_column()
S
60 3 13
ShiptimizeOrderUI::admin_init()
S
60 3 13
ShiptimizeDokan::get_api()
S
59 3 13
WooShiptimizeOrder::set_status_from_api()
S
59 3 13
ShiptimizeWCFM::order_list_before()
S
57 2 26
ShiptimizeShipping::get_shipping_methods()
S
61 3 11
WooShiptimizeOrder::set_message()
S
62 3 11
WooShiptimizeOrder::set_status()
S
62 3 11
ShiptimizeWCFM::check_keys()
S
62 3 11
ShiptimizeOptionsUIDefault::print_credentials()
S
56 2 23
WooShiptimizeOrder::export_all()
S
53 2 23
ShiptimizeOptionsUIDefault::print_help_section()
S
51 1 35
WooShiptimize::actions()
S
57 2 16
WooShiptimizeOrder::set_meta()
S
67 3 8
WooShiptimize::shiptimize_scripts()
S
64 3 9
ShiptimizeMarketplace::parse_request()
S
66 3 9
ShiptimizeMarketplace::get_order_meta()
S
58 2 15
WooShiptimize::get_pickup_locations()
S
64 3 9
WooShiptimizeOrder::set_tracking_id()
S
58 2 15
ShiptimizeOptions::getCheckoutStrIds()
S
64 3 10
ShiptimizeWCFM::isActive()
S
71 3 5
ShiptimizeApiV3::instance()
S
64 3 9
ShiptimizeApiV3::is_token_valid()
S
66 3 8
WooShiptimizeOrder::get_valid_status_to_export_all()
S
64 3 10
ShiptimizeOrderUI::order_column_values()
S
64 3 9
WooShiptimize::_active_site()
S
65 3 9
check_marketplaces()
S
63 3 10
WooShiptimizeOrder::set_name()
S
73 3 4
ShiptimizeDokan::refresh_token()
S
59 2 14
ShiptimizeShipping::ajax_wbs_settings()
S
60 2 13
ShiptimizeShipping::get_option_string()
S
61 2 13
ShiptimizeDokan::scripts_and_styles()
S
59 2 13
WooShiptimize::refresh_token()
S
61 2 13
ShiptimizeOrder::update_order_meta()
S
56 1 22
ShiptimizeMarketplace::get_api()
S
58 1 18
ShiptimizeWCFM::get_vendor_order_status()
S
70 2 5
WooShiptimizeOrder::get_shipping_message()
S
70 2 5
WooShiptimizeOrder::get_shipping_status()
S
70 2 5
ShiptimizeOrder::is_weight_valid()
S
79 2 3
ShiptimizeWCFM::parse_request()
S
70 2 6
ShiptimizeOrder::is_name_valid()
S
71 2 6
WooShiptimizeOrder::get_redirect_from_summary()
S
66 2 7
ShiptimizeOptionsUI::options_saved()
S
70 2 6
WooShiptimizeOrder::get_shipping_fields()
S
72 2 6
shiptimize_is_marketplace()
S
75 2 4
ShiptimizeApiV3::print_request_data()
S
68 2 5
WooShiptimize::admin_includes()
S
71 2 6
WooShiptimize::welcome()
S
71 2 6
ShiptimizeOptionsUI::sanitize_private_key()
S
77 2 3
ShiptimizeOptionsUI::sanitize_public_key()
S
77 2 3
ShiptimizeMarketplace::actions()
S
64 2 9
ShiptimizeOptions::getInstance()
S
71 2 6
ShiptimizeDokan::get_order_meta()
S
71 2 5
ShiptimizeOptionsUI::obfuscate()
S
73 2 4
ShiptimizeV3::set_pickup_point()
S
66 2 8
ShiptimizeApiV3::send_shipments()
S
63 2 10
ShiptimizeOrderUI::ajax_print_label()
S
68 2 7
ShiptimizeOrder::is_valid()
S
79 2 3
ShiptimizeShipping::get_instance()
S
72 2 6
ShiptimizeApiV3::remove_base64_padding()
S
73 2 4
ShiptimizeApiV3::log()
S
70 2 6
ShiptimizeV3::_e()
S
71 2 6
ShiptimizeOrder::add_order_meta()
S
60 1 15
ShiptimizeOrder::set_label_meta()
S
62 2 10
ShiptimizeOrder::add_message()
S
63 2 10
WooShiptimize::__construct()
S
65 2 9
ShiptimizeConnector::connect_user()
S
70 2 6
ShiptimizeOrder::grant_order_meta_exists()
S
68 2 7
WooShiptimize::instance()
S
69 2 7
ShiptimizeOrder::get_order_meta()
S
73 2 4
ShiptimizeConnector::getInstance()
S
71 2 6
WooShiptimize::is_options_valid()
S
73 2 5
ShiptimizeOrder::get_error_messages()
S
69 2 7
ShiptimizeShipping::shiptimize_shipping_options()
S
72 2 6
ShiptimizeConnector::__construct()
S
71 2 5
ShiptimizeConnector::disconnect_user()
S
63 2 10
ShiptimizeMarketplace::ajax_connect_user()
S
69 2 7
ShiptimizeShipping::checkout_pickup_field_display_admin_order_meta()
S
69 2 6
shiptimize_load_plugin_textdomain()
S
68 2 7
ShiptimizeShipping::loadFreeShippingCarrier()
S
64 2 9
ShiptimizeMarketplace::set_message()
S
65 2 8
ShiptimizeShipping::loadFlatRateCarrier()
S
65 2 9
ShiptimizeWCFM::after_order_object_save()
S
71 2 6
WooShiptimizeOrder::get_billing_fields()
S
72 2 6
ShiptimizeShipping::loadWeightBasedCarrier()
S
64 2 9
shiptimize_account_print_field()
S
69 2 8
ShiptimizeOptionsUI::loadSettings()
S
60 1 13
ShiptimizeV3::create_shiptimize_data_model()
S
64 1 13
ShiptimizeOptions::getAllowedExtraOptions()
S
63 1 13
ShiptimizeOptionsUIDefault::print_map()
S
64 1 12
ShiptimizeV3::add_pickup_point()
S
63 1 12
ShiptimizeV3::update_pickup_point()
S
63 1 12
ShiptimizeOptionsUIDefault::print_create_account_form()
S
64 1 11
ShiptimizeOptions::getCheckboxFieldIds()
S
64 1 11
ShiptimizeShipping::actions()
S
62 1 11
ShiptimizeV3::bootstrap()
S
100 1 0
ShiptimizeV3::api_update()
S
100 1 0
ShiptimizeDokan::export_selected()
S
71 1 5
ShiptimizeOrder::get_client_reference()
S
82 1 3
ShiptimizeOrder::__construct()
S
77 1 4
ShiptimizeOrder::get_shop_item_id()
S
82 1 3
ShiptimizeOrder::set_transporter()
S
81 1 3
WooShiptimize::sqlSelect()
S
74 1 5
ShiptimizeMarketplace::get_connected_users()
S
75 1 4
ShiptimizeMarketplace::get_default_shipping_type()
S
80 1 3
ShiptimizeOrder::set_message()
S
78 1 3
ShiptimizeOrderUI::register_bulk_export()
S
72 1 5
ShiptimizeV3::is_options_valid()
S
100 1 0
ShiptimizeApiV3::monitor_label_status()
S
79 1 3
ShiptimizeV3::refresh_carriers()
S
100 1 0
ShiptimizeOrderUI::order_columns()
S
72 1 5
WooShiptimize::notice_wc_required()
S
72 1 7
ShiptimizeApiV3::get_token_string()
S
82 1 3
WooShiptimizeOrder::sqlSelect()
S
73 1 5
ShiptimizeMarketplace::on_mail_error()
S
74 1 5
ShiptimizeWCFM::get_items_for_vendor()
S
71 1 5
ShiptimizeMarketplace::is_master_account()
S
79 1 3
WooShiptimize::clear_shiptimize_data()
S
76 1 4
ShiptimizeShipping::checkout_fields()
S
64 1 10
ShiptimizeMarketplace::disconnect()
S
79 1 3
ShiptimizeMarketplace::get_products()
S
100 1 0
ShiptimizeV3::get_pickup_locations()
S
100 1 0
ShiptimizeMarketplace::activate()
S
80 1 3
ShiptimizeApiV3::isTest()
S
82 1 3
ShiptimizeV3::sqlSelect()
S
100 1 0
ShiptimizeMarketplace::export()
S
100 1 0
ShiptimizeWCFM::get_callback()
S
79 1 3
ShiptimizeWCFM::before_order_details()
S
74 1 4
ShiptimizeDokan::ui_save_settings()
S
68 1 7
ShiptimizeMarketplace::get_token()
S
79 1 3
WooShiptimizeOrder::get_country()
S
82 1 3
ShiptimizeOrderUI::notice_area()
S
82 1 3
ShiptimizeOptionsUI::actions()
S
75 1 4
ShiptimizeV3::get_api()
S
100 1 0
ShiptimizeMarketplace::get_carrier_for_order()
S
98 1 1
ShiptimizeDokan::get_products()
S
91 1 2
ShiptimizeOrder::executeSQL()
S
100 1 0
ShiptimizeDokan::order_list_actions()
S
79 1 3
ShiptimizeShipping::filters()
S
72 1 5
ShiptimizeDokan::get_callback()
S
79 1 3
ShiptimizeDokan::actions()
S
64 1 9
WooShiptimizeOrder::getOrderValue()
S
78 1 3
ShiptimizeV3::drop_shiptimize_data_model()
S
72 1 5
ShiptimizeDokan::ui_input()
S
67 1 9
ShiptimizeOrder::set_client_reference()
S
100 1 0
ShiptimizeV3::executeSQL()
S
100 1 0
ShiptimizeOptionsUI::print_options()
S
68 1 8
ShiptimizeConnector::get_clients()
S
71 1 6
WooShiptimize::known_issues()
S
82 1 3
ShiptimizeV3::get_ISO2_from_localisation()
S
79 1 3
ShiptimizeMarketplace::set_status()
S
71 1 5
ShiptimizeV3::grant_localized()
S
91 1 2
ShiptimizeOptions::__construct()
S
91 1 2
ShiptimizeV3::get_lang()
S
100 1 0
ShiptimizeOrder::get_valid_status_to_export_all()
S
100 1 0
WooShiptimizeOrder::get_shipping_meta()
S
74 1 4
WooShiptimize::filters()
S
75 1 4
WooShiptimizeOrder::set_client_reference()
S
78 1 3
ShiptimizeWCFM::vendor_actions()
S
69 1 6
ShiptimizeOrderUI::add_filters()
S
67 1 7
WooShiptimizeOrder::set_shipment_items()
S
81 1 3
WooShiptimizeOrder::get_date_created()
S
81 1 3
ShiptimizeMarketplace::get_token_expires()
S
79 1 3
WooShiptimize::custom_query_vars()
S
71 1 6
WooShiptimize::notice_incomplete_options()
S
67 1 10
ShiptimizeV3::refresh_token()
S
100 1 0
ShiptimizeWCFM::ajax_export_selected()
S
72 1 5
ShiptimizeOptionsUI::__construct()
S
82 1 3
ShiptimizeConnector::master_options_section()
S
71 1 7
ShiptimizeMarketplace::connect()
S
81 1 3
WooShiptimizeOrder::__construct()
S
71 1 6
ShiptimizeMarketplace::set_default_shipping_type()
S
80 1 3
ShiptimizeOrder::sqlSelect()
S
100 1 0
ShiptimizeApiV3::get_request_signature()
S
74 1 4
ShiptimizeMarketplace::get_private_key()
S
79 1 3
WooShiptimize::deactivate()
S
89 1 2
ShiptimizeV3::get_order_meta()
S
78 1 3
WooShiptimize::get_lang()
S
80 1 3
ShiptimizeApiV3::send_to_shiptimize()
S
81 1 3
ShiptimizeMarketplace::custom_query_vars()
S
74 1 5
ShiptimizeOptionsUI::settings_saved()
S
82 1 3
ShiptimizeOrder::get_state()
S
82 1 3
ShiptimizeOrder::get_carrier_id()
S
82 1 3
ShiptimizeMarketplace::get_app_key()
S
82 1 3
ShiptimizeApiV3::validate_update_request()
S
67 1 7
ShiptimizeMarketplace::plugin_update()
S
82 1 3
ShiptimizeWCFM::export_field()
S
80 1 3
WooShiptimizeOrder::get_woo_order()
S
82 1 3
ShiptimizeShipping::get_shipping_method_id()
S
80 1 3
ShiptimizeApiV3::set_token_expires()
S
81 1 3
ShiptimizeOrder::bootstrap()
S
100 1 0
ShiptimizeOrder::get_country()
S
82 1 3
ShiptimizeOrder::get_order_message()
S
82 1 3
ShiptimizeApiV3::create_client()
S
79 1 3
ShiptimizeApiV3::set_token()
S
81 1 3
ShiptimizeWCFM::get_products()
S
91 1 2
ShiptimizeOrderUI::add_actions()
S
66 1 8
ShiptimizeShipping::get_class_name_for_carrier()
S
74 1 4
WooShiptimizeOrder::executeSQL()
S
73 1 5
WooShiptimize::shiptimize_admin_scripts()
S
75 1 4
ShiptimizeApiV3::post_shipments()
S
79 1 3
ShiptimizeOrder::set_status()
S
78 1 3
ShiptimizeOrder::set_tracking_id()
S
100 1 0
ShiptimizeApiV3::get_clients()
S
79 1 3
ShiptimizeMarketplace::api_update()
S
92 1 1
ShiptimizeOrderUI::__construct()
S
78 1 4
ShiptimizeMarketplace::create_dummy_order_meta()
S
74 1 4
ShiptimizeApiV3::get_public_key()
S
82 1 3
ShiptimizeOrder::get_order_status()
S
82 1 3
ShiptimizeWCFM::custom_query_vars()
S
73 1 5
ShiptimizeMarketplace::get_public_key()
S
79 1 3
ShiptimizeApiV3::post_labels_step1()
S
67 1 8
ShiptimizeOptionsUI::add_plugin_page()
S
64 1 10
WooShiptimize::translate()
S
80 1 3
WooShiptimizeOrder::get_id()
S
82 1 3
ShiptimizeOrder::set_status_from_api()
S
100 1 0
ShiptimizeApiV3::get_private_key()
S
82 1 3
ShiptimizeMarketplace::is_user_connected()
S
74 1 4
ShiptimizeShipping::__construct()
S
73 1 5
WooShiptimize::executeSQL()
S
74 1 5
ShiptimizeOrder::set_order_status()
S
74 1 4
ShiptimizeDokan::order_actions()
S
68 1 7
WooShiptimize::uninstall()
S
89 1 2
WooShiptimize::shiptimize_admin_styles()
S
75 1 4
ShiptimizeApiV3::patch_shipments()
S
79 1 3
ShiptimizeWCFM::__construct()
S
70 1 6
ShiptimizeApiV3::__construct()
S
65 1 9
ShiptimizeDokan::__construct()
S
75 1 4
ShiptimizeOptionsUI::print_shiptimize_options()
S
100 1 0
ShiptimizeMarketplace::register_settings()
S
73 1 5
ShiptimizeV3::create_shiptimize_cart()
S
66 1 10
ShiptimizeMarketplace::__construct()
S
79 1 3
ShiptimizeMarketplace::get_callback()
S
100 1 0
ShiptimizeMarketplace::create_tables()
S
66 1 10
ShiptimizeOrder::get_formated_message()
S
78 1 3
WooShiptimize::get_callback_url()
S
70 1 6