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
Install script ran successfully
Server metrics [RAM: ▲5.87MB] [CPU: ▲24.95ms] 75% from 4 tests
An overview of server-side resources used by Passster - Password Protect Pages and Content
Please have a look at the following items
- Extra RAM: The extra memory usage must be under 5MB (currently 5.87MB on /wp-admin/admin.php?page=passster-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.70 ▲6.23 | 62.56 ▲26.18 |
Dashboard /wp-admin | 9.72 ▲6.41 | 78.28 ▲29.31 |
Posts /wp-admin/edit.php | 9.72 ▲6.36 | 83.25 ▲33.85 |
Add New Post /wp-admin/post-new.php | 10.38 ▲4.48 | 109.85 ▲10.45 |
Media Library /wp-admin/upload.php | 9.72 ▲6.49 | 73.11 ▲40.51 |
Protected Areas /wp-admin/edit.php?post_type=protected_areas | 9.72 | 60.14 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.72 | 57.87 |
Settings /wp-admin/admin.php?page=passster-settings | 9.72 | 59.86 |
Server storage [IO: ▲3.57MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 213 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
passster |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
fs_debug_mode |
fs_active_plugins |
passster_secure_key |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Passster - Password Protect Pages and Content
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲195 | 13.79 ▼0.42 | 9.21 ▲7.58 | 27.97 ▼22.11 |
Dashboard /wp-admin | 2,265 ▲91 | 5.63 ▲0.01 | 91.41 ▼3.55 | 44.23 ▲1.11 |
Posts /wp-admin/edit.php | 2,183 ▲83 | 2.13 ▲0.16 | 41.42 ▲6.18 | 39.85 ▲5.48 |
Add New Post /wp-admin/post-new.php | 6,498 ▲4,972 | 30.12 ▲6.46 | 1,037.53 ▲339.69 | 43.55 ▼11.49 |
Media Library /wp-admin/upload.php | 1,473 ▲70 | 4.22 ▼0.05 | 102.96 ▼0.74 | 44.68 ▼1.18 |
Protected Areas /wp-admin/edit.php?post_type=protected_areas | 1,145 | 1.98 | 40.04 | 34.60 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,112 | 1.67 | 26.43 | 30.43 |
Settings /wp-admin/admin.php?page=passster-settings | 1,239 | 8.54 | 211.40 | 34.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/content-protector/inc/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_theysaidso_widget
- db_upgraded
- fs_active_plugins
- widget_recent-posts
- widget_recent-comments
- passster_secure_key
- fs_debug_mode
- fs_accounts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/content-protector/inc/templates/password-form.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/content-protector/content-protector.php:16
- > 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 issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #4, #5 in content-protector/assets to your readme.txt
content-protector/content-protector.php Passed 13 tests
"Passster - Password Protect Pages and Content" version 4.2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
106 characters long description:
A simple plugin to password-protect your complete website, some pages/posts or just parts of your content.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected38,450 lines of code in 167 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 134 | 8,305 | 17,774 | 35,092 |
JSON | 3 | 0 | 0 | 1,515 |
JavaScript | 8 | 93 | 90 | 887 |
PO File | 1 | 422 | 827 | 692 |
CSS | 17 | 20 | 0 | 118 |
XML | 1 | 0 | 0 | 103 |
SVG | 2 | 0 | 0 | 40 |
Markdown | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 74.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 2 | 3.23% |
▷ Concrete classes | 60 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 1,343 | |
▷ Static methods | 216 | 16.08% |
▷ Public methods | 943 | 70.22% |
▷ Protected methods | 17 | 1.27% |
▷ Private methods | 383 | 28.52% |
Functions | 118 | |
▷ Named functions | 104 | 88.14% |
▷ Anonymous functions | 14 | 11.86% |
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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
inc/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |