Block Visibility 2.4.6

Does Block Visibility work with WordPress 6.1.1 and PHP 7.4.8? 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: 29.1 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 version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 10,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=abac62eb43
Aspect after-activation
HTTP status 200
Load time 0.245 s
Memory usage 3.52 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 1.114 s
Memory usage 3.5 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.286 s
Memory usage 3.44 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.295 s0.261 s-0.034 s3.54 MiB3.57 MiB+ 29.84 KiB
/wp-admin/edit.php0.174 s0.203 s+0.029 s3.57 MiB3.6 MiB+ 29.84 KiB
/wp-admin/post-new.php0.829 s0.814 s-0.015 s5.46 MiB5.47 MiB+ 4.13 KiB
/wp-admin/upload.php0.558 s0.271 s-0.287 s3.41 MiB3.5 MiB+ 92.71 KiB
/wp-admin/options-writing.php0.365 s0.294 s-0.071 s3.4 MiB3.41 MiB+ 11.18 KiB
/wp-admin/media-new.php0.276 s0.172 s-0.104 s3.39 MiB3.48 MiB+ 92.88 KiB
/wp-admin/edit-tags.php?taxonomy=category0.186 s0.177 s-0.009 s3.48 MiB3.51 MiB+ 29.79 KiB
/wp-admin/post-new.php?post_type=page0.609 s0.731 s+0.122 s5.46 MiB5.46 MiB- 272 bytes
/wp-admin/options-discussion.php0.205 s0.210 s+0.005 s3.38 MiB3.41 MiB+ 29.2 KiB
/wp-admin/edit-comments.php0.207 s0.203 s-0.004 s3.48 MiB3.51 MiB+ 28.7 KiB
/0.287 s0.231 s-0.056 s3.47 MiB3.44 MiB- 27.91 KiB
Average 0.363 s0.324 s-0.039 s3.82 MiB3.85 MiB+ 29.1 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%2,2731,05926
JavaScript0.9%20172
CSS0.1%303
Total 2,296 1,076 31

PHP Code Analysis | More results »

Lines of code 2,262
Total complexity 495
Median class complexity 23.0
Median method complexity 2.0
Most complex class Block_Visibility_REST_Variables_Controller
Most complex function user_role_test()
Classes 3
Methods 23
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.

User Metadata wp_usermeta 1

PHP Error Log

The log file is empty.

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