Category Posts Widget 4.9.12

Does Category Posts Widget work with WordPress 5.8 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
3JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 29.95 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
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 60,000+
WordPress.org page https://wordpress.org/plugins/category-posts/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

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=category-posts%2Fcat-posts.php&plugin_status=all&paged=1&s&_wpnonce=59a410b9a7
Aspect after-activation
HTTP status 200
Load time 0.368 s
Memory usage 3.07 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.297 s
Memory usage 2.94 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 2.018 s
Memory usage 4.49 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read property 'top' of undefined\n    at belowEntryMetaClass (/wp-content/themes/twentyseventeen/assets/js/global.js?ver=20190121:1:2802)\n    at HTMLDocument.<anonymous> (/wp-content/themes/twentyseventeen/assets/js/global.js?ver=20190121:1:4104)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8:2:30038)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8:2:30340)",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read property 'top' of undefined\n    at belowEntryMetaClass (/wp-content/themes/twentyseventeen/assets/js/global.js?ver=20190121:1:2802)\n    at HTMLDocument.<anonymous> (/wp-content/themes/twentyseventeen/assets/js/global.js?ver=20190121:1:4104)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8:2:30038)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8:2:30340)",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read property 'top' of undefined\n    at belowEntryMetaClass (/wp-content/themes/twentyseventeen/assets/js/global.js?ver=20190121:1:2802)\n    at HTMLDocument.<anonymous> (/wp-content/themes/twentyseventeen/assets/js/global.js?ver=20190121:1:4104)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8:2:30038)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8:2:30340)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.347 s0.279 s-0.068 s3.08 MiB3.11 MiB+ 28.52 KiB
/wp-admin/edit.php0.194 s0.186 s-0.008 s3.11 MiB3.2 MiB+ 92.52 KiB
/wp-admin/post-new.php1.212 s1.000 s-0.212 s5.27 MiB5.3 MiB+ 38.31 KiB
/wp-admin/upload.php0.691 s0.492 s-0.199 s3.03 MiB3.06 MiB+ 27.39 KiB
/wp-admin/options-writing.php0.185 s0.159 s-0.026 s3.02 MiB3.03 MiB+ 11.37 KiB
/wp-admin/media-new.php0.233 s0.195 s-0.038 s3.01 MiB3.03 MiB+ 27.56 KiB
/wp-admin/edit-tags.php?taxonomy=category0.193 s0.182 s-0.011 s3.04 MiB3.07 MiB+ 28.47 KiB
/wp-admin/post-new.php?post_type=page1.034 s0.981 s-0.053 s5.26 MiB5.29 MiB+ 37.9 KiB
/wp-admin/options-discussion.php0.302 s0.402 s+0.100 s3 MiB3.03 MiB+ 28.19 KiB
/wp-admin/edit-comments.php0.216 s0.218 s+0.002 s3.04 MiB3.07 MiB+ 27.38 KiB
/0.329 s0.238 s-0.091 s2.96 MiB2.94 MiB- 18.19 KiB
Average 0.449 s0.394 s-0.055 s3.44 MiB3.47 MiB+ 29.95 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
JavaScript
CSS
Language % Lines of code Comment lines Files
PHP62.9%2,4681,0068
JavaScript15.3%601816
CSS10.7%419497
HTML7.9%31201
JSON1.9%7601
XML0.7%2801
SVG0.6%2201
Total 3,926 1,136 25

PHP Code Analysis | More results »

Lines of code 2,478
Total complexity 512
Median class complexity 29.0
Median method complexity 3.0
Most complex class categoryPosts\Widget
Most complex function categoryPosts\Virtual_Widget::getCSSRules()
Classes 4
Methods 55
Functions 34

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.

Options wp_options 1

Sidebar Widgets 1

ID Name
category-postsCategory Posts

PHP Error Log

The log file is empty.

See also: All tests for this plugin