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.31MB] [CPU: ▼11.93ms] Passed 4 tests
Server-side resources used by Corona Virus Data
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.30 | 25.87 ▼17.06 |
Dashboard /wp-admin | 3.63 ▲0.28 | 44.95 ▼18.66 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 47.09 ▲5.26 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 88.85 ▼14.03 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 35.09 ▲2.04 |
Corona Virus Data /wp-admin/options-general.php?page=corona-virus-data | 3.52 | 33.37 |
Server storage [IO: ▲1.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 287 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Corona Virus Data
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲90 | 13.31 ▼1.07 | 4.65 ▲2.95 | 39.45 ▼3.54 |
Dashboard /wp-admin | 2,215 ▲27 | 4.95 ▼0.99 | 110.77 ▼5.14 | 38.31 ▼7.97 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.02 ▲0.02 | 39.90 ▼1.46 | 37.32 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,530 ▲11 | 18.25 ▼4.90 | 594.96 ▼31.00 | 57.89 ▲8.43 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.24 ▲0.05 | 96.22 ▼5.57 | 40.15 ▼3.30 |
Corona Virus Data /wp-admin/options-general.php?page=corona-virus-data | 2,723 | 2.15 | 28.82 | 34.33 |
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
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/corona-virus-data/admin/partials/corona-virus-data-admin-display.php
- > /wp-content/plugins/corona-virus-data/public/partials/corona-virus-data-public-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/corona-virus-data/includes/class-corona-virus-data.php:219
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/corona-virus-data/admin/class-corona-virus-data-admin.php:92
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=corona-virus-data
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=corona-virus-data - Access to XMLHttpRequest at 'https://corona.lmao.ninja/v3/covid-19/all' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- > GET request to /wp-admin/options-general.php?page=corona-virus-data
- > Network (severe)
https://corona.lmao.ninja/v3/covid-19/all - Failed to load resource: net::ERR_FAILED
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #2, #3, #4, #5 in corona-virus-data/assets to your readme.txt
corona-virus-data/corona-virus-data.php 92% from 13 tests
The entry point to "Corona Virus Data" version 1.4.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)
Code Analysis Passed 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
There were no executable files found in this plugin600 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 1 | 1 | 379 |
JavaScript | 7 | 7 | 19 | 205 |
PHP | 12 | 0 | 11 | 13 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.01 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
257 compressed PNG files occupy 0.81MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/flags/de.png | 0.13KB | 0.13KB | 0.00% |
public/img/flags/me.png | 7.52KB | 4.41KB | ▼ 41.34% |
public/img/flags/gi.png | 3.98KB | 2.65KB | ▼ 33.46% |
public/img/flags/ee.png | 0.20KB | 0.21KB | 0.00% |
public/img/flags/us.png | 2.32KB | 2.45KB | 0.00% |