Block Visibility 2.6.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: 7.75 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=dd0b7ebc87
Aspect after-activation
HTTP status 200
Load time 0.240 s
Memory usage 3.02 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.545 s
Memory usage 3.01 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.274 s
Memory usage 2.97 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.290 s0.235 s-0.055 s3.05 MiB3.07 MiB+ 26.63 KiB
/wp-admin/edit.php0.196 s0.200 s+0.004 s3.07 MiB3.1 MiB+ 26.63 KiB
/wp-admin/post-new.php0.793 s0.891 s+0.098 s4.97 MiB4.97 MiB+ 1.34 KiB
/wp-admin/upload.php0.535 s0.297 s-0.238 s2.99 MiB3 MiB+ 9.27 KiB
/wp-admin/options-writing.php0.144 s0.151 s+0.007 s2.99 MiB2.98 MiB- 4.09 KiB
/wp-admin/media-new.php0.290 s0.147 s-0.143 s2.97 MiB2.99 MiB+ 21.45 KiB
/wp-admin/edit-tags.php?taxonomy=category0.162 s0.198 s+0.036 s2.98 MiB3.01 MiB+ 26.63 KiB
/wp-admin/post-new.php?post_type=page0.631 s0.802 s+0.171 s4.96 MiB4.9 MiB- 64.77 KiB
/wp-admin/options-discussion.php0.213 s0.260 s+0.047 s2.98 MiB2.98 MiB+ 9.76 KiB
/wp-admin/edit-comments.php0.188 s0.208 s+0.020 s3 MiB3.01 MiB+ 9.26 KiB
/0.275 s0.207 s-0.068 s2.94 MiB2.97 MiB+ 23.09 KiB
Average 0.338 s0.327 s-0.011 s3.35 MiB3.36 MiB+ 7.75 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,3031,08026
JavaScript1.0%23202
CSS0.1%303
Total 2,329 1,100 31

PHP Code Analysis | More results »

Lines of code 2,292
Total complexity 489
Median class complexity 25.0
Median method complexity 2.0
Most complex class Block_Visibility
Most complex function user_role_test()
Classes 3
Methods 25
Functions 51

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