Post Views Counter 1.3.5

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: insignificant.
The plugin didn't make the site noticeably slower.

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=2487df1751
Aspect after-activation
HTTP status 200
Load time 0.705 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.367 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.142 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.202 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.341 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 0.722 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.853 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.297 s0.331 s+0.034 s3.08 MiB3.23 MiB+ 154.13 KiB
/wp-admin/edit.php0.173 s0.226 s+0.053 s3.11 MiB3.32 MiB+ 215.18 KiB
/wp-admin/post-new.php0.863 s0.729 s-0.134 s5.27 MiB5.37 MiB+ 103.56 KiB
/wp-admin/upload.php0.531 s0.381 s-0.150 s3.03 MiB3.16 MiB+ 131.62 KiB
/wp-admin/options-writing.php0.165 s0.210 s+0.045 s3.02 MiB3.14 MiB+ 123.53 KiB
/wp-admin/media-new.php0.236 s0.156 s-0.080 s3.01 MiB3.14 MiB+ 139.79 KiB
/wp-admin/edit-tags.php?taxonomy=category0.186 s0.169 s-0.017 s3.04 MiB3.18 MiB+ 140.7 KiB
/wp-admin/post-new.php?post_type=page0.752 s0.692 s-0.060 s5.26 MiB5.36 MiB+ 103.31 KiB
/wp-admin/options-discussion.php0.213 s0.284 s+0.071 s3 MiB3.14 MiB+ 140.04 KiB
/wp-admin/edit-comments.php0.203 s0.217 s+0.014 s3.04 MiB3.18 MiB+ 139.6 KiB
/0.301 s0.227 s-0.074 s2.96 MiB3.01 MiB+ 59.88 KiB
Average 0.356 s0.329 s-0.027 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,37114
CSS16.4%844514
JavaScript6.8%352486
Total 5,152 1,470 24

PHP Code Analysis | More results »

Lines of code 3,919
Total complexity 895
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

[09-Sep-2021 05:42:43 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