Post Views Counter 1.3.6

Does Post Views Counter work with WordPress 5.8.1 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
1PHP notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 131.94 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.038 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version5.8.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 200,000+
WordPress.org page https://wordpress.org/plugins/post-views-counter/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 7

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=post-views-counter%2Fpost-views-counter.php&plugin_status=all&paged=1&s&_wpnonce=e210ab3107
Aspect after-activation
HTTP status 200
Load time 0.639 s
Memory usage 3.19 MiB
JS errors None
Resource errors None

Settings → Post Views Counter

Page screenshot: Settings → Post Views Counter
URL /wp-admin/options-general.php?page=post-views-counter
Aspect menu-item
HTTP status 200
Load time 0.360 s
Memory usage 3.14 MiB
JS errors None
Resource errors None

Settings → Post Views Counter → Display

Page screenshot: Settings → Post Views Counter → Display
URL /wp-admin/options-general.php?page=post-views-counter&tab=display
Aspect menu-item-tab
HTTP status 200
Load time 0.145 s
Memory usage 3.14 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.183 s
Memory usage 3.01 MiB
JS errors None
Resource errors None

Dashboard ‹ Test site — WordPress

Page screenshot: Dashboard ‹ Test site — WordPress
URL /wp-admin/index.php
Aspect new-meta-boxes
HTTP status 200
Load time 0.406 s
Memory usage 3.23 MiB
JS errors None
Resource errors None

Add New Post ‹ Test site — WordPress

Page screenshot: Add New Post ‹ Test site — WordPress
URL /wp-admin/post-new.php
Aspect new-meta-boxes
HTTP status 200
Load time 1.236 s
Memory usage 5.37 MiB
JS errors None
Resource errors None

Widgets ‹ Test site — WordPress

Page screenshot: Widgets ‹ Test site — WordPress
URL /wp-admin/widgets.php
Aspect new-sidebar-widgets
HTTP status 200
Load time 1.867 s
Memory usage 4.56 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.316 s0.319 s+0.003 s3.08 MiB3.23 MiB+ 154.13 KiB
/wp-admin/edit.php0.171 s0.249 s+0.078 s3.11 MiB3.32 MiB+ 215.18 KiB
/wp-admin/post-new.php0.902 s1.239 s+0.337 s5.27 MiB5.37 MiB+ 103.56 KiB
/wp-admin/upload.php0.520 s0.301 s-0.219 s3.03 MiB3.16 MiB+ 131.62 KiB
/wp-admin/options-writing.php0.167 s0.122 s-0.045 s3.02 MiB3.14 MiB+ 123.53 KiB
/wp-admin/media-new.php0.248 s0.178 s-0.070 s3.01 MiB3.14 MiB+ 139.79 KiB
/wp-admin/edit-tags.php?taxonomy=category0.183 s0.172 s-0.011 s3.04 MiB3.18 MiB+ 140.7 KiB
/wp-admin/post-new.php?post_type=page0.924 s1.166 s+0.242 s5.26 MiB5.36 MiB+ 103.31 KiB
/wp-admin/options-discussion.php0.202 s0.241 s+0.039 s3 MiB3.14 MiB+ 140.04 KiB
/wp-admin/edit-comments.php0.192 s0.226 s+0.034 s3.04 MiB3.18 MiB+ 139.6 KiB
/0.272 s0.307 s+0.035 s2.96 MiB3.01 MiB+ 59.88 KiB
Average 0.372 s0.411 s+0.038 s3.44 MiB3.57 MiB+ 131.94 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PHP
CSS
Language % Lines of code Comment lines Files
PHP76.8%3,9561,37214
CSS16.4%844514
JavaScript6.8%352486
Total 5,152 1,471 24

PHP Code Analysis | More results »

Lines of code 3,919
Total complexity 894
Median class complexity 59.5
Median method complexity 3.0
Most complex class Post_Views_Counter_Counter
Most complex function pvc_get_views()
Classes 12
Methods 151
Functions 8

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Database Tables 1

Options wp_options 5

Sidebar Widgets 1

ID Name
post_views_counter_list_widgetMost Viewed Posts

Meta Boxes

{
    "dashboard": {
        "pvc_dashboard": {
            "title": "Post Views Counter",
            "context": "normal"
        }
    },
    "post": {
        "post_views_meta_box": {
            "title": "Post Views",
            "context": ""
        }
    }
}

PHP Error Log 1 lines

[16-Sep-2021 11:44:28 UTC] PHP Notice:  wp_enqueue_script() was called <strong>incorrectly</strong>. "wp-editor" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.8.0.) in /wp-includes/functions.php on line 5663
See also: All tests for this plugin, How to Hide Post Views Counter Admin Menus and Widgets