Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.09MB] [CPU: ▲3.12ms] Passed 4 tests
A check of server-side resources used by WP Private Content Plus
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.54 ▲1.08 | 48.15 ▲11.55 |
Dashboard /wp-admin | 4.41 ▲1.10 | 54.75 ▲9.59 |
Posts /wp-admin/edit.php | 4.46 ▲1.10 | 51.70 ▼0.66 |
Add New Post /wp-admin/post-new.php | 7.06 ▲1.17 | 91.36 ▼7.18 |
Media Library /wp-admin/upload.php | 4.33 ▲1.10 | 46.65 ▲10.71 |
Site Lockdown /wp-admin/admin.php?page=wppcp-site-lockdown-settings-page | 4.33 | 39.26 |
Addons /wp-admin/admin.php?page=wppcp-pro-addons | 4.24 | 38.04 |
Add New /wp-admin/post-new.php?post_type=wppcp_group | 4.50 | 53.09 |
Search Settings /wp-admin/admin.php?page=wppcp-search-settings-page | 4.32 | 39.26 |
PRO Version /wp-admin/admin.php?page=wppcp-pro | 4.24 | 36.30 |
User Profiles Made Easy /wp-admin/admin.php?page=wppcp-upme-settings | 4.32 | 36.52 |
Getting Started /wp-admin/admin.php?page=wppcp-help | 4.28 | 38.23 |
Security Settings /wp-admin/admin.php?page=wppcp-security-settings-page | 4.32 | 37.81 |
Welcome to WP Private Content Plus /wp-admin/index.php?page=wppcp-welcome-screen | 4.29 | 37.02 |
Private User Page /wp-admin/admin.php?page=wppcp-private-user-page | 4.33 | 65.75 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 99 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_wppcp_group_users |
wp_wppcp_private_page |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
wppcp_plugin_data |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Private Content Plus
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲183 | 13.20 ▼1.16 | 2.20 ▲0.57 | 42.30 ▼1.57 |
Dashboard /wp-admin | 2,302 ▲117 | 5.04 ▼0.83 | 116.79 ▲16.45 | 43.17 ▲3.31 |
Posts /wp-admin/edit.php | 2,192 ▲103 | 2.48 ▲0.47 | 35.25 ▼5.08 | 32.17 ▼4.74 |
Add New Post /wp-admin/post-new.php | 6,674 ▲5,132 | 25.43 ▲7.25 | 1,033.26 ▲427.15 | 64.28 ▲8.55 |
Media Library /wp-admin/upload.php | 1,487 ▲99 | 4.20 ▼0.03 | 108.09 ▲6.61 | 47.11 ▲1.03 |
Site Lockdown /wp-admin/admin.php?page=wppcp-site-lockdown-settings-page | 1,118 | 2.57 | 44.68 | 25.75 |
Addons /wp-admin/admin.php?page=wppcp-pro-addons | 1,001 | 1.98 | 36.34 | 30.60 |
Add New /wp-admin/post-new.php?post_type=wppcp_group | 2,383 | 8.40 | 182.27 | 67.14 |
Search Settings /wp-admin/admin.php?page=wppcp-search-settings-page | 1,096 | 2.53 | 37.61 | 31.80 |
PRO Version /wp-admin/admin.php?page=wppcp-pro | 945 | 1.84 | 28.33 | 33.43 |
User Profiles Made Easy /wp-admin/admin.php?page=wppcp-upme-settings | 871 | 2.09 | 28.97 | 23.38 |
Getting Started /wp-admin/admin.php?page=wppcp-help | 1,011 | 1.88 | 28.11 | 51.46 |
Security Settings /wp-admin/admin.php?page=wppcp-security-settings-page | 992 | 2.12 | 27.87 | 24.31 |
Welcome to WP Private Content Plus /wp-admin/index.php?page=wppcp-welcome-screen | 1,803 | 9.36 | 263.74 | 110.73 |
Private User Page /wp-admin/admin.php?page=wppcp-private-user-page | 1,043 | 2.32 | 35.91 | 33.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_wppcp_private_page
- wp_wppcp_group_users
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- wppcp_plugin_data
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wppcp-security-settings-page
- > Notice in wp-content/plugins/wp-private-content-plus/admin/templates/menu-page-container.php+6
Undefined variable: display
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-private-content-plus/templates/social-locker/default-social-locker.php
- > /wp-content/plugins/wp-private-content-plus/templates/addons-feed.php
- 78× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-private-content-plus/admin/templates/security-ip-settings.php:11
- > PHP Fatal error
Uncaught Error: Call to a member function wppcp_user_roles() on null in wp-content/plugins/wp-private-content-plus/admin/templates/upme-search.php:4
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/wp-private-content-plus/templates/global-password-form.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/wp-private-content-plus/admin/templates/mailchimp-general-settings.php:1
- > PHP Notice
Trying to get property 'roles_capability' of non-object in wp-content/plugins/wp-private-content-plus/admin/templates/upme-search.php on line 4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-private-content-plus/templates/plugins-feed.php on line 5
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/wp-private-content-plus/admin/templates/social-locker-general.php on line 3
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/wp-private-content-plus/admin/templates/search-restrictions.php on line 3
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/wp-private-content-plus/templates/woo-tabs-restriction-meta.php on line 3
- > PHP Notice
Trying to get property 'roles_capability' of non-object in wp-content/plugins/wp-private-content-plus/templates/post-page-restriction-meta.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (50 tag instead of maximum 10)
wp-private-content-plus/wp-private-content-plus.php Passed 13 tests
"WP Private Content Plus" version 3.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
Advanced private content restrictions for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected9,922 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 2,180 | 134 | 6,872 |
CSS | 5 | 196 | 21 | 1,078 |
PO File | 1 | 410 | 572 | 1,015 |
JavaScript | 7 | 154 | 143 | 957 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 54.86 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 269.00 |
Average method complexity | 6.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 87.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 197 | |
▷ Static methods | 1 | 0.51% |
▷ Public methods | 195 | 98.98% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.02% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
23 PNG files occupy 0.28MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/file.png | 1.19KB | 1.05KB | ▼ 12.36% |
images/edit.png | 0.70KB | 0.52KB | ▼ 25.00% |
images/docs/settings_1.png | 23.20KB | 12.11KB | ▼ 47.79% |
images/docs/widget.png | 12.14KB | 3.88KB | ▼ 68.02% |
images/icon-128x128.png | 16.25KB | 6.16KB | ▼ 62.11% |