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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼306.40ms] Passed 4 tests
A check of server-side resources used by Covid-19 Live Tracking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.12 | 74.55 ▲17.91 |
Dashboard /wp-admin | 3.44 ▲0.04 | 35.18 ▲0.35 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 41.89 ▲4.74 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 140.42 ▼1,233.40 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 27.25 ▲2.72 |
Server storage [IO: ▲2.61MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 68 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_widget_jms_covid_19 |
jms_covid_params |
Browser metrics Passed 4 tests
Checking browser requirements for Covid-19 Live Tracking
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,928 ▲206 | 15.83 ▲0.19 | 16.28 ▲10.25 | 2.24 ▼0.20 |
Dashboard /wp-admin | 2,909 ▲55 | 6.13 ▼0.11 | 120.85 ▼20.75 | 157.31 ▼75.58 |
Posts /wp-admin/edit.php | 2,708 ▲17 | 3.24 ▲0.00 | 64.30 ▼2.51 | 146.70 ▼5.53 |
Add New Post /wp-admin/post-new.php | 1,773 ▲62 | 17.18 ▼4.22 | 450.61 ▼36.26 | 162.89 ▲0.99 |
Media Library /wp-admin/upload.php | 1,718 ▲26 | 5.44 ▼0.03 | 151.84 ▼0.72 | 197.04 ▼11.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 2 options in the database
- widget_widget_jms_covid_19
- jms_covid_params
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/covid-19-live-tracking/admin/widgets/class-jmscovid-elementor-widget.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/covid-19-live-tracking/admin/class-jmscovid-elementor.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/covid-19-live-tracking/front/class-jmscovid-widget.php:13
- > 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 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
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in covid-19-live-tracking/assets to your readme.txt
covid-19-live-tracking/jms-covid-19.php 85% from 13 tests
"Covid-19 Live Tracking" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("covid-19-live-tracking.php" instead of "jms-covid-19.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected11,426 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 26 | 2,177 | 7,229 | 7,818 |
PHP | 7 | 114 | 309 | 1,686 |
CSS | 19 | 36 | 457 | 1,458 |
Sass | 3 | 15 | 1 | 464 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 20.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 7 | 17.50% |
▷ Public methods | 34 | 85.00% |
▷ Protected methods | 3 | 7.50% |
▷ Private methods | 3 | 7.50% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
10 PNG files occupy 0.29MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/style-4.png | 71.76KB | 24.73KB | ▼ 65.54% |
css/DataTables-1.10.20/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
css/DataTables-1.10.20/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
images/style-3.png | 31.11KB | 9.62KB | ▼ 69.09% |
images/style-2.png | 59.83KB | 19.35KB | ▼ 67.66% |