Members Only Post Type 1.7.0

Does Members Only Post Type work with WordPress 6.8.1 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: 7.92 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.8.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 20+
WordPress.org page https://wordpress.org/plugins/members-only-post-type/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=members-only-post-type%2Fprotected-post-type.php&plugin_status=all&paged=1&s&_wpnonce=2c6c3489b2
Aspect after-activation
HTTP status 200
Load time 0.477 s
Memory usage 3.53 MiB
JS errors None
Resource errors None

Protected Posts

Page screenshot: Protected Posts
URL /wp-admin/admin.php?page=ppt-protected-post-type
Aspect menu-item
HTTP status 200
Load time 0.187 s
Memory usage 3.56 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.251 s
Memory usage 3.44 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.346 s0.324 s-0.022 s3.51 MiB3.52 MiB+ 13.59 KiB
/wp-admin/edit.php0.207 s0.206 s-0.001 s3.57 MiB3.58 MiB+ 13.59 KiB
/wp-admin/post-new.php0.816 s0.657 s-0.159 s6.06 MiB6.08 MiB+ 17.95 KiB
/wp-admin/upload.php0.591 s0.387 s-0.204 s3.52 MiB3.52 MiB- 3.82 KiB
/wp-admin/options-writing.php0.206 s0.189 s-0.017 s3.5 MiB3.5 MiB+ 176 bytes
/wp-admin/media-new.php0.276 s0.386 s+0.110 s3.49 MiB3.5 MiB+ 8.37 KiB
/wp-admin/edit-tags.php?taxonomy=category0.235 s0.270 s+0.035 s3.5 MiB3.52 MiB+ 19.04 KiB
/wp-admin/post-new.php?post_type=page0.638 s0.628 s-0.010 s6.05 MiB6.06 MiB+ 13.48 KiB
/wp-admin/options-discussion.php0.323 s0.293 s-0.030 s3.5 MiB3.5 MiB- 3.33 KiB
/wp-admin/edit-comments.php0.211 s0.206 s-0.005 s3.52 MiB3.52 MiB- 3.83 KiB
/0.313 s0.198 s-0.115 s3.43 MiB3.45 MiB+ 11.91 KiB
Average 0.378 s0.340 s-0.038 s3.97 MiB3.98 MiB+ 7.92 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.

PHP
Markdown
CSS
Language % Lines of code Comment lines Files
PHP56.5%63655910
Markdown31.1%35002
CSS12.2%13722
HTML0.3%303
Total 1,126 561 17

PHP Code Analysis | More results »

Lines of code 514
Total complexity 73
Median class complexity 16.5
Median method complexity 1.0
Most complex class MembersOnlyPostType\WPAdminPage\AdminPage
Most complex function MembersOnlyPostType\WPAdminPage\AdminPage::tab_menu()
Classes 4
Methods 49
Functions 0

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.

Options wp_options 1

PHP Error Log 2 lines

[07-May-2025 08:00:37 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/post-template.php on line 257
[07-May-2025 08:00:45 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/post-template.php on line 257
See also: All tests for this plugin, How to Hide the "Protected Posts" Admin Menu