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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.86ms] Passed 4 tests
A check of server-side resources used by COVID-19 (Coronavirus) Update Your Customers
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.14 ▼1.18 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.23 ▼1.62 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.99 ▼8.62 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.81 ▼14.28 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.95 ▼2.91 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for COVID-19 (Coronavirus) Update Your Customers
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,977 ▲216 | 13.60 ▼0.75 | 8.25 ▲6.64 | 39.43 ▼2.44 |
Dashboard /wp-admin | 2,258 ▲81 | 5.71 ▲0.05 | 87.97 ▼1.45 | 62.17 ▲23.47 |
Posts /wp-admin/edit.php | 2,168 ▲68 | 2.26 ▲0.29 | 38.31 ▲0.97 | 34.47 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,579 ▲53 | 23.25 ▼0.15 | 741.19 ▲52.44 | 35.05 ▼21.09 |
Media Library /wp-admin/upload.php | 1,463 ▲66 | 4.41 ▲0.23 | 118.65 ▲13.54 | 47.51 ▲0.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/covid-19-alert/inc/actions-filters.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/covid-19-alert/inc/activate.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/covid-19-alert/views/admin_covid_nineteen.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/covid-19-alert/covid-19-alert.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/covid-19-alert/inc/wp-enqueue.php:33
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% 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
These attributes need to be fixed:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add an image for screenshot #1 (Display a simple badge on your website to be clicked by users.)
- Screenshots: Please a description for screenshot #6 in covid-19-alert/assets to your readme.txt
covid-19-alert/covid-19-alert.php 85% from 13 tests
The primary PHP file in "COVID-19 (Coronavirus) Update Your Customers" version 1.5.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- 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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,501 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 194 | 105 | 867 |
CSS | 2 | 46 | 14 | 551 |
SVG | 3 | 1 | 2 | 44 |
JavaScript | 2 | 19 | 5 | 39 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 9 | |
▷ Named functions | 9 | 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 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
4 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/GoogleIcon.png | 50.15KB | 18.04KB | ▼ 64.03% |
assets/img/KofiCup.png | 11.01KB | 5.83KB | ▼ 47.09% |
assets/img/Plugin-Password-Banner.png | 89.41KB | 38.44KB | ▼ 57.01% |
assets/img/Plugin-Banner-Love.png | 44.98KB | 17.50KB | ▼ 61.09% |