NutsForPress Restricted Contents 1.4

Does "NutsForPress Restricted Contents" work with WordPress 6.7.1 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: 30.97 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.7.1
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=8bdcb33b86
Aspect after-activation
HTTP status 200
Load time 0.370 s
Memory usage 3.53 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.162 s
Memory usage 3.5 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.154 s
Memory usage 3.58 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.173 s
Memory usage 3.43 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.678 s
Memory usage 5.98 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.642 s
Memory usage 5.97 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.379 s0.287 s-0.092 s3.48 MiB3.51 MiB+ 30.78 KiB
/wp-admin/edit.php0.213 s0.208 s-0.005 s3.54 MiB3.57 MiB+ 31.48 KiB
/wp-admin/post-new.php0.791 s0.672 s-0.119 s5.93 MiB5.98 MiB+ 54.73 KiB
/wp-admin/upload.php0.610 s0.575 s-0.035 s3.5 MiB3.52 MiB+ 20.61 KiB
/wp-admin/options-writing.php0.234 s0.227 s-0.007 s3.47 MiB3.5 MiB+ 23.98 KiB
/wp-admin/media-new.php0.369 s0.222 s-0.147 s3.46 MiB3.5 MiB+ 32.17 KiB
/wp-admin/edit-tags.php?taxonomy=category0.206 s0.218 s+0.012 s3.48 MiB3.51 MiB+ 37.66 KiB
/wp-admin/post-new.php?post_type=page0.589 s0.624 s+0.035 s5.92 MiB5.97 MiB+ 49.93 KiB
/wp-admin/options-discussion.php0.486 s0.267 s-0.219 s3.47 MiB3.5 MiB+ 21.1 KiB
/wp-admin/edit-comments.php0.253 s0.477 s+0.224 s3.5 MiB3.51 MiB+ 19.98 KiB
/0.349 s0.211 s-0.138 s3.41 MiB3.43 MiB+ 18.23 KiB
Average 0.407 s0.363 s-0.045 s3.92 MiB3.95 MiB+ 30.97 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