TCG_Shipping_Method D

Total Complexity 160
Dependencies 5
Dependents 1
Total lines 1,608
Lines of code 1,316
Logical lines of code 470
Comment lines 157
Methods 23
Properties 5

Methods 23

Method Rating Maintainability Complexity Lines of code
calculate_shipping()
D
24
47 153
addRate()
D
28
32 130
overrideFormFieldsVariable()
C
18
1 478
shipLogicRateOptins()
B
35 21 86
__construct()
A
44 11 42
generate_tcg_override_per_service_html()
A
38 7 88
addRates()
A
47 10 36
sortRatesByTotalValueAscending()
S
56 6 20
generate_tcg_shop_area_html()
S
43 2 59
generate_tcg_pdf_paper_size_html()
S
44 2 54
generate_tcg_percentage_html()
S
46 1 48
add_billing_insurance_field()
S
58 3 14
setShipLogicApiCredentials()
S
57 2 17
validate_tcg_percentage_field()
S
74 3 4
filterRates()
S
61 2 13
getRateOptions()
S
52 1 24
getAvailableShippingOptions()
S
56 1 18
is_woocommerce_blocks_checkout()
S
68 2 7
getTCGShippingSettings()
S
63 2 10
getParameters()
S
82 1 3
isTcgProhibited()
S
74 1 4
getShippingProperties()
S
82 1 3
getSuburbLocationOptions()
S
76 1 5