WC_Payments_Product_Service C

Total Complexity 113
Dependencies 10
Dependents 3
Total lines 782
Lines of code 355
Logical lines of code 186
Comment lines 309
Methods 37
Properties 2

Methods 37

Method Rating Maintainability Complexity Lines of code
limit_subscription_variation_intervals()
A
49 10 28
maybe_schedule_product_create_or_update()
A
56 10 17
limit_subscription_product_intervals()
A
51 9 24
update_products()
A
49 8 29
get_wcpay_price_id()
S
60 5 12
archive_product()
S
55 4 20
unarchive_product()
S
56 4 19
delete_all_wcpay_price_ids()
S
57 4 16
maybe_unarchive_product()
S
67 4 8
maybe_archive_product()
S
67 4 8
get_wcpay_product_id()
S
64 4 9
__construct()
S
60 3 13
get_wcpay_product_id_option()
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_for_item_type()
S
60 2 13
create_product()
S
60 2 13
validate_product_data()
S
73 2 5
unarchive_price()
S
66 2 8
get_period_interval_limit()
S
64 2 9
get_product_data()
S
70 2 6
get_products_to_update()
S
78 2 3
archive_price()
S
68 2 7
get_wcpay_product_id_for_item()
S
66 2 8
exclude_meta_wcpay_product()
S
64 1 13
get_product_hash()
S
79 1 3
product_needs_update()
S
79 1 3
set_wcpay_product_hash()
S
76 1 4
set_wcpay_product_id()
S
76 1 4
remove_product_update_listeners()
S
69 1 6
add_product_update_listeners()
S
69 1 6
get_wcpay_product_hash()
S
79 1 3
sanitize_option_key()
S
77 1 3
get_wcpay_price_hash()
S
75 1 4
has_wcpay_product_id()
S
79 1 3