WC_iZettle_Integration_Product_Handler D

Total Complexity 246
Dependencies 10
Dependents 0
Total lines 1,381
Lines of code 931
Logical lines of code 539
Comment lines 30
Methods 39
Properties 2

Methods 39

Method Rating Maintainability Complexity Lines of code
add_or_update_izettle_product()
D
22
43 215
izettle_variant_array()
C
31 26 103
izettle_product_array()
B
35 20 80
sync_wc_products_action()
B
37 17 72
get_price()
B
41 18 50
handle_unit_name()
A
50 9 28
add_product_to_queue()
A
51 9 25
external_reference_match_product()
A
56 9 19
maybe_delete_izettle_product()
A
53 8 21
get_current_product()
S
52 7 24
get_cost_price()
S
55 7 18
get_name()
S
54 6 20
is_using_any()
S
61 6 12
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_currency()
S
61 3 12
__construct()
S
53 2 21
maybe_set_product_uuid()
S
63 3 10
get_izettle_product()
S
66 3 8
sync_wc_products_process()
S
66 3 8
create_external_reference()
S
64 3 9
untrashed_post()
S
64 3 10
delete_post()
S
64 3 10
wp_trash_post()
S
64 3 10
maybe_set_variant_uuid()
S
63 3 10
create_sku()
S
66 2 8
duplicate_product_exclude_meta()
S
60 1 15
delete_izettle_product()
S
67 2 8
process_product_wpml()
S
67 2 7
clean_izettle_meta()
S
60 1 14
is_product_changed()
S
79 1 3
format_variant_price()
S
71 1 6
woocommerce_update_product()
S
66 1 8
wc_product_was_created()
S
65 1 9
dispatch_products()
S
82 1 3
sync_wc_products_filter()
S
80 1 3
remove_product_update_actions()
S
75 1 4