Woocommerce_Pay_Per_Post_Protection_Checks S

Total Complexity 31
Dependencies 4
Dependents 0
Total lines 158
Lines of code 95
Logical lines of code 60
Comment lines 20
Methods 12
Properties 0

Methods 12

Method Rating Maintainability Complexity Lines of code
check_if_purchased()
S
55 5 18
check_if_admin_user_have_access()
S
64 3 9
check_if_user_role_has_access()
S
65 3 9
check_if_is_paid_memberships_pro_member()
S
64 3 9
check_if_is_member()
S
64 3 9
check_if_is_subscriber()
S
64 3 9
check_if_admin_call()
S
67 2 8
check_if_logged_in()
S
74 2 4
check_if_post_contains_subscription_products()
S
69 2 6
check_if_post_contains_membership_products()
S
71 2 5
check_if_post_contains_paid_memberships_pro_membership_products()
S
71 2 5
check_if_has_access()
S
75 1 4