WC_Connect_TaxJar_Integration D

Total Complexity 242
Dependencies 12
Dependents 2
Total lines 1,500
Lines of code 914
Logical lines of code 473
Comment lines 380
Methods 36
Properties 8

Methods 36

Method Rating Maintainability Complexity Lines of code
calculate_tax()
C
31 20 125
calculate_totals()
B
36 21 75
_error()
A
47 17 30
validate_taxjar_request()
A
50 15 26
get_line_items()
A
45 11 41
get_address()
A
56 12 16
get_backend_line_items()
A
44 10 44
override_woocommerce_tax_rates()
A
51 10 25
sanitize_tax_option()
A
57 10 16
get_taxable_address()
A
47 8 33
maybe_apply_taxjar_nexus_addresses_workaround()
A
44 7 47
calculate_backend_totals()
A
45 7 42
create_or_update_tax_rate()
A
45 7 41
append_base_address_to_customer_taxable_address()
A
51 8 25
add_tax_settings()
A
45 7 40
on_order_page()
A
55 8 20
fix_tooltip_keepalive()
S
54 7 21
init()
S
49 6 29
smartcalcs_request()
S
50 6 27
get_backend_address()
S
58 6 14
smartcalcs_cache_request()
S
53 5 21
maybe_override_taxjar_tax()
S
52 4 27
generate_tax_rate_name()
S
52 3 28
get_tax_tooltip()
S
59 4 12
allow_street_address_for_matched_rates()
S
56 2 18
is_enabled()
S
66 3 8
get_line_item()
S
67 3 8
configure_tax_settings()
S
68 3 7
backup_existing_tax_rates()
S
65 2 9
load_taxjar_admin_new_order_assets()
S
69 2 6
maybe_calculate_totals()
S
72 2 6
_log()
S
74 2 4
get_store_settings()
S
64 1 10
is_supported_country()
S
79 1 3
get_supported_countries()
S
73 1 3
__construct()
S
68 1 7