Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼172.78ms] Passed 4 tests
Server-side resources used by Advanced Post Password
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 25.24 ▲1.14 |
Dashboard /wp-admin | 3.09 ▲0.03 | 34.75 ▼8.71 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 33.38 ▼4.04 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 71.93 ▼679.52 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 26.81 ▲1.76 |
Post Password /wp-admin/options-general.php?page=advanced-post-password-settings-page | 3.03 | 24.96 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Post Password
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,672 ▲46 | 15.89 ▲0.28 | 5.07 ▼0.36 | 76.05 ▼0.89 |
Dashboard /wp-admin | 2,935 ▲36 | 6.10 ▼0.03 | 125.10 ▼6.12 | 177.24 ▲7.56 |
Posts /wp-admin/edit.php | 2,745 ▲5 | 3.24 ▲0.02 | 61.82 ▼2.27 | 134.96 ▼12.14 |
Add New Post /wp-admin/post-new.php | 3,810 ▲67 | 18.36 ▼0.70 | 441.08 ▼0.88 | 155.75 ▼10.69 |
Media Library /wp-admin/upload.php | 1,757 ▲5 | 5.47 ▼0.10 | 138.94 ▼12.13 | 191.27 ▼1.35 |
Post Password /wp-admin/options-general.php?page=advanced-post-password-settings-page | 1,104 | 2.41 | 51.57 | 111.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (Post Password settings)
advanced-post-password/post-password.php 92% from 13 tests
The main PHP file in "Advanced Post Password" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-post-password.php" instead of "post-password.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin166 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 55 | 78 | 126 |
PO File | 1 | 11 | 12 | 40 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected