Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.07ms] Passed 4 tests
Server-side resources used by Corona Virus (COVID-19) - Live Report Visualizations in WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.45 ▼1.56 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.88 ▼10.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.97 ▼4.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.00 ▼0.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.01 ▲0.59 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Corona Virus (COVID-19) - Live Report Visualizations in WordPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.22 ▼1.22 | 1.63 ▼0.06 | 45.99 ▲0.19 |
Dashboard /wp-admin | 2,221 ▲33 | 5.86 ▼0.05 | 109.27 ▲12.84 | 41.98 ▼4.92 |
Posts /wp-admin/edit.php | 2,101 ▲15 | 2.05 ▲0.05 | 37.17 ▼1.36 | 35.32 ▼5.22 |
Add New Post /wp-admin/post-new.php | 1,530 ▲16 | 23.21 ▲5.65 | 643.68 ▼35.48 | 58.84 ▲3.51 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.18 ▼0.01 | 94.01 ▼6.82 | 41.09 ▼3.28 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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
Even though no errors were found, this is by no means an exhaustive test
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/corona-virus-covid-19-visualizations/covid19-visualizations.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: coronavirus, corona, covid19, virus, covid
corona-virus-covid-19-visualizations/covid19-visualizations.php 77% from 13 tests
"Corona Virus (COVID-19) - Live Report Visualizations in WordPress" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("corona-virus-covid-19-visualizations.php" instead of "covid19-visualizations.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Everything looks great! No dangerous files found in this plugin122 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 42 | 122 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
6 PNG files occupy 0.17MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/screenshot-1.png | 32.67KB | 13.43KB | ▼ 58.91% |
img/screenshot-5.png | 28.49KB | 13.82KB | ▼ 51.48% |
img/screenshot-2.png | 38.90KB | 17.93KB | ▼ 53.92% |
img/screenshot-3.png | 22.60KB | 11.37KB | ▼ 49.69% |
img/screenshot-4.png | 13.56KB | 6.75KB | ▼ 50.22% |