ConvertKit_Output_Restrict_Content D

Total Complexity 140
Dependencies 9
Dependents 1
Total lines 1,942
Lines of code 1,026
Logical lines of code 353
Comment lines 637
Methods 29
Properties 9

Methods 29

Method Rating Maintainability Complexity Lines of code
is_crawler()
D
15
7 467
maybe_run_subscriber_authentication()
C
30 26 123
get_call_to_action()
B
36 14 85
maybe_restrict_content()
A
44 14 46
maybe_run_subscriber_verification()
A
46 9 42
resource_exists()
S
52 7 27
subscriber_has_access()
S
53 6 25
ip_in_range()
S
54 6 21
subscriber_has_access_to_tag_by_subscriber_id()
S
59 5 15
subscriber_has_access_to_product_by_signed_subscriber_id()
S
63 4 10
subscriber_has_access_to_tag_by_signed_subscriber_id()
S
63 4 10
subscriber_has_access_to_form_by_signed_subscriber_id()
S
63 4 10
get_content_preview()
S
60 3 13
is_restricted_content()
S
64 3 11
maybe_change_next_post_where_clause()
S
62 3 11
maybe_change_previous_post_where_clause()
S
62 3 11
maybe_change_previous_next_post_order_by_clause()
S
66 3 9
has_parent_page()
S
66 3 9
__construct()
S
58 2 14
get_url()
S
63 2 12
get_subscriber_id_from_request()
S
68 2 8
restrict_content()
S
64 2 10
get_resource_type()
S
65 2 9
get_resource_id()
S
70 1 6
in_authentication_flow()
S
80 1 3
redirect()
S
77 1 4
get_excerpt()
S
70 1 6
store_subscriber_id_in_cookie()
S
76 1 4
register_content_filter()
S
72 1 5