Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲2,565.17ms] 75% from 4 tests
This is a short check of server-side resources used by Corona
Please have a look at the following items
- Extra CPU: The extra CPU usage must be under 200.00ms (currently 2,565.17ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 2,591.83 ▲2,545.15 |
Dashboard /wp-admin | 3.33 ▲0.03 | 2,608.86 ▲2,551.53 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 2,652.99 ▲2,601.01 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 2,664.75 ▲2,562.97 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 2,682.98 ▲2,649.21 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
corona_countries |
corona_all |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
corona_last_updated |
corona_history |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Corona
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.18 ▼1.06 | 1.74 ▼0.29 | 36.82 ▼13.90 |
Dashboard /wp-admin | 2,232 ▲26 | 5.88 ▲1.02 | 104.75 ▼14.93 | 46.77 ▲2.31 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.03 ▼0.00 | 42.15 ▲3.47 | 42.60 ▲3.19 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 21.13 ▼2.35 | 662.86 ▲36.29 | 67.83 ▲14.35 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.21 ▲0.02 | 100.91 ▼10.92 | 44.08 ▼5.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 10 options
- can_compress_scripts
- widget_theysaidso_widget
- corona_last_updated
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- corona_countries
- db_upgraded
- corona_all
- corona_history
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
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/corona/templates/corona.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/corona/templates/corona-chart.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/corona/templates/corona-line.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/corona/templates/corona-table.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/corona/templates/admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/corona/templates/corona-map.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/corona/templates/corona-table-bing.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/corona/templates/corona-list.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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: corona map, coronavirus, corona live update, ncov, virus...
corona/corona.php 92% from 13 tests
This is the main PHP file of "Corona" version 3.4.0, 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:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "4.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,042 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 87 | 26 | 1,126 |
CSS | 1 | 123 | 13 | 738 |
JavaScript | 2 | 28 | 14 | 178 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.26MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/bg.png | 261.00KB | 129.90KB | ▼ 50.23% |
assets/images/world.png | 2.80KB | 1.36KB | ▼ 51.24% |