Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.39ms] Passed 4 tests
Analyzing server-side resources used by Corona Bangladesh Live
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 36.12 ▼4.15 |
Dashboard /wp-admin | 3.40 ▲0.05 | 43.98 ▼10.84 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 42.16 ▼2.10 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 80.26 ▼16.46 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.57 ▲0.15 |
Server storage [IO: ▲0.43MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_corona_world |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_corona_districts |
widget_corona_bd |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Corona Bangladesh Live
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲13 | 14.35 ▼0.06 | 1.56 ▼0.29 | 39.03 ▼2.22 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▲0.08 | 83.85 ▼3.05 | 38.70 ▼3.20 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.04 | 33.45 ▼2.53 | 33.85 ▼6.57 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 22.99 ▼0.33 | 644.23 ▼20.56 | 51.79 ▼2.83 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.17 ▼0.04 | 95.40 ▼4.13 | 42.19 ▼0.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 9 options in the database
- widget_corona_bd
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- widget_corona_districts
- theysaidso_admin_options
- db_upgraded
- widget_corona_world
- can_compress_scripts
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 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
The following issues need your attention
- 5× 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/covid-19-bangladesh-live/widget_1.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/covid-19-bangladesh-live/widget_3.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/covid-19-bangladesh-live/shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/covid-19-bangladesh-live/covid-19-bd-live.php:30
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/covid-19-bangladesh-live/widget_2.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: covid-19, corona bangladesh live, corona bangladesh, corona, covid-19 bd
covid-19-bangladesh-live/covid-19-bd-live.php 92% from 13 tests
The primary PHP file in "Corona Bangladesh Live" version 2.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("covid-19-bangladesh-live.php" instead of "covid-19-bd-live.php")
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 plugin938 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 35 | 31 | 512 |
Sass | 3 | 3 | 0 | 403 |
JavaScript | 2 | 0 | 0 | 19 |
CSS | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 3.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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 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) public/img/virus-logo.png | 25.28KB | 0.00KB | ▼ 100.00% |