Restrict Content 3.0.3

Does Restrict Content work with WordPress 5.8.3 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: 912.6 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

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

Environment
WordPress version5.8.3
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=28a5b562a6
Aspect after-activation
HTTP status 200
Load time 1.436 s
Memory usage 3.96 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.12:230:36)\n    at /wp-content/plugins/restrict-content/legacy/includes/assets/js/rc-admin.js?ver=3.5.12:12:21\n    at HTMLDocument.<anonymous> (/wp-content/plugins/restrict-content/legacy/includes/assets/js/rc-admin.js?ver=3.5.12:262:6)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.3:2:30038)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.3: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.230 s
Memory usage 3.98 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.166 s
Memory usage 3.91 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.191 s
Memory usage 4.1 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.239 s
Memory usage 3.99 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.199 s
Memory usage 4.07 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.303 s
Memory usage 4.12 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.973 s
Memory usage 4.03 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.767 s
Memory usage 4.03 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.700 s
Memory usage 4.03 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.683 s
Memory usage 4.03 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.675 s
Memory usage 4.03 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.340 s
Memory usage 4.41 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.172 s
Memory usage 3.91 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.180 s
Memory usage 3.92 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.189 s
Memory usage 3.92 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.307 s
Memory usage 3.9 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.233 s
Memory usage 3.9 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.259 s
Memory usage 3.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 1.052 s
Memory usage 6.18 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.968 s
Memory usage 6.17 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.343 s0.360 s+0.017 s3.08 MiB4.04 MiB+ 979.1 KiB
/wp-admin/edit.php0.178 s0.208 s+0.030 s3.11 MiB4.07 MiB+ 984.74 KiB
/wp-admin/post-new.php0.999 s1.416 s+0.417 s5.27 MiB6.18 MiB+ 936.84 KiB
/wp-admin/upload.php0.421 s0.563 s+0.142 s3.03 MiB3.92 MiB+ 914.17 KiB
/wp-admin/options-writing.php0.154 s0.162 s+0.008 s3.02 MiB3.9 MiB+ 897.52 KiB
/wp-admin/media-new.php0.424 s0.226 s-0.198 s3.01 MiB3.9 MiB+ 914.97 KiB
/wp-admin/edit-tags.php?taxonomy=category0.190 s0.213 s+0.023 s3.04 MiB3.94 MiB+ 925.11 KiB
/wp-admin/post-new.php?post_type=page0.889 s0.930 s+0.041 s5.26 MiB6.17 MiB+ 934.05 KiB
/wp-admin/options-discussion.php0.228 s0.286 s+0.058 s3 MiB3.9 MiB+ 914.66 KiB
/wp-admin/edit-comments.php0.214 s0.210 s-0.004 s3.04 MiB3.93 MiB+ 913.37 KiB
/0.273 s0.215 s-0.058 s2.96 MiB3.66 MiB+ 724.09 KiB
Average 0.392 s0.435 s+0.043 s3.44 MiB4.33 MiB+ 912.6 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.4%82,88446,77417
PHP31.5%41,80431,600417
CSS2.6%3,42514611
JavaScript2.4%3,23992920
Markdown0.7%99505
SVG0.2%239026
JSON0.1%18704
Sass0.0%5402
XML0.0%3101
make0.0%2701
Total 132,885 79,449 504

PHP Code Analysis | More results »

Lines of code 37,821
Total complexity 8,283
Median class complexity 3.0
Median method complexity 1.0
Most complex class RCP_Membership
Most complex function rcp_tools_system_info_report()
Classes 277
Methods 1,528
Functions 691

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

[07-Jan-2022 10:14:14 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