SwpmProtection S

Total Complexity 33
Dependencies 3
Dependents 5
Total lines 163
Lines of code 97
Logical lines of code 50
Comment lines 46
Methods 18
Properties 2

Methods 18

Method Rating Maintainability Complexity Lines of code
is_protected()
S
63 6 10
apply_protection_to_post()
S
58 4 15
get_all_protected_post_ids_list_from_db()
S
59 4 13
apply_protection_to_posts()
S
66 3 8
get_instance()
S
75 2 4
is_post_protected_for_current_user()
S
67 2 8
filter_protected_post_ids_list_for_current_user()
S
72 1 5
is_protected_parent_category()
S
80 1 3
is_protected_category()
S
80 1 3
__construct()
S
76 1 4
is_post_in_protected_parent_category()
S
80 1 3
is_protected_comment()
S
80 1 3
is_protected_custom_post()
S
80 1 3
is_protected_attachment()
S
80 1 3
is_protected_page()
S
80 1 3
is_protected_post()
S
80 1 3
get_last_message()
S
82 1 3
is_post_in_protected_category()
S
80 1 3