Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.25ms] Passed 4 tests
A check of server-side resources used by Datawiza Proxy Auth Plugin - SSO
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.28 ▲1.34 |
Dashboard /wp-admin | 3.40 ▲0.09 | 44.10 ▼5.84 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 47.63 ▼2.39 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.83 ▼7.71 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.37 ▼1.07 |
Datawiza Proxy Auth /wp-admin/options-general.php?page=datawiza-sign-in-widget | 3.25 | 32.04 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 161 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Datawiza Proxy Auth Plugin - SSO
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲185 | 13.61 ▼0.97 | 6.01 ▲4.48 | 42.01 ▼2.55 |
Dashboard /wp-admin | 2,214 ▲26 | 5.84 ▼0.04 | 101.12 ▲3.46 | 39.20 ▼2.00 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.02 ▲0.01 | 37.39 ▼6.08 | 35.85 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.44 ▲5.92 | 652.39 ▼11.11 | 54.53 ▲1.91 |
Media Library /wp-admin/upload.php | 1,396 ▲14 | 4.21 ▼0.01 | 98.57 ▲2.16 | 43.60 ▲2.95 |
Datawiza Proxy Auth /wp-admin/options-general.php?page=datawiza-sign-in-widget | 782 | 2.02 | 24.04 | 26.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 fix the following
- 98× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\StreamHandler' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:27
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php:28
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Handler/RedisPubSubHandler.php:29
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php:36
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Handler/ElasticsearchHandler.php:44
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/psr/log/Psr/Log/Test/TestLogger.php:57
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: sso, single sign-on, auth, proxy, oidc...
reverse-proxy-auth-widget/datawiza-widget.php 77% from 13 tests
The main PHP file in "Datawiza Proxy Auth Plugin - SSO" ver. 1.1.2 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: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("reverse-proxy-auth-widget.php" instead of "datawiza-widget.php")
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected9,369 lines of code in 153 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 140 | 2,191 | 5,140 | 8,185 |
Markdown | 6 | 227 | 0 | 789 |
JSON | 5 | 0 | 0 | 361 |
CSS | 1 | 4 | 0 | 29 |
JavaScript | 1 | 2 | 0 | 5 |
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.38 |
Average class complexity | 8.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 9 | |
Traits | 5 | |
Classes | 119 | |
▷ Abstract classes | 8 | 6.72% |
▷ Concrete classes | 111 | 93.28% |
▷ Final classes | 2 | 1.80% |
Methods | 720 | |
▷ Static methods | 64 | 8.89% |
▷ Public methods | 493 | 68.47% |
▷ Protected methods | 156 | 21.67% |
▷ Private methods | 71 | 9.86% |
Functions | 21 | |
▷ Named functions | 1 | 4.76% |
▷ Anonymous functions | 20 | 95.24% |
Constants | 59 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 59 | 100.00% |
▷ Public constants | 39 | 66.10% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin