Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.79ms] Passed 4 tests
Analyzing server-side resources used by WP strong password
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.58 ▼5.58 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.81 ▼0.63 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.36 ▲6.69 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.71 ▼3.39 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.63 ▼1.55 |
Server storage [IO: ▲5.87MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP strong password
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.58 ▼0.73 | 1.74 ▼0.16 | 40.52 ▼1.50 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▲0.01 | 106.57 ▲1.53 | 42.00 ▲4.87 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▲0.04 | 39.30 ▼5.38 | 34.90 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.01 ▲4.65 | 598.11 ▼12.10 | 52.52 ▼2.85 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.19 ▼0.05 | 97.55 ▲3.05 | 42.71 ▲1.44 |
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
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'ZxcvbnPhp\\Matchers\\Match' not found in wp-content/plugins/wp-strong-password/vendor/bjeavons/zxcvbn-php/src/Matchers/DictionaryMatch.php:7
- > PHP Fatal error
Uncaught Error: Class 'ZxcvbnPhp\\Matchers\\Match' not found in wp-content/plugins/wp-strong-password/vendor/bjeavons/zxcvbn-php/src/Matchers/SequenceMatch.php:5
- > PHP Fatal error
Uncaught Error: Interface 'ZxcvbnPhp\\Matchers\\MatchInterface' not found in wp-content/plugins/wp-strong-password/vendor/bjeavons/zxcvbn-php/src/Matchers/Match.php:7
- > PHP Fatal error
Uncaught Error: Class 'ZxcvbnPhp\\Matchers\\DictionaryMatch' not found in wp-content/plugins/wp-strong-password/vendor/bjeavons/zxcvbn-php/src/Matchers/L33tMatch.php:11
- > PHP Fatal error
Uncaught Error: Class 'ZxcvbnPhp\\Matchers\\DictionaryMatch' not found in wp-content/plugins/wp-strong-password/vendor/bjeavons/zxcvbn-php/src/Matchers/ReverseDictionaryMatch.php:7
- > PHP Fatal error
Uncaught Error: Class 'ZxcvbnPhp\\Matchers\\Match' not found in wp-content/plugins/wp-strong-password/vendor/bjeavons/zxcvbn-php/src/Matchers/DateMatch.php:7
- > PHP Fatal error
Uncaught Error: Class 'ZxcvbnPhp\\Matchers\\Match' not found in wp-content/plugins/wp-strong-password/vendor/bjeavons/zxcvbn-php/src/Matchers/RepeatMatch.php:8
- > PHP Fatal error
Uncaught Error: Class 'ZxcvbnPhp\\Matchers\\Match' not found in wp-content/plugins/wp-strong-password/vendor/bjeavons/zxcvbn-php/src/Matchers/YearMatch.php:7
- > PHP Fatal error
Uncaught Error: Class 'ZxcvbnPhp\\Matchers\\Match' not found in wp-content/plugins/wp-strong-password/vendor/bjeavons/zxcvbn-php/src/Matchers/SpatialMatch.php:7
- > PHP Fatal error
Uncaught Error: Class 'ZxcvbnPhp\\Matchers\\Match' not found in wp-content/plugins/wp-strong-password/vendor/bjeavons/zxcvbn-php/src/Matchers/Bruteforce.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: "#"
wp-strong-password/wp-strong-password.php 92% from 13 tests
The principal PHP file in "WP strong password" v. 0.0.3 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin5,072 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 592 | 854 | 4,796 |
Python | 2 | 27 | 73 | 140 |
JSON | 3 | 0 | 0 | 114 |
JavaScript | 1 | 5 | 9 | 15 |
XML | 1 | 3 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 22.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 1 | 5.56% |
Methods | 148 | |
▷ Static methods | 78 | 52.70% |
▷ Public methods | 106 | 71.62% |
▷ Protected methods | 36 | 24.32% |
▷ Private methods | 6 | 4.05% |
Functions | 57 | |
▷ Named functions | 42 | 73.68% |
▷ Anonymous functions | 15 | 26.32% |
Constants | 32 | |
▷ Global constants | 5 | 15.62% |
▷ Class constants | 27 | 84.38% |
▷ Public constants | 21 | 77.78% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin