WC_iZettle_Integration_Product_Handler D

Total Complexity 262
Dependencies 10
Dependents 0
Total lines 1,498
Lines of code 1,001
Logical lines of code 573
Comment lines 37
Methods 42
Properties 2

Methods 42

Method Rating Maintainability Complexity Lines of code
add_or_update_izettle_product()
D
21
45 215
izettle_variant_array()
C
31 26 104
izettle_product_array()
B
34 22 87
sync_wc_products_action()
B
36 17 74
get_price()
B
41 18 51
handle_unit_name()
A
49 9 30
add_product_to_queue()
A
51 9 25
external_reference_match_product()
A
56 9 19
get_current_product()
S
52 7 24
maybe_delete_izettle_product()
S
55 7 18
get_cost_price()
S
56 7 17
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
check_if_product_image_changed()
S
58 5 16
check_if_product_image_deleted()
S
60 4 13
sync_wc_products_init()
S
63 4 9
add_product_update_actions()
S
63 4 10
get_currency()
S
61 3 12
__construct()
S
52 2 23
maybe_set_variant_uuid()
S
63 3 10
untrashed_post()
S
64 3 10
delete_post()
S
64 3 10
wp_trash_post()
S
64 3 10
maybe_set_product_uuid()
S
63 3 10
create_external_reference()
S
64 3 9
sync_wc_products_process()
S
66 3 8
get_izettle_product()
S
66 3 8
delete_izettle_product()
S
67 2 8
process_product_wpml()
S
67 2 7
duplicate_product_exclude_meta()
S
60 1 15
create_sku()
S
66 2 8
update_products_when_sales_price_is_changed()
S
67 2 8
clean_izettle_meta()
S
66 1 9
woocommerce_update_product()
S
66 1 8
wc_product_was_created()
S
65 1 9
is_product_changed()
S
79 1 3
dispatch_products()
S
82 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