Block Visibility 3.2.0

Does Block Visibility work with WordPress 6.4.2 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: 57.22 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.4.2
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=f72611a8ff
Aspect after-activation
HTTP status 200
Load time 0.253 s
Memory usage 3.37 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.662 s
Memory usage 3.38 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.175 s
Memory usage 3.36 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.357 s0.302 s-0.055 s3.38 MiB3.43 MiB+ 52.01 KiB
/wp-admin/edit.php0.220 s0.194 s-0.026 s3.41 MiB3.46 MiB+ 53.11 KiB
/wp-admin/post-new.php0.871 s0.692 s-0.179 s5.46 MiB5.63 MiB+ 174.8 KiB
/wp-admin/upload.php0.708 s0.405 s-0.303 s3.32 MiB3.36 MiB+ 35.01 KiB
/wp-admin/options-writing.php0.203 s0.177 s-0.026 s3.32 MiB3.34 MiB+ 27.59 KiB
/wp-admin/media-new.php0.307 s0.193 s-0.114 s3.29 MiB3.34 MiB+ 47.2 KiB
/wp-admin/edit-tags.php?taxonomy=category0.216 s0.177 s-0.039 s3.31 MiB3.36 MiB+ 52.37 KiB
/wp-admin/post-new.php?post_type=page0.593 s0.618 s+0.025 s5.45 MiB5.56 MiB+ 110.31 KiB
/wp-admin/options-discussion.php0.311 s0.231 s-0.080 s3.3 MiB3.34 MiB+ 35.5 KiB
/wp-admin/edit-comments.php0.260 s0.203 s-0.057 s3.34 MiB3.37 MiB+ 35 KiB
/0.293 s0.206 s-0.087 s3.36 MiB3.36 MiB+ 6.52 KiB
Average 0.394 s0.309 s-0.086 s3.72 MiB3.78 MiB+ 57.22 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.3%5,7322,41841
JavaScript0.6%35322
CSS0.1%303
Total 5,770 2,450 46

PHP Code Analysis | More results »

Lines of code 5,721
Total complexity 1,688
Median class complexity 27.0
Median method complexity 2.0
Most complex class Block_Visibility_REST_Variables_Controller
Most complex function user_role_test()
Classes 3
Methods 27
Functions 143

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