PPW_Shortcode B

Total Complexity 99
Dependencies 2
Dependents 4
Total lines 790
Lines of code 450
Logical lines of code 219
Comment lines 222
Methods 25
Properties 4

Methods 25

Method Rating Maintainability Complexity Lines of code
is_unlock_content_by_time()
A
54 12 21
get_restricted_content_form()
A
42 8 48
render_shortcode()
A
43 8 47
is_valid_password()
A
51 8 26
is_valid_attributes()
S
51 6 29
add_scripts()
S
46 5 41
render_block_content()
S
57 6 17
__construct()
S
42 3 55
maybe_add_ppwp_shortcode()
S
48 4 32
get_attributes()
S
58 5 16
get_cookie_expiration()
S
56 4 17
is_valid_date()
S
65 5 9
is_valid_shortcode()
S
58 4 15
is_whitelisted_role()
S
63 4 10
get_content_by_page_number()
S
61 3 13
get_main_class_name()
S
70 2 6
get_expired_time_cookie_attribute()
S
71 2 5
is_supported_post_types()
S
68 2 7
maybe_remove_ppwp_shortcode()
S
72 2 6
is_empty_content()
S
74 1 4
get_invalid_shortcode_message()
S
66 1 9
get_passwords_attribute()
S
68 1 8
massage_attributes()
S
80 1 3
get_instance()
S
80 1 3
get_the_permalink_without_cache()
S
79 1 3