Woocommerce_Pay_Per_Post_Helper A

Total Complexity 61
Dependencies 5
Dependents 7
Total lines 439
Lines of code 313
Logical lines of code 126
Comment lines 55
Methods 28
Properties 1

Methods 28

Method Rating Maintainability Complexity Lines of code
get_posts_associated_with_product_id()
S
45 6 42
is_protected()
S
52 6 25
protection_display_icon()
S
59 6 15
replace_tokens()
S
58 5 13
locate_template()
S
57 4 18
get_protected_posts()
S
51 3 28
recursive_array_search()
S
61 4 12
get_virtual_products()
S
47 2 41
get_all_products()
S
56 2 18
md_array_diff()
S
66 3 8
get_posts_associated_with_product_id_interface()
S
63 2 11
get_products()
S
66 2 8
carbon_add_method()
S
63 1 11
carbon_diff_method()
S
63 1 11
has_access()
S
74 1 4
has_purchased()
S
75 1 4
get_no_access_content()
S
75 1 4
current_time()
S
79 1 3
date_time_format()
S
77 1 3
logger()
S
75 1 4
logger_uri()
S
76 1 4
logger_url()
S
76 1 4
can_use_woocommerce_memberships()
S
81 1 3
can_use_woocommerce_subscriptions()
S
81 1 3
can_use_paid_membership_pro()
S
81 1 3
can_use_elementor()
S
81 1 3
move_to_top()
S
69 1 7
get_the_excerpt()
S
80 1 3