WC_iZettle_Integration_Product_Handler D

Total Complexity 285
Dependencies 9
Dependents 0
Total lines 1,692
Lines of code 1,093
Logical lines of code 630
Comment lines 40
Methods 44
Properties 2

Methods 44

Method Rating Maintainability Complexity Lines of code
sync_wc_products_process()
D
19
49 241
izettle_variant_array()
C
31 30 100
izettle_product_array()
B
34 21 87
sync_wc_products_action()
B
37 19 70
get_price()
B
41 18 51
clean_orphans()
A
46 9 39
handle_unit_name()
A
50 9 28
external_reference_match_product()
A
55 9 20
maybe_delete_izettle_product()
S
55 7 18
get_cost_price()
S
56 7 17
add_product_to_queue()
S
53 6 22
get_current_product()
S
53 6 22
maybe_update_categories()
S
47 5 37
get_name()
S
54 6 20
get_category()
S
55 6 19
is_using_any()
S
61 6 12
process_product_wpml()
S
55 5 19
check_if_product_image_changed()
S
58 5 16
check_if_product_image_deleted()
S
60 4 13
add_product_update_actions()
S
63 4 10
sync_wc_products_init()
S
63 4 9
get_izettle_product()
S
59 3 14
wc_product_was_created()
S
60 3 13
maybe_set_variant_uuid()
S
61 3 12
maybe_set_product_uuid()
S
61 3 12
get_currency()
S
61 3 12
woocommerce_update_product()
S
61 3 12
maybe_publish_delayed_product()
S
65 3 9
untrashed_post()
S
64 3 10
delete_post()
S
64 3 10
polylang_copy_post_metas()
S
65 3 9
wp_trash_post()
S
64 3 10
create_external_reference()
S
64 3 9
__construct()
S
52 1 23
zettle_metas()
S
60 1 16
delete_izettle_product()
S
67 2 8
create_sku()
S
66 2 8
update_products_when_sales_price_is_changed()
S
67 2 8
duplicate_product_exclude_meta()
S
79 1 3
clean_izettle_meta()
S
66 1 9
is_product_changed()
S
79 1 3
sync_wc_products_filter()
S
80 1 3
format_variant_price()
S
71 1 6
remove_product_update_actions()
S
75 1 4