Code Analysis: GLS Shipping for WooCommerce 1.2.2

Function Rating Maintainability Complexity Lines of code
GLS_Shipping_API_Data::get_service_list()
C
35 23 87
gls_shipping_method_init()
B
21
2 320
GLS_Shipping_Method::init_form_fields()
A
25
1 247
GLS_Shipping_Method_Parcel_Locker::calculate_shipping()
A
42 14 49
GLS_Shipping_Method_Parcel_Shop::calculate_shipping()
A
42 14 49
GLS_Shipping_Method::calculate_shipping()
A
42 14 49
GLS_Shipping_Method_Zones::calculate_shipping()
A
43 13 46
GLS_Shipping_Method_Parcel_Locker_Zones::calculate_shipping()
A
43 13 46
GLS_Shipping_Method_Parcel_Shop_Zones::calculate_shipping()
A
43 13 46
GLS_Shipping_Bulk::gls_bulk_action_admin_notice()
A
39 11 73
GLS_Shipping_API_Data::isExpressDeliverySupported()
A
48 9 33
gls_shipping_method_parcel_shop_init()
A
31 2 135
gls_shipping_method_parcel_locker_init()
A
31 2 135
GLS_Shipping_API_Service::send_order()
A
46 8 36
GLS_Shipping_Bulk::process_bulk_gls_label_generation()
A
41 6 61
GLS_Shipping_Checkout::add_gls_button_to_shipping_method()
A
57 9 14
gls_shipping_method_parcel_locker_zones_init()
A
33 2 111
gls_shipping_method_zones_init()
A
33 2 111
gls_shipping_method_parcel_shop_zones_init()
A
33 2 111
GLS_Shipping_API_Data::generate_post_fields_multi()
S
46 6 37
GLS_Shipping_API_Data::generate_post_fields()
S
46 6 37
GLS_Shipping_Order::display_gls_pickup_info()
S
49 6 26
GLS_Shipping_Order::save_tracking_info()
S
56 6 19
GLS_Shipping_API_Data::checkInsuranceCriteria()
S
61 5 11
GLS_Shipping_Order::gls_shipping_info_meta_box_content()
S
50 3 36
GLS_Shipping_Order::generate_label_and_tracking_number()
S
54 4 19
GLS_Shipping_Method_Parcel_Locker::init_form_fields()
S
41 1 62
GLS_Shipping_Method_Parcel_Shop::init_form_fields()
S
41 1 62
GLS_Shipping_Assets::admin_enqueue_scripts()
S
57 4 16
GLS_Shipping_Bulk::admin_enqueue_styles()
S
60 4 15
GLS_Shipping_Checkout::save_gls_parcel_shop_info()
S
59 4 14
GLS_Shipping_Checkout::validate_gls_parcel_shop_selection()
S
62 4 11
GLS_Shipping_API_Data::getCode()
S
48 2 34
GLS_Shipping_For_Woo::includes()
S
56 3 19
GLS_Shipping_My_Account::display_gls_pickup_info()
S
54 3 18
GLS_Shipping_API_Data::check_parcel_delivery_service()
S
59 3 15
GLS_Shipping_For_Woo::autoloader()
S
58 3 15
GLS_Shipping_My_Account::add_gls_info_to_order_email()
S
69 4 7
GLS_Shipping_Order::add_gls_shipping_info_meta_box()
S
59 3 14
GLS_Shipping_Method_Zones::__construct()
S
61 3 11
GLS_Shipping_Method_Parcel_Locker_Zones::__construct()
S
61 3 11
GLS_Shipping_Method_Parcel_Shop_Zones::__construct()
S
61 3 11
GLS_Shipping_Method_Zones::init_form_fields()
S
48 1 38
GLS_Shipping_Method_Parcel_Locker_Zones::init_form_fields()
S
48 1 38
GLS_Shipping_Method_Parcel_Shop_Zones::init_form_fields()
S
48 1 38
GLS_Shipping_API_Data::get_pickup_address()
S
54 2 20
GLS_Shipping_Bulk::add_gls_order_actions()
S
56 2 19
GLS_Shipping_API_Data::__construct()
S
65 3 10
GLS_Shipping_Method::__construct()
S
65 3 8
GLS_Shipping_API_Service::get_password()
S
65 3 8
GLS_Shipping_Order::save_label_and_tracking_info()
S
65 3 9
GLS_Shipping_Order::save_print_labels()
S
57 2 15
GLS_Shipping_Method_Parcel_Locker::__construct()
S
65 3 8
GLS_Shipping_Method_Parcel_Shop::__construct()
S
65 3 8
GLS_Shipping_Bulk::bulk_create_print_labels()
S
58 2 14
GLS_Shipping_API_Data::get_delivery_address()
S
60 2 13
GLS_Shipping_API_Service::get_api_url()
S
68 2 6
GLS_Shipping_Assets::load_scripts()
S
58 1 15
GLS_Shipping_API_Service::get_option()
S
78 2 3
GLS_Shipping_For_Woo::define()
S
75 2 5
GLS_Shipping_Assets::add_module_type_attribute()
S
70 2 6
GLS_Shipping_API_Data::get_option()
S
78 2 3
GLS_Shipping_API_Data::add_order()
S
64 2 10
GLS_Shipping_For_Woo::get_instance()
S
71 2 6
GLS_Shipping_API_Data::get_pickup_info()
S
74 2 4
GLS_Shipping_API_Service::generate_post_request()
S
60 1 13
GLS_Shipping_Checkout::__construct()
S
61 1 12
GLS_Shipping_For_Woo::define_constants()
S
62 1 11
GLS_Shipping_My_Account::__construct()
S
74 1 4
GLS_Shipping_My_Account::display_gls_pickup_info_on_account_page()
S
74 1 5
GLS_Shipping_Assets::init()
S
69 1 6
GLS_Shipping_Method_Parcel_Locker_Zones::init()
S
73 1 5
GLS_Shipping_Method_Parcel_Locker::init()
S
73 1 5
GLS_Shipping_Assets::footer_map()
S
77 1 4
GLS_Shipping_Method_Parcel_Shop::init()
S
73 1 5
GLS_Shipping_For_Woo::get_version()
S
82 1 3
GLS_Shipping_API_Service::__construct()
S
75 1 4
GLS_Shipping_Method_Parcel_Shop_Zones::init()
S
73 1 5
GLS_Shipping_Bulk::__construct()
S
63 1 10
GLS_Shipping_Checkout::display_pickup_information()
S
82 1 3
GLS_Shipping_For_Woo::__construct()
S
71 1 6
GLS_Shipping_Method_Zones::init()
S
73 1 5
GLS_Shipping_Method::init()
S
73 1 5
GLS_Shipping_Bulk::register_gls_bulk_actions()
S
72 1 5
GLS_Shipping_API_Data::isInsuranceAllowed()
S
70 1 6
GLS_Shipping_API_Service::log_error()
S
70 1 6
GLS_Shipping_For_Woo::init_hooks()
S
75 1 4
GLS_Shipping_API_Service::log_response()
S
68 1 7
GLS_Shipping_Order::__construct()
S
75 1 4
GLS_Shipping_For_Woo::load_textdomain()
S
77 1 3
GLS_Shipping_For_Woo::add_gls_shipping_methods()
S
65 1 9