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
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.95ms] Passed 4 tests
A check of server-side resources used by Display SQL Stats
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 37.84 ▼5.66 |
Dashboard /wp-admin | 3.41 ▲0.06 | 48.71 ▼5.81 |
Posts /wp-admin/edit.php | 3.52 ▲0.12 | 50.47 ▼2.93 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.06 | 86.98 ▼5.40 |
Media Library /wp-admin/upload.php | 3.33 ▲0.06 | 37.81 ▲2.83 |
Display SQL Stats /wp-admin/options-general.php?page=dss_display-stats | 3.34 | 36.62 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Display SQL Stats
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 15.34 ▲1.10 | 2.19 ▲0.21 | 40.04 ▼3.75 |
Dashboard /wp-admin | 2,222 ▲42 | 6.70 ▲1.04 | 112.43 ▲25.33 | 39.57 ▼2.81 |
Posts /wp-admin/edit.php | 2,130 ▲33 | 3.83 ▲1.83 | 54.88 ▲18.60 | 37.94 ▼3.72 |
Add New Post /wp-admin/post-new.php | 6,316 ▲4,790 | 25.12 ▲1.95 | 972.36 ▲289.94 | 38.22 ▼35.66 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 6.35 ▲2.04 | 107.62 ▲1.61 | 45.06 ▲1.39 |
Display SQL Stats /wp-admin/options-general.php?page=dss_display-stats | 1,055 | 3.29 | 39.03 | 25.15 |
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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dss_display-stats
- > Warning in wp-content/plugins/display-sql-stats/display-stats-admin.php+92
count(): Parameter must be an array or an object that implements Countable
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dss_display-stats
- > Notice in wp-content/plugins/display-sql-stats/display-stats-admin.php+120
Trying to access array offset on value of type bool
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dss_display-stats
- > Warning in wp-content/plugins/display-sql-stats/display-stats-admin.php+165
in_array() expects parameter 2 to be array, bool given
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 take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/display-sql-stats/display-stats-header.php
- > /wp-content/plugins/display-sql-stats/whatsup.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/display-sql-stats/display-stats-getdata.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function dss_set_lang_file() in wp-content/plugins/display-sql-stats/display-stats-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/display-sql-stats/display-stats.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function dss_set_lang_file() in wp-content/plugins/display-sql-stats/display-stats-chart.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=dss_display-stats
- > Console-api (warning) in unknown
https://www.google.com/jsapi 140:47 " Attempting to load version '1' of Google Charts, but the previously loaded '1.0' will be used instead."
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: There are too many tags (18 tag instead of maximum 10)
display-sql-stats/display-stats.php 92% from 13 tests
This is the main PHP file of "Display SQL Stats" version 0.9.5.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("display-sql-stats.php" instead of "display-stats.php")
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
Success! There were no dangerous files found in this plugin586 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 127 | 120 | 522 |
PO File | 1 | 23 | 28 | 64 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/plus-icon.png | 0.87KB | 0.84KB | ▼ 3.15% |
img/minus-icon.png | 0.84KB | 0.79KB | ▼ 5.58% |