Leaky_Paywall_Restrictions D

Total Complexity 203
Dependencies 0
Dependents 3
Total lines 968
Lines of code 567
Logical lines of code 361
Comment lines 224
Methods 34
Properties 3

Methods 34

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_matches_restriction_rules()
A
52 9 28
content_restricted_by_settings()
A
54 9 20
content_matches_restriction_exceptions()
A
51 8 27
replace_variables()
S
50 7 29
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
check_js_restrictions()
S
58 4 15
pdf_access()
S
57 4 14
is_single()
S
62 4 13
hide_initial_content_display()
S
58 3 16
process_content_restrictions()
S
63 3 11
get_nag_excerpt()
S
63 3 9
subscriber_can_view()
S
67 3 9
user_role_can_bypass_paywall()
S
65 3 10
display_viewed_content_debug()
S
60 2 14
the_content_paywall_message()
S
60 2 13
is_unblockable_content()
S
61 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
clear_cookie()
S
78 1 3
get_cookie_name()
S
75 1 4
process_js_content_restrictions()
S
75 1 4