Block Visibility 3.0.0

Does Block Visibility work with WordPress 6.1.1 and PHP 8.1.12? 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: 41.4 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 version6.1.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
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=180895034c
Aspect after-activation
HTTP status 200
Load time 0.212 s
Memory usage 3.04 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.572 s
Memory usage 3.03 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.233 s
Memory usage 3 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.255 s0.213 s-0.042 s3.05 MiB3.09 MiB+ 47.22 KiB
/wp-admin/edit.php0.155 s0.182 s+0.027 s3.07 MiB3.12 MiB+ 47.96 KiB
/wp-admin/post-new.php0.753 s0.880 s+0.127 s4.97 MiB5.05 MiB+ 90.02 KiB
/wp-admin/upload.php0.516 s0.280 s-0.236 s2.99 MiB3.02 MiB+ 29.85 KiB
/wp-admin/options-writing.php0.131 s0.136 s+0.005 s2.99 MiB3 MiB+ 16.5 KiB
/wp-admin/media-new.php0.248 s0.177 s-0.071 s2.97 MiB3.01 MiB+ 42.04 KiB
/wp-admin/edit-tags.php?taxonomy=category0.161 s0.191 s+0.030 s2.98 MiB3.03 MiB+ 47.21 KiB
/wp-admin/post-new.php?post_type=page0.788 s0.800 s+0.012 s4.96 MiB4.98 MiB+ 21.52 KiB
/wp-admin/options-discussion.php0.219 s0.239 s+0.020 s2.98 MiB3 MiB+ 30.34 KiB
/wp-admin/edit-comments.php0.191 s0.192 s+0.001 s3 MiB3.03 MiB+ 29.84 KiB
/0.253 s0.202 s-0.051 s2.94 MiB3 MiB+ 52.91 KiB
Average 0.334 s0.317 s-0.016 s3.35 MiB3.39 MiB+ 41.4 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
PHP99.0%3,6781,62635
JavaScript0.9%33302
CSS0.1%303
Total 3,714 1,656 40

PHP Code Analysis | More results »

Lines of code 3,667
Total complexity 1,000
Median class complexity 25.0
Median method complexity 2.0
Most complex class Block_Visibility
Most complex function user_role_test()
Classes 3
Methods 24
Functions 90

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.

Custom Post Types 1

ID Name
visibility_presetPresets

PHP Error Log

The log file is empty.

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