Block Visibility 2.4.0

Does Block Visibility work with WordPress 5.9.3 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Looks good! No problems were detected.
Performance

Memory usage: 34.53 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.9.3
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 20,000+
WordPress.org page https://wordpress.org/plugins/block-visibility/
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=block-visibility%2Fblock-visibility.php&plugin_status=all&paged=1&s&_wpnonce=ec6aedeea2
Aspect after-activation
HTTP status 200
Load time 0.214 s
Memory usage 3.36 MiB
JS errors None
Resource errors None

Settings → Block Visibility

Page screenshot: Settings → Block Visibility
URL /wp-admin/options-general.php?page=block-visibility-settings
Aspect menu-item
HTTP status 200
Load time 0.900 s
Memory usage 3.46 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.198 s
Memory usage 3.37 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.346 s0.209 s-0.137 s3.37 MiB3.4 MiB+ 28.91 KiB
/wp-admin/edit.php0.147 s0.182 s+0.035 s3.4 MiB3.43 MiB+ 28.91 KiB
/wp-admin/post-new.php0.829 s0.854 s+0.025 s5.69 MiB5.74 MiB+ 52.05 KiB
/wp-admin/upload.php0.477 s0.262 s-0.215 s3.25 MiB3.28 MiB+ 35.77 KiB
/wp-admin/options-writing.php0.271 s0.134 s-0.137 s3.24 MiB3.26 MiB+ 19.63 KiB
/wp-admin/media-new.php0.192 s0.137 s-0.055 s3.23 MiB3.26 MiB+ 35.95 KiB
/wp-admin/edit-tags.php?taxonomy=category0.143 s0.160 s+0.017 s3.27 MiB3.29 MiB+ 28.85 KiB
/wp-admin/post-new.php?post_type=page0.902 s0.838 s-0.064 s5.68 MiB5.73 MiB+ 47.64 KiB
/wp-admin/options-discussion.php0.205 s0.279 s+0.074 s3.22 MiB3.26 MiB+ 36.26 KiB
/wp-admin/edit-comments.php0.182 s0.183 s+0.001 s3.27 MiB3.36 MiB+ 91.76 KiB
/0.247 s0.187 s-0.060 s3.4 MiB3.37 MiB- 25.89 KiB
Average 0.358 s0.311 s-0.047 s3.73 MiB3.76 MiB+ 34.53 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
Language % Lines of code Comment lines Files
PHP98.9%2,13197929
JavaScript0.9%2012
CSS0.1%303
Total 2,154 980 34

PHP Code Analysis | More results »

Lines of code 2,117
Total complexity 460
Median class complexity 22.0
Median method complexity 2.0
Most complex class Block_Visibility
Most complex function user_role_test()
Classes 3
Methods 23
Functions 45

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.

No new entries found.

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide the "Block Visibility" Admin Menu