Restrict Content 3.1.8

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

Summary

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

Memory usage: 756.41 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 version6.1.1
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 7

‹ 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=88a148f304
Aspect after-activation
HTTP status 200
Load time 1.383 s
Memory usage 3.84 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.24.1:230:36)\n    at /wp-content/plugins/restrict-content/legacy/includes/assets/js/rc-admin.js?ver=3.5.24.1:12:21\n    at HTMLDocument.<anonymous> (/wp-content/plugins/restrict-content/legacy/includes/assets/js/rc-admin.js?ver=3.5.24.1:262:6)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.1.1:2:30038)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.1.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.186 s
Memory usage 3.73 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.165 s
Memory usage 3.68 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.257 s
Memory usage 4.05 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.54 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.767 s
Memory usage 5.75 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.661 s
Memory usage 5.68 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.272 s0.285 s+0.013 s3.05 MiB3.81 MiB+ 782.84 KiB
/wp-admin/edit.php0.194 s0.202 s+0.008 s3.08 MiB3.84 MiB+ 785.06 KiB
/wp-admin/post-new.php0.765 s0.969 s+0.204 s4.97 MiB5.75 MiB+ 804.75 KiB
/wp-admin/upload.php0.671 s0.532 s-0.139 s2.99 MiB3.76 MiB+ 781.54 KiB
/wp-admin/options-writing.php0.170 s0.180 s+0.010 s2.99 MiB3.74 MiB+ 768.19 KiB
/wp-admin/media-new.php0.264 s0.254 s-0.010 s2.97 MiB3.71 MiB+ 763.85 KiB
/wp-admin/edit-tags.php?taxonomy=category0.172 s0.204 s+0.032 s2.98 MiB3.77 MiB+ 803.62 KiB
/wp-admin/post-new.php?post_type=page0.608 s0.675 s+0.067 s4.96 MiB5.68 MiB+ 735.52 KiB
/wp-admin/options-discussion.php0.211 s0.228 s+0.017 s2.98 MiB3.68 MiB+ 717.41 KiB
/wp-admin/edit-comments.php0.212 s0.216 s+0.004 s3 MiB3.76 MiB+ 780 KiB
/0.289 s0.229 s-0.060 s2.95 MiB3.53 MiB+ 597.77 KiB
Average 0.348 s0.361 s+0.013 s3.36 MiB4.09 MiB+ 756.41 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 File49.6%82,88446,77417
PHP44.7%74,60950,764592
CSS2.2%3,70915424
JavaScript2.1%3,51899822
Markdown1.0%1,74405
SVG0.1%248035
JSON0.1%23205
Sass0.0%5402
XML0.0%3101
make0.0%2901
Total 167,058 98,690 704

PHP Code Analysis | More results »

Lines of code 61,778
Total complexity 14,040
Median class complexity 4.0
Median method complexity 2.0
Most complex class Freemius\Freemius
Most complex function rcp_tools_system_info_report()
Classes 385
Methods 2,858
Functions 794

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

[24-Mar-2023 16:51:36 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
[24-Mar-2023 16:51:36 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:36 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:36 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:36 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:37 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:37 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:37 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:37 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:37 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
[24-Mar-2023 16:51:38 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:38 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:38 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:38 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:38 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:38 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:38 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:38 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:39 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:39 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:39 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:39 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:40 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:40 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:40 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:40 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:42 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:42 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:42 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:42 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:42 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:42 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:42 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:42 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:43 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:43 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:43 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:43 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:45 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:45 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:45 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:45 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:46 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:49 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:49 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:49 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:49 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:49 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:49 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:49 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:49 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:49 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:49 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:49 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:49 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:50 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:50 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:50 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:50 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:53 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:53 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:53 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:53 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:55 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:55 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
[24-Mar-2023 16:51:55 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7022
[24-Mar-2023 16:51:55 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2162
See also: All tests for this plugin, How to Hide Restrict Content Admin Menus and Meta Boxes