WC_Payments_Product_Service D

Total Complexity 136
Dependencies 11
Dependents 3
Total lines 960
Lines of code 446
Logical lines of code 244
Comment lines 372
Methods 40
Properties 4

Methods 40

Method Rating Maintainability Complexity Lines of code
limit_subscription_variation_intervals()
A
49 11 28
maybe_schedule_product_create_or_update()
A
54 11 20
limit_subscription_product_intervals()
A
51 10 24
update_products()
A
49 9 29
get_wcpay_product_id_for_item()
S
48 6 36
has_wcpay_product_id()
S
49 5 33
get_wcpay_price_id()
S
58 6 15
maybe_archive_product()
S
63 5 11
maybe_unarchive_product()
S
63 5 11
archive_product()
S
55 4 20
unarchive_product()
S
56 4 19
delete_all_wcpay_price_ids()
S
56 4 17
get_or_create_wcpay_product_id()
S
64 4 9
get_wcpay_product_id_linked_to_key()
S
70 4 5
get_wcpay_product_id_option()
S
71 4 5
__construct()
S
59 3 14
get_wcpay_product_id_meta_key()
S
74 3 4
create_or_update_products()
S
66 3 9
is_valid_billing_cycle()
S
74 3 4
get_all_wcpay_product_ids()
S
67 3 7
get_wcpay_price_id_option()
S
74 3 4
create_product()
S
59 2 14
unarchive_price()
S
66 2 8
validate_product_data()
S
73 2 5
get_product_data()
S
70 2 6
get_products_to_update()
S
78 2 3
get_period_interval_limit()
S
64 2 9
archive_price()
S
68 2 7
exclude_meta_wcpay_product()
S
64 1 13
create_product_for_item_type()
S
63 1 11
save_wcpay_product_data()
S
68 1 7
set_wcpay_product_id()
S
68 1 7
set_wcpay_product_hash()
S
76 1 4
product_needs_update()
S
79 1 3
get_product_hash()
S
79 1 3
sanitize_option_key()
S
77 1 3
remove_product_update_listeners()
S
69 1 6
get_wcpay_product_hash()
S
79 1 3
get_wcpay_price_hash()
S
75 1 4
add_product_update_listeners()
S
69 1 6