Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5768
wpdb::prepare was called incorrectly. Unsupported value type (array). Please see Debugging in WordPress for more information. (This message was added in version 4.8.2.)
Server metrics [RAM: ▲3.53MB] [CPU: ▼291.17ms] Passed 4 tests
An overview of server-side resources used by Dashy - Google Analytics advanced dashboard
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.90 ▲4.39 | 76.30 ▲26.01 |
Dashboard /wp-admin | 7.92 ▲4.52 | 56.81 ▲24.15 |
Posts /wp-admin/edit.php | 7.92 ▲4.28 | 58.16 ▲21.15 |
Add New Post /wp-admin/post-new.php | 7.92 ▲0.92 | 51.19 ▼1,229.96 |
Media Library /wp-admin/upload.php | 7.92 ▲4.63 | 45.60 ▲19.97 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 7.92 | 43.22 |
Server storage [IO: ▲5.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 381 new files
Database: 1 new table, 13 new options
New tables |
---|
wp_dashy_dashboard |
New WordPress options |
---|
dashy_credentials |
fs_gdpr |
dashy_installed |
fs_accounts |
dashy_settings |
fs_active_plugins |
dashy_token |
dashy_widgets |
fs_debug_mode |
fs_api_cache |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dashy - Google Analytics advanced dashboard
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,821 ▲77 | 15.64 ▼0.03 | 7.02 ▲1.43 | 2.44 ▲0.30 |
Dashboard /wp-admin | 2,943 ▲89 | 6.12 ▼0.13 | 117.24 ▼13.28 | 171.64 ▲10.94 |
Posts /wp-admin/edit.php | 2,770 ▲76 | 4.04 ▲0.80 | 107.19 ▲41.40 | 177.85 ▲36.31 |
Add New Post /wp-admin/post-new.php | 1,734 ▼26 | 20.79 ▼1.75 | 483.53 ▲50.87 | 167.02 ▲17.77 |
Media Library /wp-admin/upload.php | 1,749 ▲51 | 5.61 ▲0.06 | 141.00 ▼0.18 | 208.84 ▲24.44 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 1,489 | 2.51 | 52.84 | 127.45 |
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: 5 options
- fs_active_plugins
- fs_api_cache
- fs_gdpr
- fs_debug_mode
- fs_accounts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dashylite/freemius/templates/ajax-loader.php
- 80× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/dashylite/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/dashylite/vendor/guzzlehttp/psr7/src/DroppingStream.php:10
- > PHP Warning
require(wp-content/plugins/dashylite/vendor/league/oauth2-google/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/dashylite/vendor/league/oauth2-google/examples/provider.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/dashylite/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/dashylite/vendor/guzzlehttp/psr7/src/LimitStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/dashylite/vendor/guzzlehttp/psr7/src/Stream.php:11
- > PHP Fatal error
Uncaught Error: Interface 'League\\OAuth2\\Client\\OptionProvider\\OptionProviderInterface' not found in wp-content/plugins/dashylite/vendor/league/oauth2-client/src/OptionProvider/PostAuthOptionProvider.php:23
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/dashylite/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/dashylite/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Class 'Tropicalista\\Dashy\\Rest\\Base_Rest' not found in wp-content/plugins/dashylite/includes/Rest/Rest_Config.php:7
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% 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
6 plugin tags: event tracking, google analytics widget, google analytics, search console, analytics...
dashylite/dashylite.php 92% from 13 tests
The main file in "Dashy - Google Analytics advanced dashboard" v. 2.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected57,414 lines of code in 332 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 261 | 9,157 | 22,396 | 39,019 |
PO File | 10 | 5,710 | 6,913 | 12,558 |
Markdown | 18 | 1,381 | 0 | 3,923 |
JSON | 9 | 1 | 0 | 781 |
JavaScript | 9 | 37 | 61 | 658 |
CSS | 22 | 28 | 64 | 388 |
SVG | 1 | 45 | 0 | 57 |
XML | 1 | 0 | 0 | 28 |
Bourne Shell | 1 | 1 | 0 | 2 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,609)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 28.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,609.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 18 | |
Traits | 9 | |
Classes | 149 | |
▷ Abstract classes | 4 | 2.68% |
▷ Concrete classes | 145 | 97.32% |
▷ Final classes | 12 | 8.28% |
Methods | 1,974 | |
▷ Static methods | 240 | 12.16% |
▷ Public methods | 1,454 | 73.66% |
▷ Protected methods | 79 | 4.00% |
▷ Private methods | 441 | 22.34% |
Functions | 255 | |
▷ Named functions | 165 | 64.71% |
▷ Anonymous functions | 90 | 35.29% |
Constants | 188 | |
▷ Global constants | 105 | 55.85% |
▷ Class constants | 83 | 44.15% |
▷ Public constants | 83 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/dashylite.png | 2.98KB | 1.13KB | ▼ 62.16% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |