Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.08ms] Passed 4 tests
This is a short check of server-side resources used by Better Passwords
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.23 ▼6.62 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.52 ▼4.34 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 45.52 ▼0.74 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 82.57 ▼0.61 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 34.66 ▲1.53 |
Better Passwords /wp-admin/options-general.php?page=better-passwords-settings | 3.22 | 32.01 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Better Passwords
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.22 ▼1.36 | 1.72 ▼0.07 | 42.10 ▼8.38 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.95 | 107.11 ▲1.88 | 39.18 ▼2.70 |
Posts /wp-admin/edit.php | 2,093 ▲25 | 2.13 ▲0.11 | 39.28 ▲3.45 | 37.02 ▲2.50 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.76 ▲0.17 | 673.91 ▼20.48 | 58.57 ▲6.74 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.01 | 96.60 ▼13.35 | 40.69 ▼4.50 |
Better Passwords /wp-admin/options-general.php?page=better-passwords-settings | 901 | 2.06 | 25.90 | 39.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
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=better-passwords-settings
- > Notice in wp-content/plugins/better-passwords/better-passwords.php+200
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/better-passwords/better-passwords.php
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 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: passwords, better, haveibeenpwned, hibp, pwned...
better-passwords/better-passwords.php 85% from 13 tests
The main PHP file in "Better Passwords" ver. 1.8 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:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin228 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 46 | 59 | 228 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 22 | 95.65% |
▷ Anonymous functions | 1 | 4.35% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
header.png | 10.50KB | 6.82KB | ▼ 35.03% |
icon-36x36.png | 1.35KB | 0.88KB | ▼ 34.62% |