LaterPay_Helper_Pricing D

Total Complexity 207
Dependencies 11
Dependents 15
Total lines 1,162
Lines of code 674
Logical lines of code 417
Comment lines 284
Methods 30
Properties 1

Methods 30

Method Rating Maintainability Complexity Lines of code
get_post_price()
C
36 23 79
get_post_revenue_model()
B
42 21 46
is_purchasable()
B
43 20 44
get_dynamic_price()
B
40 17 59
get_dynamic_prices()
B
36 15 89
adjust_dynamic_price_points()
B
45 18 42
get_category_price_data_by_category_ids()
A
45 14 42
recalculate_post_price()
A
44 13 45
check_time_pass_subscription_access()
A
46 9 38
get_post_price_type()
A
50 8 28
ensure_valid_revenue_model()
S
59 7 13
apply_category_default_price_to_post()
S
59 4 14
get_categories_with_price()
S
60 4 14
dynamic_price_days_after_publication()
S
57 3 16
is_price_type_not_global()
S
66 4 9
check_if_category_has_parent_with_price()
S
59 3 15
check_current_post_access()
S
65 3 10
is_post_price_type_two_price_zero()
S
67 3 7
check_premium_access()
S
67 3 8
is_access_check_disabled_on_home()
S
71 3 5
get_category_parents()
S
66 2 9
get_revenue_label()
S
70 2 6
get_post_price_behaviour()
S
79 1 3
is_price_type_global()
S
80 1 3
is_price_type_individual()
S
80 1 3
is_price_type_dynamic()
S
80 1 3
is_price_type_category()
S
80 1 3
reset_post_publication_date()
S
64 1 10
is_single_purchase_voucher_enabled()
S
78 1 3
calculate_transitional_price()
S
65 1 8