NutsForPress Restricted Contents 1.4

Does "NutsForPress Restricted Contents" work with WordPress 6.8.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
24PHP warnings
10PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 27.09 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.8.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs <10
WordPress.org page https://wordpress.org/plugins/nutsforpress-restricted-contents/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 6

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=nutsforpress-restricted-contents%2Fnuts-for-press-restricted-contents.php&plugin_status=all&paged=1&s&_wpnonce=5b14d464ae
Aspect after-activation
HTTP status 200
Load time 0.337 s
Memory usage 3.56 MiB
JS errors None
Resource errors None

NutsForPress

Page screenshot: NutsForPress
URL /wp-admin/admin.php?page=nfproot-settings
Aspect menu-item
HTTP status 200
Load time 0.656 s
Memory usage 3.52 MiB
JS errors None
Resource errors None

NutsForPress → Restricted Contents

Page screenshot: NutsForPress → Restricted Contents
URL /wp-admin/admin.php?page=nfprct-settings
Aspect menu-item
HTTP status 200
Load time 0.586 s
Memory usage 3.6 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.174 s
Memory usage 3.45 MiB
JS errors None
Resource errors None

Add Post ‹ Test site — WordPress

Page screenshot: Add Post ‹ Test site — WordPress
URL /wp-admin/post-new.php
Aspect new-meta-boxes
HTTP status 200
Load time 0.677 s
Memory usage 6.09 MiB
JS errors None
Resource errors None

Add Page ‹ Test site — WordPress

Page screenshot: Add Page ‹ Test site — WordPress
URL /wp-admin/post-new.php?post_type=page
Aspect new-meta-boxes
HTTP status 200
Load time 0.663 s
Memory usage 6.07 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.353 s0.271 s-0.082 s3.51 MiB3.54 MiB+ 34.2 KiB
/wp-admin/edit.php0.205 s0.211 s+0.006 s3.57 MiB3.6 MiB+ 31.74 KiB
/wp-admin/post-new.php0.836 s0.654 s-0.182 s6.06 MiB6.09 MiB+ 28.19 KiB
/wp-admin/upload.php0.774 s0.820 s+0.046 s3.52 MiB3.54 MiB+ 20.88 KiB
/wp-admin/options-writing.php0.234 s0.259 s+0.025 s3.5 MiB3.53 MiB+ 24.24 KiB
/wp-admin/media-new.php0.273 s0.270 s-0.003 s3.49 MiB3.52 MiB+ 32.49 KiB
/wp-admin/edit-tags.php?taxonomy=category0.209 s0.206 s-0.003 s3.5 MiB3.54 MiB+ 37.98 KiB
/wp-admin/post-new.php?post_type=page0.753 s0.652 s-0.101 s6.05 MiB6.08 MiB+ 28.19 KiB
/wp-admin/options-discussion.php0.270 s0.644 s+0.374 s3.5 MiB3.52 MiB+ 21.37 KiB
/wp-admin/edit-comments.php0.445 s0.215 s-0.230 s3.52 MiB3.54 MiB+ 20.24 KiB
/0.318 s0.220 s-0.098 s3.43 MiB3.45 MiB+ 18.49 KiB
Average 0.425 s0.402 s-0.023 s3.97 MiB4 MiB+ 27.09 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
PHP87.2%1,68326917
JavaScript7.0%136502
CSS5.8%11211
Total 1,931 320 20

PHP Code Analysis | More results »

Lines of code 1,698
Total complexity 279
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function nfproot_settings_structure()
Classes 0
Methods 0
Functions 38

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.

Options wp_options 1

Meta Boxes

{
    "post": {
        "nfprct-restricted": {
            "title": "Restricted Content",
            "context": "side"
        }
    },
    "page": {
        "nfprct-restricted": {
            "title": "Restricted Content",
            "context": "side"
        }
    }
}

PHP Error Log 34 lines

[25-Jul-2025 03:53:32 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /wp-config.php on line 174
[25-Jul-2025 03:53:32 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /wp-config.php on line 175
[25-Jul-2025 03:53:32 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 717
[25-Jul-2025 03:53:32 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-includes/canonical.php on line 717
[25-Jul-2025 03:53:32 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 718
[25-Jul-2025 03:53:32 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-includes/canonical.php on line 718
[25-Jul-2025 03:53:32 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 728
[25-Jul-2025 03:53:32 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 731
[25-Jul-2025 03:53:32 UTC] PHP Warning:  Undefined array key "scheme" in /wp-includes/canonical.php on line 752
[25-Jul-2025 03:53:32 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 717
[25-Jul-2025 03:53:32 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-includes/canonical.php on line 717
[25-Jul-2025 03:53:32 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 718
[25-Jul-2025 03:53:32 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-includes/canonical.php on line 718
[25-Jul-2025 03:53:32 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 728
[25-Jul-2025 03:53:32 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 731
[25-Jul-2025 03:53:32 UTC] PHP Warning:  Undefined array key "scheme" in /wp-includes/canonical.php on line 752
[25-Jul-2025 03:53:33 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-includes/link-template.php on line 4830
[25-Jul-2025 03:53:33 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /wp-config.php on line 174
[25-Jul-2025 03:53:33 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /wp-config.php on line 175
[25-Jul-2025 03:53:33 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 717
[25-Jul-2025 03:53:33 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-includes/canonical.php on line 717
[25-Jul-2025 03:53:33 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 718
[25-Jul-2025 03:53:33 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-includes/canonical.php on line 718
[25-Jul-2025 03:53:33 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 728
[25-Jul-2025 03:53:33 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 731
[25-Jul-2025 03:53:33 UTC] PHP Warning:  Undefined array key "scheme" in /wp-includes/canonical.php on line 752
[25-Jul-2025 03:53:33 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 717
[25-Jul-2025 03:53:33 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-includes/canonical.php on line 717
[25-Jul-2025 03:53:33 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 718
[25-Jul-2025 03:53:33 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-includes/canonical.php on line 718
[25-Jul-2025 03:53:33 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 728
[25-Jul-2025 03:53:33 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 731
[25-Jul-2025 03:53:33 UTC] PHP Warning:  Undefined array key "scheme" in /wp-includes/canonical.php on line 752
[25-Jul-2025 03:53:33 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-includes/link-template.php on line 4830
See also: All tests for this plugin, How to Hide NutsForPress Restricted Contents Admin Menus and Meta Boxes