Block Visibility 3.0.4

Does Block Visibility work with WordPress 6.3.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.99 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.3.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=5ffdf96510
Aspect after-activation
HTTP status 200
Load time 0.265 s
Memory usage 2.81 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.562 s
Memory usage 2.82 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.172 s
Memory usage 3.18 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.362 s0.287 s-0.075 s2.82 MiB2.87 MiB+ 46.89 KiB
/wp-admin/edit.php0.206 s0.204 s-0.002 s2.85 MiB2.9 MiB+ 47.63 KiB
/wp-admin/post-new.php0.772 s0.786 s+0.014 s5.21 MiB5.3 MiB+ 92.36 KiB
/wp-admin/upload.php0.627 s0.558 s-0.069 s2.77 MiB2.8 MiB+ 29.52 KiB
/wp-admin/options-writing.php0.233 s0.203 s-0.030 s2.76 MiB2.78 MiB+ 21.48 KiB
/wp-admin/media-new.php0.495 s0.158 s-0.337 s2.74 MiB2.78 MiB+ 41.71 KiB
/wp-admin/edit-tags.php?taxonomy=category0.198 s0.183 s-0.015 s2.76 MiB2.8 MiB+ 46.88 KiB
/wp-admin/post-new.php?post_type=page0.610 s0.604 s-0.006 s5.21 MiB5.24 MiB+ 27.87 KiB
/wp-admin/options-discussion.php0.417 s0.389 s-0.028 s2.75 MiB2.78 MiB+ 30.02 KiB
/wp-admin/edit-comments.php0.248 s0.247 s-0.001 s2.78 MiB2.81 MiB+ 29.52 KiB
/0.302 s0.224 s-0.078 s3.13 MiB3.18 MiB+ 48.02 KiB
Average 0.406 s0.349 s-0.057 s3.25 MiB3.29 MiB+ 41.99 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,6841,62735
JavaScript0.9%33302
CSS0.1%303
Total 3,720 1,657 40

PHP Code Analysis | More results »

Lines of code 3,673
Total complexity 1,003
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