Shiprocket_Woocommerce_Shipping_Method B

Total Complexity 85
Dependencies 3
Dependents 1
Total lines 433
Lines of code 288
Logical lines of code 166
Comment lines 84
Methods 14
Properties 10

Methods 14

Method Rating Maintainability Complexity Lines of code
calculate_shipping()
C
36 28 70
get_formatted_data()
A
47 13 30
prepare_rate()
A
47 11 32
init()
A
55 10 17
process_result()
S
58 6 16
__construct()
S
45 2 44
get_rates_from_server()
S
52 3 24
add_found_rates()
S
69 3 7
shipping_method_discount()
S
73 3 5
debug()
S
73 2 5
fallbackRateGenerator()
S
62 1 12
flatRateGenerator()
S
62 1 12
shiprocket_update_shipping_charges()
S
75 1 11
init_form_fields()
S
80 1 3