WC_iZettle_Integration_Product_Handler D

Total Complexity 394
Dependencies 12
Dependents 0
Total lines 2,202
Lines of code 1,473
Logical lines of code 896
Comment lines 52
Methods 55
Properties 4

Methods 55

Method Rating Maintainability Complexity Lines of code
sync_wc_products_process()
D
16
58 271
izettle_variant_array()
D
27
41 119
izettle_product_array()
C
30 29 113
get_price()
B
38 21 62
sync_wc_products_action()
B
37 19 71
get_category()
A
42 11 51
get_current_product()
A
50 11 27
mark_product_on_sale()
A
47 10 34
external_reference_match_product()
A
53 10 23
get_name()
A
49 9 31
handle_unit_name()
A
50 9 28
meta_data_updated()
A
43 7 52
check_orphan_product()
A
49 8 32
get_currency()
S
50 7 28
get_cost_price()
S
56 7 17
maybe_update_categories()
S
45 5 42
remove_product_data()
S
54 6 21
get_izettle_product()
S
57 6 16
clean_zettle_metadata()
S
58 6 16
add_product_to_queue()
S
58 6 14
add_product_update_actions()
S
58 6 14
sync_wc_products_init()
S
59 6 13
is_using_any()
S
61 6 12
maybe_return_wpml_multi_currency_price()
S
53 5 23
process_product_wpml()
S
56 5 19
update_products_when_sales_price_is_changed()
S
56 5 18
check_if_new_product()
S
58 5 17
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
59 3 14
wc_product_was_created()
S
60 3 13
maybe_set_product_uuid()
S
61 3 12
maybe_set_variant_uuid()
S
61 3 12
woocommerce_update_product()
S
61 3 12
clean_orphans()
S
61 3 12
before_product_object_save()
S
63 3 11
create_sku()
S
62 3 11
maybe_publish_delayed_product()
S
65 3 9
untrashed_post()
S
64 3 10
delete_post()
S
64 3 10
wp_trash_post()
S
64 3 10
__construct()
S
49 1 30
polylang_copy_post_metas()
S
65 3 9
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
63 1 11
remove_product_update_actions()
S
75 1 4
remove_product_data_final()
S
80 1 3
duplicate_product_exclude_meta()
S
79 1 3
format_variant_price()
S
71 1 6
sync_wc_products_filter()
S
80 1 3
is_product_changed()
S
79 1 3