Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.56ms] Passed 4 tests
A check of server-side resources used by MSIT Corona Virus Live Update Widgets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.80 ▼5.57 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.98 ▼3.50 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.44 ▼0.10 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 81.68 ▼17.07 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.81 ▲2.16 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_msit_coronavirus_live_update_widgets |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by MSIT Corona Virus Live Update Widgets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 13.18 ▼1.17 | 1.81 ▼0.04 | 44.07 ▼0.14 |
Dashboard /wp-admin | 2,209 ▲18 | 5.79 ▲0.92 | 93.85 ▼11.93 | 36.82 ▼6.66 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.02 | 34.86 ▲0.17 | 32.57 ▼2.42 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.41 ▲5.88 | 662.35 ▲8.03 | 55.28 ▼6.54 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.16 ▼0.04 | 96.13 ▲0.12 | 42.28 ▲0.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_msit_coronavirus_live_update_widgets
- widget_recent-posts
- 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 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: instance in wp-content/plugins/msit-corona-virus-live-update-widgets/views/msit_corona_virus_update.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/msit-corona-virus-live-update-widgets/views/msit_corona_virus_update.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/msit-corona-virus-live-update-widgets/views/msit_corona_virus_update.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/msit-corona-virus-live-update-widgets/views/msit_corona_virus_admin.php:5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: covit19 wordpress widget, covid 19 news, coronavirus update, corona countdown, coronavirus wordpress widget...
msit-corona-virus-live-update-widgets/msit-coronavirus-live-update-widgets.php 69% from 13 tests
The entry point to "MSIT Corona Virus Live Update Widgets" version 3.1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("msit-corona-virus-live-update-widgets.php" instead of "msit-coronavirus-live-update-widgets.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 401 characters long)
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
There were no executable files found in this plugin640 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 15 | 60 | 513 |
CSS | 1 | 2 | 5 | 127 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.81 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) images/virus-logo.png | 25.28KB | 0.00KB | ▼ 100.00% |