Restrict Content 3.2.5

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

Summary

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

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

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

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

‹ 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=8241bb8c1e
Aspect after-activation
HTTP status 200
Load time 0.830 s
Memory usage 3.74 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.35:230:36)\n    at /wp-content/plugins/restrict-content/legacy/includes/assets/js/rc-admin.js?ver=3.5.35:12:21\n    at HTMLDocument.<anonymous> (/wp-content/plugins/restrict-content/legacy/includes/assets/js/rc-admin.js?ver=3.5.35:262:6)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.2.2:2:30158)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.2.2:2:30460)",
        "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.185 s
Memory usage 3.74 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.167 s
Memory usage 3.67 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.199 s
Memory usage 3.85 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.249 s
Memory usage 3.75 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.207 s
Memory usage 3.83 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.238 s
Memory usage 3.86 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.889 s
Memory usage 3.81 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.835 s
Memory usage 3.81 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.646 s
Memory usage 3.81 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.686 s
Memory usage 3.81 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.624 s
Memory usage 3.81 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.16 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 3.67 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.194 s
Memory usage 3.69 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.204 s
Memory usage 3.68 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.252 s
Memory usage 3.67 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.388 s
Memory usage 3.67 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.311 s
Memory usage 3.66 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.255 s
Memory usage 3.55 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.727 s
Memory usage 5.66 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.675 s
Memory usage 5.64 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.276 s0.347 s+0.071 s3.07 MiB3.8 MiB+ 741.42 KiB
/wp-admin/edit.php0.176 s0.200 s+0.024 s3.1 MiB3.85 MiB+ 770.78 KiB
/wp-admin/post-new.php0.719 s1.002 s+0.283 s5.02 MiB5.67 MiB+ 663.7 KiB
/wp-admin/upload.php0.673 s0.549 s-0.124 s3.02 MiB3.68 MiB+ 682.74 KiB
/wp-admin/options-writing.php0.150 s0.175 s+0.025 s3.01 MiB3.67 MiB+ 671.01 KiB
/wp-admin/media-new.php0.250 s0.209 s-0.041 s2.99 MiB3.67 MiB+ 695.19 KiB
/wp-admin/edit-tags.php?taxonomy=category0.158 s0.284 s+0.126 s3.01 MiB3.71 MiB+ 724.77 KiB
/wp-admin/post-new.php?post_type=page0.596 s0.765 s+0.169 s5.01 MiB5.64 MiB+ 644.75 KiB
/wp-admin/options-discussion.php0.211 s0.265 s+0.054 s3 MiB3.67 MiB+ 684.74 KiB
/wp-admin/edit-comments.php0.178 s0.232 s+0.054 s3.03 MiB3.71 MiB+ 700.84 KiB
/0.324 s0.219 s-0.105 s2.97 MiB3.55 MiB+ 595.9 KiB
Average 0.337 s0.386 s+0.049 s3.38 MiB4.06 MiB+ 688.71 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 File48.6%82,88446,77417
PHP45.7%78,03052,100603
CSS2.2%3,80213126
JavaScript2.1%3,5311,00123
Markdown1.0%1,74405
SVG0.2%293036
JSON0.1%24304
Sass0.0%5402
XML0.0%3101
make0.0%2901
Total 170,641 100,006 718

PHP Code Analysis | More results »

Lines of code 64,692
Total complexity 14,643
Median class complexity 4.0
Median method complexity 2.0
Most complex class Freemius
Most complex function rcp_tools_system_info_report()
Classes 388
Methods 3,010
Functions 803

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 19

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 8 lines

[07-Aug-2023 20:21:31 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
[07-Aug-2023 20:21:31 UTC] PHP Deprecated:  strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-admin/admin-header.php on line 36
See also: All tests for this plugin, How to Hide Restrict Content Admin Menus and Meta Boxes