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: ▼3.58ms] Passed 4 tests
A check of server-side resources used by Coronavirus (COVID-19) Notice Message
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.86 ▼0.42 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.94 ▼5.17 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.29 ▼0.38 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.45 ▼8.36 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.27 ▲2.72 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Coronavirus (COVID-19) Notice Message
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲113 | 13.49 ▼1.15 | 1.96 ▲0.28 | 42.56 ▲1.96 |
Dashboard /wp-admin | 2,254 ▲66 | 5.13 ▼0.80 | 111.91 ▲11.28 | 38.49 ▼4.22 |
Posts /wp-admin/edit.php | 2,139 ▲47 | 2.34 ▲0.29 | 41.21 ▲0.95 | 37.48 ▲1.38 |
Add New Post /wp-admin/post-new.php | 1,541 ▼1 | 17.63 ▼0.60 | 695.98 ▲94.59 | 37.52 ▼15.39 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.40 ▲0.13 | 99.76 ▲1.65 | 46.26 ▼0.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 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/coronavirus-covid-19-notice-message/coronavirus-covid-19-notice-message.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: covid-19, coronavirus banner, corona virus, coronavirus, coronavirus message...
coronavirus-covid-19-notice-message/coronavirus-covid-19-notice-message.php 92% from 13 tests
"Coronavirus (COVID-19) Notice Message" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 147 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected282 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 52 | 248 |
JavaScript | 2 | 1 | 9 | 22 |
CSS | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.68 |
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 | 10 | |
▷ Named functions | 10 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/location-top.png | 1.49KB | 0.37KB | ▼ 75.18% |
images/location-top-static.png | 1.68KB | 0.45KB | ▼ 73.00% |
images/location-bottom.png | 1.50KB | 0.37KB | ▼ 75.39% |
images/location-inline.png | 1.53KB | 0.42KB | ▼ 72.90% |
images/location-bottom-static.png | 1.71KB | 0.46KB | ▼ 73.15% |