Block Visibility 1.5.0

Does Block Visibility work with WordPress 5.6.2 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
1PHP notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 27.73 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 version5.6.2
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
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=09bb847d7b
Aspect after-activation
HTTP status 200
Load time 0.258 s
Memory usage 2.77 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.621 s
Memory usage 2.71 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.301 s
Memory usage 2.63 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.436 s0.249 s-0.187 s2.79 MiB2.82 MiB+ 23.32 KiB
/wp-admin/edit.php0.183 s0.187 s+0.004 s2.84 MiB2.86 MiB+ 23.32 KiB
/wp-admin/post-new.php1.305 s0.739 s-0.566 s4.93 MiB4.97 MiB+ 38.93 KiB
/wp-admin/upload.php0.541 s0.434 s-0.107 s2.67 MiB2.69 MiB+ 22.23 KiB
/wp-admin/options-writing.php0.310 s0.144 s-0.166 s2.68 MiB2.67 MiB- 9.8 KiB
/wp-admin/media-new.php0.222 s0.155 s-0.067 s2.65 MiB2.67 MiB+ 22.4 KiB
/wp-admin/edit-tags.php?taxonomy=category0.194 s0.168 s-0.026 s2.68 MiB2.77 MiB+ 87.3 KiB
/wp-admin/post-new.php?post_type=page0.720 s0.679 s-0.041 s4.92 MiB4.96 MiB+ 34.56 KiB
/wp-admin/options-discussion.php0.215 s0.278 s+0.063 s2.65 MiB2.67 MiB+ 22.71 KiB
/wp-admin/edit-comments.php0.226 s0.215 s-0.011 s2.75 MiB2.77 MiB+ 22.21 KiB
/0.244 s0.228 s-0.016 s2.61 MiB2.63 MiB+ 17.84 KiB
Average 0.418 s0.316 s-0.102 s3.11 MiB3.13 MiB+ 27.73 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
PHP100.0%1,27166319
Total 1,271 663 19

PHP Code Analysis | More results »

Lines of code 1,262
Total complexity 181
Median class complexity 9.0
Median method complexity 2.0
Most complex class Block_Visibility
Most complex function visibility_by_role_test()
Classes 3
Methods 19
Functions 30

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 1 lines

[26-Feb-2021 12:55:31 UTC] PHP Notice:  Trying to get property 'roles' of non-object in /wp-content/plugins/block-visibility/includes/utils/user-functions.php on line 73
See also: All tests for this plugin, How to Hide the "Block Visibility" Admin Menu