Block Visibility 1.4.2

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

Summary

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

Memory usage: 18.52 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
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=d974cdf172
Aspect after-activation
HTTP status 200
Load time 0.224 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.603 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.295 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.264 s0.254 s-0.010 s2.79 MiB2.81 MiB+ 20.01 KiB
/wp-admin/edit.php0.179 s0.188 s+0.009 s2.84 MiB2.85 MiB+ 20.01 KiB
/wp-admin/post-new.php0.854 s0.878 s+0.024 s4.93 MiB4.96 MiB+ 28.98 KiB
/wp-admin/upload.php0.479 s0.347 s-0.132 s2.67 MiB2.69 MiB+ 18.91 KiB
/wp-admin/options-writing.php0.254 s0.136 s-0.118 s2.68 MiB2.67 MiB- 13.11 KiB
/wp-admin/media-new.php0.227 s0.197 s-0.030 s2.65 MiB2.66 MiB+ 19.09 KiB
/wp-admin/edit-tags.php?taxonomy=category0.203 s0.205 s+0.002 s2.68 MiB2.76 MiB+ 83.99 KiB
/wp-admin/post-new.php?post_type=page1.005 s0.617 s-0.388 s4.92 MiB4.95 MiB+ 28.41 KiB
/wp-admin/options-discussion.php0.309 s0.290 s-0.019 s2.65 MiB2.67 MiB+ 19.45 KiB
/wp-admin/edit-comments.php0.252 s0.204 s-0.048 s2.75 MiB2.77 MiB+ 18.95 KiB
/0.304 s0.333 s+0.029 s2.67 MiB2.63 MiB- 40.99 KiB
Average 0.394 s0.332 s-0.062 s3.11 MiB3.13 MiB+ 18.52 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,12367720
Total 1,123 677 20

PHP Code Analysis | More results »

Lines of code 1,112
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 33 lines

[19-Jan-2021 15:09:22 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
[19-Jan-2021 15:09:24 UTC] PHP Notice:  Undefined variable: is_full_control_mode in /wp-content/plugins/block-visibility/includes/admin/editor.php on line 48
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 673
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 674
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 682
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 685
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: scheme in /wp-includes/canonical.php on line 706
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 673
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 674
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 682
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 685
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: scheme in /wp-includes/canonical.php on line 706
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined variable: is_full_control_mode in /wp-content/plugins/block-visibility/includes/admin/editor.php on line 48
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 673
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 674
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 682
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 685
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: scheme in /wp-includes/canonical.php on line 706
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 673
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 674
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 682
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 685
[19-Jan-2021 15:09:27 UTC] PHP Notice:  Undefined index: scheme in /wp-includes/canonical.php on line 706
[19-Jan-2021 15:09:28 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 673
[19-Jan-2021 15:09:28 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 674
[19-Jan-2021 15:09:28 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 682
[19-Jan-2021 15:09:28 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 685
[19-Jan-2021 15:09:28 UTC] PHP Notice:  Undefined index: scheme in /wp-includes/canonical.php on line 706
[19-Jan-2021 15:09:28 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 673
[19-Jan-2021 15:09:28 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 674
[19-Jan-2021 15:09:28 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 682
[19-Jan-2021 15:09:28 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 685
[19-Jan-2021 15:09:28 UTC] PHP Notice:  Undefined index: scheme in /wp-includes/canonical.php on line 706
See also: All tests for this plugin, How to Hide the "Block Visibility" Admin Menu