WC_iZettle_Integration_Product_Handler D

Total Complexity 337
Dependencies 11
Dependents 0
Total lines 1,892
Lines of code 1,232
Logical lines of code 736
Comment lines 48
Methods 50
Properties 2

Methods 50

Method Rating Maintainability Complexity Lines of code
sync_wc_products_process()
D
18
54 255
izettle_variant_array()
D
30 34 103
izettle_product_array()
C
33 24 92
get_price()
B
38 21 61
sync_wc_products_action()
B
36 19 71
get_current_product()
A
50 11 27
clean_orphans()
A
46 9 39
handle_unit_name()
A
50 9 28
external_reference_match_product()
A
55 9 20
get_category()
S
51 7 27
get_cost_price()
S
56 7 17
maybe_update_categories()
S
47 5 38
add_product_to_queue()
S
53 6 22
remove_product_data()
S
54 6 21
get_name()
S
54 6 20
get_izettle_product()
S
57 6 16
clean_zettle_metadata()
S
59 6 15
add_product_update_actions()
S
58 6 14
sync_wc_products_init()
S
59 6 13
is_using_any()
S
61 6 12
process_product_wpml()
S
55 5 19
update_products_when_sales_price_is_changed()
S
56 5 18
check_if_product_image_changed()
S
58 5 16
maybe_delete_izettle_product()
S
62 5 11
check_if_product_image_deleted()
S
60 4 13
create_external_reference()
S
63 4 9
clean_product_meta()
S
60 3 13
wc_product_was_created()
S
60 3 13
maybe_set_variant_uuid()
S
61 3 12
get_currency()
S
61 3 12
maybe_set_product_uuid()
S
61 3 12
woocommerce_update_product()
S
61 3 12
before_product_object_save()
S
63 3 11
create_sku()
S
62 3 11
delete_post()
S
64 3 10
wp_trash_post()
S
64 3 10
maybe_publish_delayed_product()
S
65 3 9
untrashed_post()
S
64 3 10
polylang_copy_post_metas()
S
65 3 9
__construct()
S
50 1 27
zettle_metas()
S
60 1 16
delete_izettle_product()
S
67 2 8
after_product_object_save()
S
66 2 8
clean_izettle_meta()
S
64 1 10
remove_product_data_final()
S
80 1 3
format_variant_price()
S
71 1 6
is_product_changed()
S
79 1 3
remove_product_update_actions()
S
75 1 4
sync_wc_products_filter()
S
80 1 3
duplicate_product_exclude_meta()
S
79 1 3