TaxJar_Tax_Calculation D

Total Complexity 163
Dependencies 10
Dependents 3
Total lines 1,010
Lines of code 709
Logical lines of code 382
Comment lines 152
Methods 26
Properties 0

Methods 26

Method Rating Maintainability Complexity Lines of code
calculate_tax()
D
28
29 146
calculate_totals()
B
34 21 90
calculate_backend_totals()
A
42 10 52
get_address()
A
56 12 16
override_woocommerce_tax_rates()
A
51 10 25
get_taxable_address()
A
47 8 33
get_line_items()
A
47 8 33
append_base_address_to_customer_taxable_address()
A
51 8 24
should_calculate_cart_tax()
S
59 7 13
get_backend_line_items()
S
49 5 32
is_postal_code_valid()
S
49 5 31
get_backend_address()
S
58 6 14
calculate_order_tax()
S
47 4 35
create_or_update_tax_rate()
S
46 3 39
calculate_renewal_order_totals()
S
59 4 16
smartcalcs_request()
S
57 4 15
should_calculate_order_tax()
S
62 3 11
smartcalcs_cache_request()
S
62 3 11
allow_street_address_for_matched_rates()
S
56 2 18
get_line_item()
S
67 3 8
get_tax_code_from_class()
S
67 2 8
__construct()
S
70 2 7
init_hooks()
S
65 1 8
is_valid_exemption_type()
S
74 1 4
get_address_from_order()
S
64 1 10
update_tax_options()
S
64 1 10