Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.09ms] Passed 4 tests
Server-side resources used by PHP Native Password Hash
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.97 ▼3.29 |
Dashboard /wp-admin | 3.31 ▼0.03 | 42.01 ▼14.78 |
Posts /wp-admin/edit.php | 3.37 ▲0.00 | 42.29 ▼5.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.59 ▼12.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 36.00 ▼2.15 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
PHP Native Password Hash: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.17 ▼0.18 | 2.05 ▲0.27 | 40.02 ▼0.82 |
Dashboard /wp-admin | 2,192 ▲15 | 5.55 ▼0.05 | 83.00 ▼4.67 | 36.07 ▼1.81 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.01 | 32.99 ▼4.50 | 33.85 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.07 ▲0.16 | 651.67 ▲7.88 | 51.22 ▼11.20 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▼0.10 | 92.89 ▼21.75 | 42.34 ▼6.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
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 Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: argon2i, argon2id, password hashing, password, password_hash...
password-hash/wp-php-password-hash.php 85% from 13 tests
"PHP Native Password Hash" version 3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("password-hash.php" instead of "wp-php-password-hash.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 261 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin155 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 31 | 52 | 125 |
JSON | 1 | 0 | 0 | 30 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 5 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 50.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin