Restrict Content 3.2.8

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

Summary

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

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

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

Environment
WordPress version6.4.3
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
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 22

rcp-members ‹ Test site — WordPress

Page screenshot: rcp-members ‹ 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=e3e9e9cd82
Aspect after-activation
HTTP status 200
Load time 0.858 s
Memory usage 4.12 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.39:230:36)\n    at /wp-content/plugins/restrict-content/legacy/includes/assets/js/rc-admin.js?ver=3.5.39:12:21\n    at HTMLDocument.<anonymous> (/wp-content/plugins/restrict-content/legacy/includes/assets/js/rc-admin.js?ver=3.5.39:262:6)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.4.3:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.4.3:2:27330)",
        "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.246 s
Memory usage 4.12 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.222 s
Memory usage 4.05 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.281 s
Memory usage 4.22 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.286 s
Memory usage 4.12 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.413 s
Memory usage 4.21 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.271 s
Memory usage 4.24 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.950 s
Memory usage 4.18 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.741 s
Memory usage 4.18 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.769 s
Memory usage 4.18 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.750 s
Memory usage 4.18 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.769 s
Memory usage 4.18 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.352 s
Memory usage 4.54 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.231 s
Memory usage 4.05 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.234 s
Memory usage 4.06 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.225 s
Memory usage 4.06 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.301 s
Memory usage 4.04 MiB
JS errors None
Resource errors None

Restrict → RCP Addons

Page screenshot: Restrict → RCP Addons
URL /wp-admin/admin.php?page=rcp-addons
Aspect menu-item
HTTP status 200
Load time 0.410 s
Memory usage 4.04 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.355 s
Memory usage 4.04 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.281 s
Memory usage 3.89 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.617 s
Memory usage 6.19 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.673 s
Memory usage 6.18 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.424 s0.445 s+0.021 s3.38 MiB4.2 MiB+ 838.63 KiB
/wp-admin/edit.php0.235 s0.233 s-0.002 s3.41 MiB4.23 MiB+ 840.85 KiB
/wp-admin/post-new.php0.961 s1.209 s+0.248 s5.46 MiB6.19 MiB+ 747.48 KiB
/wp-admin/upload.php0.596 s0.521 s-0.075 s3.33 MiB4.06 MiB+ 753.23 KiB
/wp-admin/options-writing.php0.250 s0.264 s+0.014 s3.32 MiB4.05 MiB+ 746.59 KiB
/wp-admin/media-new.php0.343 s0.249 s-0.094 s3.3 MiB4.04 MiB+ 766.2 KiB
/wp-admin/edit-tags.php?taxonomy=category0.218 s0.226 s+0.008 s3.31 MiB4.09 MiB+ 795.15 KiB
/wp-admin/post-new.php?post_type=page0.623 s0.869 s+0.246 s5.45 MiB6.18 MiB+ 747.14 KiB
/wp-admin/options-discussion.php0.420 s0.301 s-0.119 s3.3 MiB4.06 MiB+ 775.75 KiB
/wp-admin/edit-comments.php0.270 s0.265 s-0.005 s3.34 MiB4.09 MiB+ 771.84 KiB
/0.313 s0.336 s+0.023 s3.36 MiB3.89 MiB+ 544.79 KiB
Average 0.423 s0.447 s+0.024 s3.72 MiB4.46 MiB+ 757.06 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 File60.3%82,88446,77417
PHP33.0%45,32035,020486
CSS2.6%3,63413512
JavaScript2.4%3,34395321
Markdown1.1%1,53004
SVG0.2%293036
JSON0.2%24304
Sass0.0%5402
XML0.0%3101
make0.0%2901
Total 137,361 82,882 584

PHP Code Analysis | More results »

Lines of code 41,593
Total complexity 8,737
Median class complexity 3.0
Median method complexity 1.0
Most complex class RCP_Membership
Most complex function rcp_tools_system_info_report()
Classes 340
Methods 1,754
Functions 704

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 20

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

[31-Jan-2024 15:39:02 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CONTAINS '[restrict]' OR 
                          post_content CONTAINS '[n...' 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