WC_Connect_Shipping_Method B

Total Complexity 100
Dependencies 8
Dependents 2
Total lines 739
Lines of code 478
Logical lines of code 220
Comment lines 128
Methods 28
Properties 6

Methods 28

Method Rating Maintainability Complexity Lines of code
calculate_shipping()
D
25
31 158
is_valid_package_destination()
A
38 11 82
matches_package_shipping_classes()
A
44 10 48
__construct()
S
50 3 31
debug()
S
66 5 7
check_and_handle_response_error()
S
52 3 30
lookup_product()
S
66 4 8
add_fallback_rate()
S
61 3 12
update_last_rate_request_timestamp()
S
68 3 7
is_available()
S
66 3 9
get_service_settings()
S
64 3 10
log()
S
70 2 6
log_error()
S
70 2 6
init_form_settings()
S
71 2 6
set_last_request_failed()
S
70 2 6
format_rate_title()
S
61 1 14
set_service_settings_store()
S
81 1 3
format_rate_id()
S
78 1 3
admin_options()
S
73 1 5
filter_preset_boxes()
S
80 1 3
set_service_schema()
S
81 1 3
get_logger()
S
82 1 3
get_service_schema()
S
82 1 3
get_service_settings_store()
S
82 1 3
set_api_client()
S
81 1 3
get_api_client()
S
82 1 3
set_logger()
S
81 1 3
get_package_validation_errors()
S
82 1 3