Code Analysis: GLS Shipping for WooCommerce 1.1.1

Function Rating Maintainability Complexity Lines of code
GLS_Shipping_API_Data::get_service_list()
C
34 23 90
gls_shipping_method_init()
A
26
2 225
GLS_Shipping_Method::init_form_fields()
A
28
1 188
GLS_Shipping_API_Data::isExpressDeliverySupported()
A
48 9 33
GLS_Shipping_Checkout::add_gls_button_to_shipping_method()
S
58 7 14
gls_shipping_method_parcel_shop_init()
S
38 2 78
gls_shipping_method_parcel_locker_init()
S
38 2 78
GLS_Shipping_API_Data::checkInsuranceCriteria()
S
61 5 11
GLS_Shipping_API_Service::send_order()
S
55 4 19
GLS_Shipping_Checkout::save_gls_parcel_shop_info()
S
59 4 14
GLS_Shipping_API_Data::__construct()
S
62 4 11
GLS_Shipping_Order::gls_shipping_info_meta_box_content()
S
55 3 21
GLS_Shipping_API_Data::getCode()
S
48 2 34
GLS_Shipping_Order::generate_label_and_tracking_number()
S
55 3 18
GLS_Shipping_My_Account::display_gls_pickup_info()
S
54 3 18
GLS_Shipping_Order::display_gls_pickup_info()
S
54 3 18
GLS_Shipping_Assets::admin_enqueue_scripts()
S
57 3 16
GLS_Shipping_For_Woo::includes()
S
59 3 15
GLS_Shipping_My_Account::add_gls_info_to_order_email()
S
69 4 7
GLS_Shipping_For_Woo::autoloader()
S
58 3 15
GLS_Shipping_Order::add_gls_shipping_info_meta_box()
S
59 3 14
GLS_Shipping_Method_Parcel_Locker::init_form_fields()
S
46 1 41
GLS_Shipping_Method_Parcel_Shop::init_form_fields()
S
46 1 41
GLS_Shipping_API_Data::generate_post_fields()
S
52 2 24
GLS_Shipping_API_Data::get_pickup_address()
S
54 2 20
GLS_Shipping_API_Service::get_password()
S
65 3 8
GLS_Shipping_Method_Parcel_Locker::__construct()
S
65 3 8
GLS_Shipping_Order::save_label_and_tracking_info()
S
65 3 9
GLS_Shipping_Method_Parcel_Shop::__construct()
S
65 3 8
GLS_Shipping_Method::__construct()
S
65 3 8
GLS_Shipping_Checkout::validate_gls_parcel_shop_selection()
S
66 3 8
GLS_Shipping_Method_Parcel_Shop::calculate_shipping()
S
60 2 13
GLS_Shipping_Method::calculate_shipping()
S
60 2 13
GLS_Shipping_Order::save_print_labels()
S
59 2 13
GLS_Shipping_API_Data::get_delivery_address()
S
60 2 13
GLS_Shipping_Method_Parcel_Locker::calculate_shipping()
S
60 2 13
GLS_Shipping_For_Woo::define()
S
75 2 5
GLS_Shipping_For_Woo::get_instance()
S
71 2 6
GLS_Shipping_Assets::load_scripts()
S
58 1 15
GLS_Shipping_API_Service::get_option()
S
78 2 3
GLS_Shipping_Assets::add_module_type_attribute()
S
70 2 6
GLS_Shipping_API_Data::get_option()
S
78 2 3
GLS_Shipping_API_Service::get_api_url()
S
68 2 6
GLS_Shipping_API_Service::generate_post_request()
S
61 1 12
GLS_Shipping_For_Woo::init_hooks()
S
75 1 4
GLS_Shipping_Order::__construct()
S
75 1 4
GLS_Shipping_Checkout::__construct()
S
63 1 10
GLS_Shipping_For_Woo::get_version()
S
82 1 3
GLS_Shipping_Method_Parcel_Shop::init()
S
73 1 5
GLS_Shipping_API_Service::log_error()
S
70 1 6
GLS_Shipping_Assets::init()
S
69 1 6
GLS_Shipping_Checkout::display_pickup_information()
S
82 1 3
GLS_Shipping_Assets::footer_map()
S
77 1 4
GLS_Shipping_For_Woo::load_textdomain()
S
77 1 3
GLS_Shipping_For_Woo::define_constants()
S
66 1 8
GLS_Shipping_API_Data::isInsuranceAllowed()
S
70 1 6
GLS_Shipping_My_Account::__construct()
S
74 1 4
GLS_Shipping_Method_Parcel_Locker::init()
S
73 1 5
GLS_Shipping_For_Woo::add_gls_shipping_methods()
S
71 1 6
GLS_Shipping_API_Service::__construct()
S
75 1 4
GLS_Shipping_My_Account::display_gls_pickup_info_on_account_page()
S
74 1 5
GLS_Shipping_For_Woo::__construct()
S
71 1 6
GLS_Shipping_Method::init()
S
73 1 5
GLS_Shipping_API_Service::log_response()
S
68 1 7
GLS_Shipping_Order::save_tracking_info()
S
67 1 7