NutsForPress Restricted Contents 1.4

Does "NutsForPress Restricted Contents" work with WordPress 6.7.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: 24.57 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.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=ba0385149e
Aspect after-activation
HTTP status 200
Load time 0.271 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.135 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.134 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.155 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.570 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.532 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.279 s0.251 s-0.028 s3.48 MiB3.51 MiB+ 30.91 KiB
/wp-admin/edit.php0.162 s0.168 s+0.006 s3.54 MiB3.58 MiB+ 31.6 KiB
/wp-admin/post-new.php0.675 s0.553 s-0.122 s5.93 MiB5.98 MiB+ 54.84 KiB
/wp-admin/upload.php0.496 s0.401 s-0.095 s3.5 MiB3.52 MiB+ 20.73 KiB
/wp-admin/options-writing.php0.179 s0.178 s-0.001 s3.47 MiB3.5 MiB+ 24.1 KiB
/wp-admin/media-new.php0.227 s0.207 s-0.020 s3.46 MiB3.5 MiB+ 32.3 KiB
/wp-admin/edit-tags.php?taxonomy=category0.161 s0.165 s+0.004 s3.48 MiB3.51 MiB+ 37.78 KiB
/wp-admin/post-new.php?post_type=page0.518 s0.522 s+0.004 s5.92 MiB5.97 MiB+ 50.05 KiB
/wp-admin/options-discussion.php0.230 s0.245 s+0.015 s3.48 MiB3.5 MiB+ 21.23 KiB
/wp-admin/edit-comments.php0.404 s0.391 s-0.013 s3.5 MiB3.52 MiB+ 20.1 KiB
/0.260 s0.202 s-0.058 s3.48 MiB3.43 MiB- 53.39 KiB
Average 0.326 s0.298 s-0.028 s3.93 MiB3.95 MiB+ 24.57 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