Wc_Smart_Cod_Public D

Total Complexity 255
Dependencies 6
Dependents 1
Total lines 1,117
Lines of code 771
Logical lines of code 474
Comment lines 79
Methods 38
Properties 4

Methods 38

Method Rating Maintainability Complexity Lines of code
apply_smart_cod_fees()
C
39 28 53
analyze_settings()
A
42 14 51
check_restrict_postals()
A
47 15 34
analyze_fee_settings()
A
43 14 46
check_category_restriction()
A
45 14 41
check_shipping_class_restriction()
A
47 13 37
check_product_restriction()
A
48 13 35
get_cod_message()
A
49 12 31
get_actual_total()
A
52 9 25
has_cod_available()
A
52 8 26
check_method_restriction()
A
53 8 25
check_shipping_zone_restrictions()
S
53 7 24
check_overthelimit()
S
55 7 20
apply_custom_message()
S
48 6 32
check_shipping_zone_method_restriction()
S
55 6 21
check_state_restrictions()
S
55 6 20
get_customer_shipping_method()
S
55 6 19
apply_smart_cod_settings()
S
58 6 15
check_city_restrictions()
S
54 5 22
check_user_role_restriction()
S
57 5 19
check_country_restrictions()
S
58 5 18
check_cart_amount_restriction()
S
59 5 16
get_cart_products()
S
60 5 12
check_zoneandmethod()
S
60 4 13
get_method_id()
S
61 4 12
check_method()
S
62 3 12
check_zone()
S
62 3 12
enqueue_scripts()
S
71 3 5
calculate_percentage()
S
66 3 8
get_customer_shipping_zone()
S
65 3 9
has_native_zone_method()
S
72 3 5
__construct()
S
59 2 14
check_country()
S
64 2 10
get_cod_settings()
S
71 2 6
init_wsc_settings()
S
70 2 7
check_normal_fee()
S
67 2 8
is_new_wc()
S
80 1 3
log_wsc_error()
S
72 1 5