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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.60MB] [CPU: ▲3.34ms] Passed 4 tests
A check of server-side resources used by Password Protected - Ultimate Plugin to Password Protect Your WordPress Content with Ease
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.62 | 43.71 ▲6.65 |
Dashboard /wp-admin | 3.98 ▲0.64 | 53.48 ▼3.32 |
Posts /wp-admin/edit.php | 4.04 ▲0.68 | 49.04 ▲5.00 |
Add New Post /wp-admin/post-new.php | 6.50 ▲0.62 | 95.21 ▲5.02 |
Media Library /wp-admin/upload.php | 3.75 ▲0.52 | 40.56 ▲7.86 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.10 | 38.04 |
Password Protected /wp-admin/options-general.php?page=password-protected | 3.98 | 42.83 |
Server storage [IO: ▲6.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 276 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
fs_active_plugins |
password_protected_version |
fs_debug_mode |
fs_accounts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Password Protected - Ultimate Plugin to Password Protect Your WordPress Content with Ease
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲61 | 14.72 ▲0.39 | 1.64 ▼0.33 | 33.50 ▼6.95 |
Dashboard /wp-admin | 2,244 ▲64 | 5.54 ▼0.13 | 96.51 ▼0.79 | 44.68 ▲2.39 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 2.03 ▲0.04 | 40.79 ▲0.16 | 36.31 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 22.71 ▼0.68 | 591.97 ▼10.86 | 50.00 ▼19.10 |
Media Library /wp-admin/upload.php | 1,452 ▲52 | 4.24 ▲0.07 | 97.99 ▲2.24 | 44.77 ▲2.62 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,101 | 1.67 | 26.51 | 29.55 |
Password Protected /wp-admin/options-general.php?page=password-protected | 1,017 | 1.72 | 26.55 | 56.78 |
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
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/password-protected/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- password_protected_version
- fs_accounts
- fs_debug_mode
- can_compress_scripts
- fs_active_plugins
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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 trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/password-protected/password-protected.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function nocache_headers() in wp-content/plugins/password-protected/theme/password-protected-login.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please describe screenshot #5 in password-protected/assets to your readme.txt
password-protected/password-protected.php 92% from 13 tests
The main file in "Password Protected - Ultimate Plugin to Password Protect Your WordPress Content with Ease" v. 2.6.5.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 212 characters long)
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin40,774 lines of code in 196 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 125 | 8,516 | 17,935 | 34,641 |
PO File | 48 | 1,651 | 1,865 | 5,242 |
Markdown | 3 | 215 | 0 | 555 |
JavaScript | 4 | 43 | 63 | 233 |
CSS | 15 | 2 | 0 | 101 |
Bourne Shell | 1 | 1 | 2 | 2 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 88.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 1,371 | |
▷ Static methods | 207 | 15.10% |
▷ Public methods | 970 | 70.75% |
▷ Protected methods | 17 | 1.24% |
▷ Private methods | 384 | 28.01% |
Functions | 106 | |
▷ Named functions | 106 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.29MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/icon-128x128.png | 1.30KB | 0.43KB | ▼ 66.49% |
assets/icon-256x256.png | 2.68KB | 0.96KB | ▼ 64.29% |
freemius/assets/img/password-protected-free.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |