Woocommerce_Pay_Per_Post_Helper C

Total Complexity 108
Dependencies 6
Dependents 7
Total lines 702
Lines of code 496
Logical lines of code 251
Comment lines 79
Methods 40
Properties 1

Methods 40

Method Rating Maintainability Complexity Lines of code
get_product_ids_by_post_id()
A
38 14 75
get_elementor_product_ids()
S
51 7 25
get_protection_type()
S
54 6 21
protection_display_icon()
S
59 6 15
allowed_roles_for_meta_box()
S
56 5 18
replace_tokens()
S
60 5 12
get_protected_posts()
S
52 4 24
get_posts_associated_with_product_id()
S
52 4 24
is_protected()
S
56 4 18
locate_template()
S
57 4 18
recursive_array_search()
S
58 4 15
get_virtual_products()
S
47 2 41
array_values_recursive()
S
63 3 11
get_all_products()
S
56 2 18
md_array_diff()
S
66 3 8
carbon_add_method()
S
60 2 14
carbon_diff_method()
S
60 2 14
get_protected_post_types_args()
S
60 2 13
have_post_products()
S
61 2 12
get_posts_associated_with_product_id_interface()
S
63 2 11
logger()
S
68 2 7
get_protected_post_types()
S
74 2 4
get_products()
S
66 2 8
flatten()
S
68 2 7
get_post_types()
S
68 2 7
has_access()
S
68 1 6
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_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
search_protected_posts_by_id()
S
78 1 3
is_an_allowed_protected_post_type()
S
79 1 3