Leaky_Paywall_Restrictions D

Total Complexity 190
Dependencies 0
Dependents 2
Total lines 882
Lines of code 525
Logical lines of code 334
Comment lines 134
Methods 32
Properties 3

Methods 32

Method Rating Maintainability Complexity Lines of code
level_id_allows_access()
D
34 46 72
allowed_value_exceeded()
C
38 31 66
visibility_allows_access()
A
48 14 32
content_restricted_by_settings()
A
55 9 19
content_matches_restriction_rules()
A
53 8 25
replace_variables()
S
51 7 26
current_user_can_access()
S
54 7 26
get_expiration_time()
S
54 6 22
content_taxonomy_matches()
S
57 6 17
visibility_restricts_access()
S
58 6 14
get_number_viewed_by_term()
S
59 5 14
is_single()
S
62 4 13
check_js_restrictions()
S
59 3 15
pdf_access()
S
59 3 12
process_content_restrictions()
S
63 3 11
user_role_can_bypass_paywall()
S
65 3 10
subscriber_can_view()
S
67 3 9
get_nag_excerpt()
S
63 3 9
display_viewed_content_debug()
S
60 2 14
hide_initial_content_display()
S
63 2 13
is_unblockable_content()
S
61 2 13
the_content_paywall_message()
S
60 2 13
get_subscribe_nag()
S
66 2 8
get_total_content_viewed()
S
67 2 8
is_content_restricted()
S
68 2 7
get_content_viewed_by_user()
S
66 2 8
__construct()
S
69 2 6
display_subscribe_nag()
S
78 1 3
get_restriction_settings()
S
76 1 4
update_content_viewed_by_user()
S
66 1 8
get_cookie_name()
S
75 1 4
process_js_content_restrictions()
S
75 1 4