WPPCP_Private_Content D

Total Complexity 238
Dependencies 1
Dependents 1
Total lines 1,149
Lines of code 825
Logical lines of code 550
Comment lines 29
Methods 32
Properties 2

Methods 32

Method Rating Maintainability Complexity Lines of code
blocked_roles_filter()
B
38 23 67
allowed_roles_filter()
B
38 23 67
private_content_block()
B
37 18 76
get_restriction_message()
B
44 17 43
allowed_capabilities_filter()
A
47 14 37
blocked_capabilities_filter()
A
47 14 37
allowed_meta_key_filter()
A
47 13 35
save_bulk_private_content_upload()
A
48 13 27
private_content_by_password()
A
47 10 32
private_content_by_registration()
A
46 8 37
scheduled_content_block()
A
46 8 37
private_content_by_woocommerce_product()
S
51 7 24
private_content_page()
S
51 7 24
guest_content_block()
S
54 5 20
member_content_block()
S
54 5 20
blocked_users_filter()
S
57 5 16
blocked_group_filter()
S
57 5 16
allowed_users_filter()
S
57 5 16
allowed_group_filter()
S
57 5 16
user_role_restricted_posts()
S
49 4 29
user_restricted_posts()
S
49 4 29
profile_tab_items()
S
60 5 12
registered_before_filter()
S
58 3 15
registered_after_filter()
S
58 3 15
init()
S
63 3 10
start_date_filter()
S
61 2 12
end_date_filter()
S
61 2 12
__construct()
S
58 1 15
profile_view_forms()
S
64 2 10
guest_filter()
S
74 2 5
private_content_success_notices()
S
72 1 7
private_content_error_notices()
S
72 1 7