Post_Views_Counter_Counter D

Total Complexity 139
Dependencies 1
Dependents 1
Total lines 795
Lines of code 386
Logical lines of code 247
Comment lines 258
Methods 26
Properties 2

Methods 26

Method Rating Maintainability Complexity Lines of code
check_post()
B
41 23 49
save_cookie()
B
41 18 46
check_cookie()
A
51 10 23
save_ip()
A
51 9 24
check_post_js()
A
58 9 12
check_post_ajax()
S
59 8 12
update_cached_keys_list_if_needed()
S
55 6 20
check_post_php()
S
62 7 10
count_visit()
S
50 5 27
get_user_ip()
S
60 6 12
is_user_role_excluded()
S
60 5 13
check_post_rest_api()
S
59 5 12
flush_cache_to_db()
S
54 4 20
db_prepare_insert()
S
63 4 10
using_object_cache()
S
66 3 8
db_insert()
S
61 2 13
get_timestamp()
S
61 2 11
rest_api_init()
S
54 1 24
db_commit_insert()
S
71 2 6
get_post_views_rest_api()
S
73 2 4
ipv4_in_range()
S
68 2 6
validate_user_ip()
S
71 2 5
post_views_permissions_check()
S
78 1 3
__construct()
S
64 1 9
delete_post_views()
S
74 1 4
get_post_views_permissions_check()
S
78 1 3