Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/randomize-password/randomize-password.php+136
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.02ms] Passed 4 tests
This is a short check of server-side resources used by Randomize Password
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 41.87 ▲0.56 |
Dashboard /wp-admin | 3.39 ▲0.08 | 48.30 ▼2.69 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.29 ▼2.97 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.93 ▼14.96 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.88 ▲3.36 |
Randomize Password /wp-admin/options-general.php?page=randomize_password_settings | 3.28 | 34.75 |
Server storage [IO: ▲0.16MB] [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: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
rp_options |
Browser metrics Passed 4 tests
A check of browser resources used by Randomize Password
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.11 | 1.74 ▲0.20 | 45.41 ▲2.14 |
Dashboard /wp-admin | 2,202 ▲22 | 5.53 ▼0.10 | 85.01 ▼6.43 | 40.31 ▼3.26 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.98 ▼0.04 | 37.60 ▼0.13 | 36.73 ▼2.15 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.02 ▼0.29 | 687.18 ▲22.64 | 64.78 ▲14.95 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.23 ▲0.08 | 106.33 ▲3.22 | 47.49 ▼0.62 |
Randomize Password /wp-admin/options-general.php?page=randomize_password_settings | 866 | 2.03 | 26.38 | 26.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- rp_options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Option for each user on user settings page and profile page.), #2 (Randomize Password Settings page in Dashboard → Settings.)
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
randomize-password/randomize-password.php 85% from 13 tests
Analyzing the main PHP file in "Randomize Password" version 1.0.0
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 258 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin303 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 282 | 182 | 303 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 33.64KB | 13.34KB | ▼ 60.36% |
screenshot-1.png | 12.39KB | 4.87KB | ▼ 60.72% |