Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼0.77ms] Passed 4 tests
Analyzing server-side resources used by Covid-19 Live Tracking
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 46.00 ▲2.79 |
Dashboard /wp-admin | 3.75 ▲0.44 | 53.20 ▼1.47 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 50.76 ▼2.63 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 89.37 ▼1.75 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 40.83 ▲4.16 |
Server storage [IO: ▲2.61MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 8 new options
New WordPress options |
---|
jms_covid_params |
widget_widget_jms_covid_19 |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Covid-19 Live Tracking: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲189 | 13.96 ▼0.25 | 10.22 ▲8.21 | 42.34 ▼1.21 |
Dashboard /wp-admin | 2,222 ▲34 | 5.85 ▲0.95 | 108.44 ▼8.24 | 42.22 ▲0.00 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.04 ▲0.05 | 35.63 ▼2.17 | 35.02 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,527 ▲8 | 18.01 ▼5.13 | 591.47 ▼77.32 | 65.04 ▲8.55 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.27 ▲0.08 | 98.82 ▼15.16 | 44.00 ▼2.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_widget_jms_covid_19
- jms_covid_params
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > 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
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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #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
This is the main PHP file of "Covid-19 Live Tracking" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("covid-19-live-tracking.php" instead of "jms-covid-19.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions 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
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.29MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/DataTables-1.10.20/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
images/style-5.png | 113.34KB | 47.57KB | ▼ 58.03% |
css/DataTables-1.10.20/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
images/style-2.png | 59.83KB | 19.35KB | ▼ 67.66% |
images/style-1.png | 23.36KB | 7.55KB | ▼ 67.68% |