WC_Zettle_Helper D

Total Complexity 271
Dependencies 10
Dependents 9
Total lines 1,239
Lines of code 818
Logical lines of code 520
Comment lines 92
Methods 51
Properties 3

Methods 51

Method Rating Maintainability Complexity Lines of code
izettle_wp_button_input()
C
38 25 53
get_post_id_by_metadata()
B
40 17 59
get_product_id_by_metadata()
B
40 17 58
is_syncable()
A
42 15 45
maybe_remove_vat()
A
49 16 26
array_diff()
A
44 15 41
get_wc_product_by_uuid()
A
45 13 39
get_wc_product_by_sku()
A
51 11 25
match_product_variations()
A
50 9 27
get_categories()
A
47 8 36
get_tax_rate()
A
47 8 34
get_tax_class()
A
54 8 20
weight_from_grams()
S
55 6 21
get_rates()
S
55 5 19
get_tax_settings()
S
55 5 19
get_variations()
S
60 5 14
get_category_names()
S
60 5 12
is_store_inventory_update()
S
58 4 16
display_name()
S
60 4 14
get_any_text()
S
61 4 13
update_product_data()
S
76 4 3
product_language()
S
66 4 7
is_image_in_meta()
S
67 4 7
compare_legacy_sku()
S
64 4 9
compare_id()
S
66 4 8
display_sync_button()
S
55 2 18
zettle_tax_rates()
S
65 3 8
zettle_tax_id()
S
65 3 8
true_or_false()
S
70 3 6
id_or_not()
S
70 3 6
compare_sku()
S
70 3 6
wc_version_check()
S
65 3 9
create_hash()
S
62 2 11
get_term_by_slug()
S
74 2 4
zettle_changes_stock()
S
78 2 3
is_izettle_order()
S
64 2 9
compare_variant_uuid()
S
71 2 6
get_id()
S
66 2 8
get_wcpbc_pricing_zone_id()
S
69 2 7
is_order_type()
S
67 2 7
ksort_recursive()
S
71 2 6
is_plugin_installed()
S
68 2 7
get_all_variations()
S
65 2 9
get_any_array()
S
76 2 3
create_tax_rate()
S
62 1 12
get_processing_queue()
S
63 1 11
wc_version()
S
77 1 4
get_product_categories()
S
67 1 8
object_diff()
S
71 1 5
update_izettle_product_cashe()
S
79 1 3
debug_string_backtrace()
S
64 1 9