Post_Views_Counter_Counter D

Total Complexity 214
Dependencies 2
Dependents 1
Total lines 1,397
Lines of code 696
Logical lines of code 394
Comment lines 466
Methods 36
Properties 6

Methods 36

Method Rating Maintainability Complexity Lines of code
save_cookie()
B
35 18 83
check_conditions()
A
49 15 28
save_cookie_storage()
A
40 13 56
check_cookie()
A
49 14 27
check_post()
A
46 13 33
check_post_js()
A
46 13 33
check_post_php()
A
55 13 16
check_post_rest_api()
A
45 11 38
is_homepage()
A
56 11 17
queue_count()
A
52 8 23
save_data_storage()
S
52 7 24
print_queue_count()
S
46 5 45
get_user_ip()
S
59 6 13
init_counter()
S
57 5 15
sanitize_storage_data()
S
58 5 15
is_user_role_excluded()
S
60 5 13
validate_rest_api_data()
S
59 5 13
using_object_cache()
S
62 5 11
flush_cache_to_db()
S
55 4 20
is_posts_page()
S
67 5 6
sanitize_cookies_data()
S
58 4 15
count_visit()
S
52 3 23
count_visit_multi()
S
63 4 10
db_prepare_insert()
S
63 4 10
db_insert()
S
61 3 11
rest_api_init()
S
49 1 38
db_commit_insert()
S
62 2 12
get_timestamp()
S
61 2 11
ipv4_in_range()
S
68 2 6
validate_user_ip()
S
71 2 5
__construct()
S
72 1 5
add_to_queue()
S
80 1 3
delete_post_views()
S
64 1 9
get_post_views_rest_api()
S
80 1 3
get_post_views_permissions_check()
S
78 1 3
view_post_permissions_check()
S
78 1 3