Benchmarks
Plugin footprint 83% 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 gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.53ms] Passed 4 tests
A check of server-side resources used by Password Protect Pages
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.35 ▼7.20 |
Dashboard /wp-admin | 3.37 ▲0.06 | 46.24 ▼12.08 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.25 ▲1.28 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 95.42 ▼11.80 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.91 ▲0.96 |
Password Protect Pages /wp-admin/options-general.php?page=password_protect_pages | 3.23 | 32.40 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Password Protect Pages
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▲0.07 | 1.74 ▼0.15 | 45.31 ▼2.31 |
Dashboard /wp-admin | 2,210 ▲19 | 4.99 ▲0.12 | 111.25 ▲7.74 | 44.80 ▲4.27 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.17 | 40.02 ▲1.04 | 35.38 ▲2.46 |
Add New Post /wp-admin/post-new.php | 1,528 ▲14 | 23.31 ▲5.76 | 665.74 ▼12.65 | 57.87 ▼2.37 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.42 ▲0.16 | 95.31 ▼11.89 | 45.95 ▲0.53 |
Password Protect Pages /wp-admin/options-general.php?page=password_protect_pages | 800 | 2.07 | 26.40 | 25.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=password_protect_pages
- > Notice in wp-content/plugins/password-protect-pages/admin/admin-options.php+107
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/password-protect-pages/public/partials/password-protect-pages-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/password-protect-pages/admin/admin-options.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== password-protect-pages ===
)
password-protect-pages/password-protect-pages.php 92% from 13 tests
The principal PHP file in "Password Protect Pages" v. 1.3.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin273 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 190 | 455 | 267 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 2 | 10.53% |
▷ Public methods | 14 | 73.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 26.32% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 34.56KB | 9.32KB | ▼ 73.04% |
screenshot-2.png | 34.07KB | 8.95KB | ▼ 73.72% |