Restrict Content 3.1.3

Does Restrict Content work with WordPress 6.0.1 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
1Database errors
1JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 929.4 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.023 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.0.1
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 21

‹ Test site — WordPress

Page screenshot: ‹ Test site — WordPress
URL /wp-admin/admin.php?page=restrict-content-welcome
Requested URL /wp-admin/plugins.php?action=activate&plugin=restrict-content%2Frestrictcontent.php&plugin_status=all&paged=1&s&_wpnonce=2dfcbbff7e
Aspect after-activation
HTTP status 200
Load time 1.397 s
Memory usage 4.62 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of undefined (reading 'hasAttribute')\n    at determineDelay (/wp-content/plugins/restrict-content/legacy/includes/assets/js/rc-admin.js?ver=3.5.21:230:36)\n    at /wp-content/plugins/restrict-content/legacy/includes/assets/js/rc-admin.js?ver=3.5.21:12:21\n    at HTMLDocument.<anonymous> (/wp-content/plugins/restrict-content/legacy/includes/assets/js/rc-admin.js?ver=3.5.21:262:6)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.0.1:2:30038)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.0.1:2:30340)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Posts → Restrict Access

Page screenshot: Posts → Restrict Access
URL /wp-admin/edit.php?page=rcp-restrict-post-type
Aspect menu-item
HTTP status 200
Load time 0.306 s
Memory usage 4.65 MiB
JS errors None
Resource errors None

Pages → Restrict Access

Page screenshot: Pages → Restrict Access
URL /wp-admin/edit.php?post_type=page&page=rcp-restrict-post-type-page
Aspect menu-item
HTTP status 200
Load time 0.190 s
Memory usage 4.58 MiB
JS errors None
Resource errors None

Restrict

Page screenshot: Restrict
URL /wp-admin/admin.php?page=rcp-members
Aspect menu-item
HTTP status 200
Load time 0.223 s
Memory usage 4.77 MiB
JS errors None
Resource errors None

Restrict → Customers

Page screenshot: Restrict → Customers
URL /wp-admin/admin.php?page=rcp-customers
Aspect menu-item
HTTP status 200
Load time 0.258 s
Memory usage 4.66 MiB
JS errors None
Resource errors None

Restrict → Membership Levels

Page screenshot: Restrict → Membership Levels
URL /wp-admin/admin.php?page=rcp-member-levels
Aspect menu-item
HTTP status 200
Load time 0.209 s
Memory usage 4.74 MiB
JS errors None
Resource errors None

Restrict → Payments

Page screenshot: Restrict → Payments
URL /wp-admin/admin.php?page=rcp-payments
Aspect menu-item
HTTP status 200
Load time 0.339 s
Memory usage 4.79 MiB
JS errors None
Resource errors None

Restrict → Settings

Page screenshot: Restrict → Settings
URL /wp-admin/admin.php?page=rcp-settings
Aspect menu-item
HTTP status 200
Load time 0.984 s
Memory usage 4.7 MiB
JS errors None
Resource errors None

Restrict → Settings → Payments

Page screenshot: Restrict → Settings → Payments
URL /wp-admin/admin.php?page=rcp-settings
Aspect menu-item-tab
HTTP status 200
Load time 0.659 s
Memory usage 4.7 MiB
JS errors None
Resource errors None

Restrict → Settings → Emails

Page screenshot: Restrict → Settings → Emails
URL /wp-admin/admin.php?page=rcp-settings
Aspect menu-item-tab
HTTP status 200
Load time 0.622 s
Memory usage 4.7 MiB
JS errors None
Resource errors None

Restrict → Settings → Invoices

Page screenshot: Restrict → Settings → Invoices
URL /wp-admin/admin.php?page=rcp-settings
Aspect menu-item-tab
HTTP status 200
Load time 0.821 s
Memory usage 4.7 MiB
JS errors None
Resource errors None

Restrict → Settings → Misc

Page screenshot: Restrict → Settings → Misc
URL /wp-admin/admin.php?page=rcp-settings
Aspect menu-item-tab
HTTP status 200
Load time 0.645 s
Memory usage 4.7 MiB
JS errors None
Resource errors None

Restrict → Tools

Page screenshot: Restrict → Tools
URL /wp-admin/admin.php?page=rcp-tools
Aspect menu-item
HTTP status 200
Load time 0.350 s
Memory usage 5.08 MiB
JS errors None
Resource errors None

Restrict → Tools → Debugging

Page screenshot: Restrict → Tools → Debugging
URL /wp-admin/admin.php?page=rcp-tools&tab=debug
Aspect menu-item-tab
HTTP status 200
Load time 0.185 s
Memory usage 4.58 MiB
JS errors None
Resource errors None

Restrict → Tools → Import

Page screenshot: Restrict → Tools → Import
URL /wp-admin/admin.php?page=rcp-tools&tab=import
Aspect menu-item-tab
HTTP status 200
Load time 0.191 s
Memory usage 4.59 MiB
JS errors None
Resource errors None

Restrict → Tools → Export

Page screenshot: Restrict → Tools → Export
URL /wp-admin/admin.php?page=rcp-tools&tab=export
Aspect menu-item-tab
HTTP status 200
Load time 0.199 s
Memory usage 4.59 MiB
JS errors None
Resource errors None

Restrict → Why go Pro

Page screenshot: Restrict → Why go Pro
URL /wp-admin/admin.php?page=rcp-why-go-pro
Aspect menu-item
HTTP status 200
Load time 0.345 s
Memory usage 4.57 MiB
JS errors None
Resource errors None

Restrict → Help

Page screenshot: Restrict → Help
URL /wp-admin/admin.php?page=rcp-need-help
Aspect menu-item
HTTP status 200
Load time 0.281 s
Memory usage 4.57 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.279 s
Memory usage 4.31 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.741 s
Memory usage 6.48 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.741 s
Memory usage 6.47 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.340 s0.390 s+0.050 s3.72 MiB4.64 MiB+ 936.35 KiB
/wp-admin/edit.php0.198 s0.227 s+0.029 s3.75 MiB4.67 MiB+ 938.27 KiB
/wp-admin/post-new.php0.783 s1.189 s+0.406 s5.55 MiB6.48 MiB+ 957.48 KiB
/wp-admin/upload.php0.393 s0.522 s+0.129 s3.68 MiB4.6 MiB+ 934.24 KiB
/wp-admin/options-writing.php0.279 s0.166 s-0.113 s3.62 MiB4.57 MiB+ 978.15 KiB
/wp-admin/media-new.php0.365 s0.209 s-0.156 s3.66 MiB4.57 MiB+ 934.41 KiB
/wp-admin/edit-tags.php?taxonomy=category0.190 s0.212 s+0.022 s3.69 MiB4.61 MiB+ 940.97 KiB
/wp-admin/post-new.php?post_type=page0.707 s0.666 s-0.041 s5.54 MiB6.47 MiB+ 951.95 KiB
/wp-admin/options-discussion.php0.259 s0.248 s-0.011 s3.6 MiB4.57 MiB+ 998.1 KiB
/wp-admin/edit-comments.php0.220 s0.224 s+0.004 s3.69 MiB4.61 MiB+ 934.93 KiB
/0.304 s0.239 s-0.065 s3.6 MiB4.3 MiB+ 718.5 KiB
Average 0.367 s0.390 s+0.023 s4.01 MiB4.92 MiB+ 929.4 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.

PO File
PHP
Language % Lines of code Comment lines Files
PO File62.1%82,88446,77417
PHP31.6%42,16131,746420
CSS2.6%3,50515011
JavaScript2.5%3,30595020
Markdown0.7%99204
SVG0.2%246033
JSON0.1%18704
Sass0.0%5402
XML0.0%3101
make0.0%2701
Total 133,392 79,620 513

PHP Code Analysis | More results »

Lines of code 38,187
Total complexity 8,362
Median class complexity 3.0
Median method complexity 1.0
Most complex class RCP_Membership
Most complex function rcp_tools_system_info_report()
Classes 280
Methods 1,536
Functions 696

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.

Database Tables 11

Options wp_options 16

Custom Post Types 1

ID Name
wp_logLogs

Meta Boxes

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

Capabilities 11

PHP Error Log 7 lines

[12-Aug-2022 18:30:44 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CONTAINS '[restrict]' OR 
                          post_content CONTAINS '[not_' at line 2 for query SELECT * FROM wp_posts WHERE 
                          post_content CONTAINS '[restrict]' OR 
                          post_content CONTAINS '[not_logged_in]' OR
                          post_content CONTAINS '[login_form]' OR
                          post_content CONTAINS '[register_form]' OR
                          LIMIT 1 made by activate_plugin, plugin_sandbox_scrape, include_once('/plugins/restrict-content/restrictcontent.php'), RC_Requirements_Check->__construct, RC_Requirements_Check->load, RC_Requirements_Check->restrict_content_check_posts_for_shortcode
See also: All tests for this plugin, How to Hide Restrict Content Admin Menus and Meta Boxes