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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼4.72ms] Passed 4 tests
Server-side resources used by OnzAuth
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 38.99 ▼3.45 |
Dashboard /wp-admin | 3.55 ▲0.24 | 47.65 ▼4.54 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 47.90 ▼0.11 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 86.65 ▼10.76 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 37.92 ▲2.50 |
OnzAuth Config /wp-admin/options-general.php?page=onzauth | 3.37 | 31.30 |
Server storage [IO: ▲1.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 182 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by OnzAuth
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.29 ▼1.09 | 2.04 ▲0.31 | 43.92 ▼4.98 |
Dashboard /wp-admin | 2,210 ▲25 | 4.86 ▼1.02 | 98.60 ▼19.03 | 39.31 ▼12.76 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.04 | 33.79 ▼2.33 | 33.82 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.15 ▲5.66 | 659.88 ▼41.06 | 66.98 ▲3.32 |
Media Library /wp-admin/upload.php | 1,386 ▲4 | 4.22 ▼0.06 | 96.82 ▼10.83 | 44.56 ▼2.82 |
OnzAuth Config /wp-admin/options-general.php?page=onzauth | 864 | 2.02 | 22.17 | 26.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 49× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\MessageFormatterInterface' not found in wp-content/plugins/onzauth/vendor/guzzlehttp/guzzle/src/MessageFormatter.php:38
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/onzauth/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/onzauth/vendor/guzzlehttp/psr7/src/FnStream.php:16
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/onzauth/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/onzauth/vendor/guzzlehttp/psr7/src/Uri.php:17
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/onzauth/vendor/guzzlehttp/promises/src/TaskQueue.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/onzauth/vendor/guzzlehttp/psr7/src/LimitStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/onzauth/vendor/guzzlehttp/psr7/src/MultipartStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/onzauth/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/onzauth/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: authentication, passwordless, security, magiclink, biometric...
onzauth/onzauth.php 92% from 13 tests
The main PHP file in "OnzAuth" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
No dangerous file extensions were detected16,681 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 132 | 2,253 | 6,515 | 11,231 |
Markdown | 18 | 1,409 | 0 | 4,164 |
JSON | 10 | 0 | 0 | 1,153 |
JavaScript | 2 | 10 | 9 | 88 |
CSS | 1 | 6 | 0 | 45 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 13.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 88 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 88 | 100.00% |
▷ Final classes | 35 | 39.77% |
Methods | 810 | |
▷ Static methods | 167 | 20.62% |
▷ Public methods | 673 | 83.09% |
▷ Protected methods | 7 | 0.86% |
▷ Private methods | 130 | 16.05% |
Functions | 125 | |
▷ Named functions | 34 | 27.20% |
▷ Anonymous functions | 91 | 72.80% |
Constants | 73 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 73 | 100.00% |
▷ Public constants | 54 | 73.97% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.21MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 14.40KB | 6.57KB | ▼ 54.36% |
assets/banner-1544x500.png | 101.27KB | 38.82KB | ▼ 61.67% |
assets/screenshot-2.png | 42.41KB | 23.06KB | ▼ 45.63% |
assets/screenshot-1.png | 6.67KB | 4.17KB | ▼ 37.51% |
assets/banner-772x250.png | 41.29KB | 15.45KB | ▼ 62.58% |