Block Visibility 3.1.2

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=e1a9148fe3
Aspect after-activation
HTTP status 200
Load time 0.421 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.645 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.219 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.389 s0.338 s-0.051 s3.38 MiB3.43 MiB+ 52.01 KiB
/wp-admin/edit.php0.342 s0.244 s-0.098 s3.41 MiB3.46 MiB+ 53.11 KiB
/wp-admin/post-new.php0.839 s0.747 s-0.092 s5.46 MiB5.63 MiB+ 174.8 KiB
/wp-admin/upload.php0.725 s0.452 s-0.273 s3.32 MiB3.36 MiB+ 35.01 KiB
/wp-admin/options-writing.php0.232 s0.187 s-0.045 s3.32 MiB3.34 MiB+ 27.59 KiB
/wp-admin/media-new.php0.314 s0.238 s-0.076 s3.29 MiB3.34 MiB+ 47.2 KiB
/wp-admin/edit-tags.php?taxonomy=category0.217 s0.191 s-0.026 s3.31 MiB3.36 MiB+ 52.37 KiB
/wp-admin/post-new.php?post_type=page0.824 s0.626 s-0.198 s5.45 MiB5.56 MiB+ 110.31 KiB
/wp-admin/options-discussion.php0.268 s0.247 s-0.021 s3.3 MiB3.34 MiB+ 35.5 KiB
/wp-admin/edit-comments.php0.267 s0.215 s-0.052 s3.34 MiB3.37 MiB+ 35 KiB
/0.282 s0.179 s-0.103 s3.36 MiB3.36 MiB+ 6.52 KiB
Average 0.427 s0.333 s-0.094 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,7202,41941
JavaScript0.6%35322
CSS0.1%303
Total 5,758 2,451 46

PHP Code Analysis | More results »

Lines of code 5,709
Total complexity 1,681
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