Restrict Content 2.2.4

Does Restrict Content work with WordPress 5.7.2 and PHP 7.4.8? 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: 17.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 version5.7.2
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 10,000+
WordPress.org page https://wordpress.org/plugins/restrict-content/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 5

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=restrict-content%2Frestrictcontent.php&plugin_status=all&paged=1&s&_wpnonce=7d7dc24ee1
Aspect after-activation
HTTP status 200
Load time 0.372 s
Memory usage 2.73 MiB
JS errors None
Resource errors None

Settings → Restrict Content

Page screenshot: Settings → Restrict Content
URL /wp-admin/options-general.php?page=restrict-content-settings
Aspect menu-item
HTTP status 200
Load time 0.173 s
Memory usage 2.7 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.233 s
Memory usage 2.67 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.883 s
Memory usage 5.06 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.814 s
Memory usage 5.04 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.280 s0.279 s-0.001 s2.82 MiB2.84 MiB+ 24.3 KiB
/wp-admin/edit.php0.200 s0.201 s+0.001 s2.86 MiB2.89 MiB+ 23.56 KiB
/wp-admin/post-new.php0.940 s1.047 s+0.107 s5.02 MiB5.06 MiB+ 38.5 KiB
/wp-admin/upload.php0.527 s0.296 s-0.231 s2.7 MiB2.72 MiB+ 22.43 KiB
/wp-admin/options-writing.php0.267 s0.143 s-0.124 s2.71 MiB2.7 MiB- 9.59 KiB
/wp-admin/media-new.php0.226 s0.258 s+0.032 s2.67 MiB2.7 MiB+ 22.6 KiB
/wp-admin/edit-tags.php?taxonomy=category0.196 s0.259 s+0.063 s2.77 MiB2.79 MiB+ 23.51 KiB
/wp-admin/post-new.php?post_type=page1.276 s0.734 s-0.542 s5.01 MiB5.04 MiB+ 34.09 KiB
/wp-admin/options-discussion.php0.330 s0.293 s-0.037 s2.68 MiB2.7 MiB+ 22.91 KiB
/wp-admin/edit-comments.php0.236 s0.227 s-0.009 s2.78 MiB2.8 MiB+ 22.41 KiB
/0.290 s0.236 s-0.054 s2.71 MiB2.67 MiB- 37.41 KiB
Average 0.433 s0.361 s-0.072 s3.16 MiB3.17 MiB+ 17.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
PO File
CSS
Language % Lines of code Comment lines Files
PHP69.7%1,06140112
PO File15.1%230861
CSS10.4%15883
JavaScript4.7%7202
SVG0.1%202
Total 1,523 495 20

PHP Code Analysis | More results »

Lines of code 1,102
Total complexity 228
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function rc_settings_page()
Classes 0
Methods 0
Functions 46

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 2

Meta Boxes

{
    "post": {
        "rcMetaBox": {
            "title": "Restrict this content",
            "context": "normal"
        }
    },
    "page": {
        "rcMetaBox": {
            "title": "Restrict this content",
            "context": "normal"
        }
    }
}

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide Restrict Content Admin Menus and Meta Boxes