WC_Tax D

Total Complexity 146
Dependencies 3
Dependents 31
Total lines 1,211
Lines of code 655
Logical lines of code 336
Comment lines 386
Methods 45
Properties 2

Methods 45

Method Rating Maintainability Complexity Lines of code
sort_rates_callback()
B
49 18 30
get_shipping_tax_rates()
A
40 12 65
get_matched_tax_rates()
A
39 8 68
calc_exclusive_tax()
A
48 8 34
get_rates_for_tax_class()
A
51 8 24
create_tax_class()
S
49 6 32
get_tax_location()
S
56 7 17
calc_inclusive_tax()
S
50 5 29
delete_tax_class_by()
S
51 5 26
get_tax_class_by()
S
54 4 22
get_rate_code()
S
54 4 20
prepare_tax_rate()
S
61 4 12
find_rates()
S
51 3 27
find_shipping_rates()
S
61 4 12
get_rate_label()
S
59 3 14
get_rates()
S
56 2 18
update_tax_rate_locations()
S
57 2 16
_update_tax_rate_postcodes()
S
63 3 9
format_tax_rate_class()
S
66 3 8
get_tax_rate_classes()
S
60 2 14
is_compound()
S
62 2 11
get_rate_percent_value()
S
63 2 10
maybe_remove_tax_class_rates()
S
64 2 9
get_rate_percent()
S
71 2 5
_update_tax_rate_cities()
S
67 2 7
get_base_tax_rates()
S
60 1 15
calc_tax()
S
66 2 8
format_tax_rate_state()
S
74 2 4
format_tax_rate_country()
S
74 2 4
format_tax_rate_name()
S
78 2 3
sort_rates()
S
66 2 8
_get_tax_rate()
S
62 1 14
_update_tax_rate()
S
61 1 13
_delete_tax_rate()
S
67 1 7
_insert_tax_rate()
S
66 1 8
init()
S
75 1 4
format_tax_rate_priority()
S
80 1 3
format_tax_rate()
S
78 1 3
format_tax_rate_city()
S
79 1 3
get_tax_class_slugs()
S
79 1 3
get_tax_classes()
S
79 1 3
get_shop_base_rate()
S
79 1 3
round()
S
78 1 3
calc_shipping_tax()
S
74 1 4
get_tax_total()
S
80 1 3