Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.28MB] [CPU: ▼2.93ms] Passed 4 tests
An overview of server-side resources used by Disallow Pwned Password
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 39.90 ▼7.77 |
Dashboard /wp-admin | 3.59 ▲0.29 | 48.60 ▼3.11 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 50.48 ▲5.55 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 101.47 ▼4.49 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 37.72 ▲3.65 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Disallow Pwned Password
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.65 ▼0.80 | 1.70 ▼0.42 | 40.82 ▼4.72 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼1.01 | 113.04 ▼4.24 | 40.28 ▼2.65 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.01 | 41.75 ▲4.96 | 36.25 ▲0.94 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.35 ▲0.74 | 614.67 ▼68.02 | 51.18 ▼1.66 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.17 ▼0.06 | 98.67 ▼2.61 | 39.48 ▼4.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 33× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\Inflector\\InflectorAggregateInterface' not found in wp-content/plugins/disallow-pwned-passwords/vendor/league/container/src/Inflector/InflectorAggregate.php:8
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\Definition\\DefinitionAggregateInterface' not found in wp-content/plugins/disallow-pwned-passwords/vendor/league/container/src/Definition/DefinitionAggregate.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/disallow-pwned-passwords/vendor/psr/container/src/NotFoundExceptionInterface.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/disallow-pwned-passwords/vendor/league/container/src/Container.php:11
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\Argument\\RawArgumentInterface' not found in wp-content/plugins/disallow-pwned-passwords/vendor/league/container/src/Argument/RawArgument.php:5
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\ServiceProvider\\ServiceProviderInterface' not found in wp-content/plugins/disallow-pwned-passwords/vendor/league/container/src/ServiceProvider/BootableServiceProviderInterface.php:5
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\Argument\\ClassNameInterface' not found in wp-content/plugins/disallow-pwned-passwords/vendor/league/container/src/Argument/ClassName.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/disallow-pwned-passwords/vendor/typisttech/wp-contained-hook/src/Exceptions/ContainerException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/disallow-pwned-passwords/vendor/league/container/src/Exception/ContainerException.php:8
- > PHP Fatal error
Uncaught Error: Class 'Itineris\\DisallowPwnedPasswords\\Handlers\\AbstractFormSubmission' not found in wp-content/plugins/disallow-pwned-passwords/src/Handlers/FormSubmission.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please a description for screenshot #2 in disallow-pwned-passwords/assets to your readme.txt
disallow-pwned-passwords/disallow-pwned-passwords.php Passed 13 tests
The main PHP script in "Disallow Pwned Password" version 0.3.2 is automatically included on every request by WordPress
63 characters long description:
Disallow WordPress and WooCommerce users using pwned passwords.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,838 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 518 | 1,213 | 1,775 |
Markdown | 2 | 21 | 0 | 63 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 3.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 19 | |
Traits | 3 | |
Classes | 30 | |
▷ Abstract classes | 3 | 10.00% |
▷ Concrete classes | 27 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 173 | |
▷ Static methods | 3 | 1.73% |
▷ Public methods | 161 | 93.06% |
▷ Protected methods | 11 | 6.36% |
▷ Private methods | 1 | 0.58% |
Functions | 8 | |
▷ Named functions | 2 | 25.00% |
▷ Anonymous functions | 6 | 75.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 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 were not PNG files found in your plugin