Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼3.31ms] Passed 4 tests
An overview of server-side resources used by VirusWeather Covid-19 Coronavirus
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 37.00 ▼2.26 |
Dashboard /wp-admin | 3.45 ▲0.14 | 45.66 ▲0.41 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 43.82 ▼2.11 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 85.16 ▼8.46 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.67 ▼0.39 |
Server storage [IO: ▲7.50MB] [DB: ▲0.07MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/virusweather/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/virusweather/admin/images/W_logo_20\321\20520.png"
Filesystem: 105 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_virus_weather_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by VirusWeather Covid-19 Coronavirus
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.52 ▲0.24 | 1.52 ▼0.17 | 41.85 ▼3.17 |
Dashboard /wp-admin | 2,197 ▲17 | 6.82 ▲1.22 | 96.03 ▲7.31 | 93.48 ▲54.88 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 3.40 ▲1.46 | 42.78 ▲3.18 | 31.28 ▼7.85 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 24.20 ▲1.10 | 662.15 ▲22.04 | 34.47 ▼13.04 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 6.28 ▲2.06 | 108.14 ▲9.37 | 67.05 ▲25.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-posts
- widget_virus_weather_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/virusweather/includes/class-virus-weather.php:202
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 86% 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:
- Tags: There are too many tags (22 tag instead of maximum 10)
virusweather/virus-weather.php 77% from 13 tests
The entry point to "VirusWeather Covid-19 Coronavirus" version 2.0.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("virusweather.php" instead of "virus-weather.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 370 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,320 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 9 | 0 | 9 | 789 |
PHP | 8 | 172 | 414 | 573 |
JavaScript | 2 | 121 | 23 | 569 |
CSS | 1 | 79 | 4 | 389 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 7.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 19 | 82.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 17.39% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
56 PNG files occupy 1.84MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/ico_size_300x400_g.png | 3.36KB | 1.08KB | ▼ 67.87% |
admin/images/instagram.png | 0.56KB | 0.55KB | ▼ 2.08% |
admin/images/21.png | 0.20KB | 0.19KB | ▼ 2.50% |
admin/images/armenia-outbreak-hotspot-may-20-2020.png | 61.40KB | 27.69KB | ▼ 54.90% |
admin/images/logo.png | 2.84KB | 2.75KB | ▼ 3.17% |