Post_Views_Counter_Counter D

Total Complexity 194
Dependencies 1
Dependents 1
Total lines 1,103
Lines of code 569
Logical lines of code 326
Comment lines 351
Methods 32
Properties 4

Methods 32

Method Rating Maintainability Complexity Lines of code
check_post()
C
37 28 61
save_cookie()
B
35 21 80
decrypt_ip()
A
51 16 19
encrypt_ip()
A
51 16 19
check_cookie()
A
49 12 27
queue_count()
A
52 9 23
check_post_js()
A
54 9 18
save_ip()
S
52 7 23
update_cached_keys_list_if_needed()
S
56 6 19
init_counter()
S
57 6 15
get_user_ip()
S
59 6 13
print_queue_count()
S
48 4 42
check_post_php()
S
61 6 11
count_visit()
S
50 5 26
check_post_rest_api()
S
56 5 16
is_user_role_excluded()
S
60 5 13
validate_rest_api_data()
S
59 5 13
flush_cache_to_db()
S
55 4 19
db_prepare_insert()
S
63 4 10
rest_api_init()
S
51 1 32
using_object_cache()
S
66 3 8
db_commit_insert()
S
62 2 12
get_timestamp()
S
61 2 11
db_insert()
S
67 2 7
ipv4_in_range()
S
68 2 6
validate_user_ip()
S
71 2 5
add_to_queue()
S
80 1 3
delete_post_views()
S
74 1 4
get_post_views_rest_api()
S
80 1 3
post_view_permissions_check()
S
78 1 3
get_post_views_permissions_check()
S
78 1 3
__construct()
S
72 1 5