WC_Tax D

Total Complexity 148
Dependencies 3
Dependents 31
Total lines 1,232
Lines of code 664
Logical lines of code 342
Comment lines 396
Methods 46
Properties 2

Methods 46

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 35
get_rates_for_tax_class()
A
51 8 24
create_tax_class()
A
47 7 36
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_shipping_rates()
S
61 4 12
find_rates()
S
51 3 27
get_rate_label()
S
59 3 14
get_rates_from_location()
S
57 2 17
update_tax_rate_locations()
S
57 2 16
format_tax_rate_class()
S
66 3 8
_update_tax_rate_postcodes()
S
63 3 9
get_tax_rate_classes()
S
60 2 14
is_compound()
S
62 2 11
calc_tax()
S
66 2 8
format_tax_rate_name()
S
78 2 3
format_tax_rate_country()
S
74 2 4
format_tax_rate_state()
S
74 2 4
maybe_remove_tax_class_rates()
S
64 2 9
sort_rates()
S
66 2 8
get_rate_percent_value()
S
63 2 10
_update_tax_rate_cities()
S
67 2 7
get_base_tax_rates()
S
60 1 15
get_rate_percent()
S
71 2 5
_get_tax_rate()
S
62 1 14
_update_tax_rate()
S
61 1 13
_insert_tax_rate()
S
66 1 8
_delete_tax_rate()
S
67 1 7
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
get_rates()
S
72 1 5
round()
S
78 1 3
calc_shipping_tax()
S
74 1 4
get_tax_total()
S
80 1 3