NutsForPress Restricted Contents 1.4

Does "NutsForPress Restricted Contents" work with WordPress 6.5.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: 22.03 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.5.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=9831a29be9
Aspect after-activation
HTTP status 200
Load time 0.507 s
Memory usage 3.41 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.166 s
Memory usage 3.38 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.161 s
Memory usage 3.53 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.218 s
Memory usage 3.38 MiB
JS errors None
Resource errors None

Add New Post ‹ Test site — WordPress

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

Add New Page ‹ Test site — WordPress

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

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.369 s0.343 s-0.026 s3.44 MiB3.46 MiB+ 25.35 KiB
/wp-admin/edit.php0.214 s0.195 s-0.019 s3.46 MiB3.49 MiB+ 31.9 KiB
/wp-admin/post-new.php0.916 s0.634 s-0.282 s5.59 MiB5.64 MiB+ 54.34 KiB
/wp-admin/upload.php0.586 s0.468 s-0.118 s3.38 MiB3.4 MiB+ 16.3 KiB
/wp-admin/options-writing.php0.229 s0.203 s-0.026 s3.37 MiB3.38 MiB+ 6.76 KiB
/wp-admin/media-new.php0.291 s0.267 s-0.024 s3.35 MiB3.38 MiB+ 26.74 KiB
/wp-admin/edit-tags.php?taxonomy=category0.199 s0.196 s-0.003 s3.37 MiB3.4 MiB+ 31.84 KiB
/wp-admin/post-new.php?post_type=page0.534 s0.582 s+0.048 s5.59 MiB5.64 MiB+ 49.93 KiB
/wp-admin/options-discussion.php0.348 s0.371 s+0.023 s3.36 MiB3.38 MiB+ 19.66 KiB
/wp-admin/edit-comments.php0.258 s0.255 s-0.003 s3.39 MiB3.41 MiB+ 14.2 KiB
/0.308 s0.201 s-0.107 s3.42 MiB3.38 MiB- 34.71 KiB
Average 0.387 s0.338 s-0.049 s3.79 MiB3.81 MiB+ 22.03 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

The log file is empty.

See also: All tests for this plugin, How to Hide NutsForPress Restricted Contents Admin Menus and Meta Boxes