Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.24ms] Passed 4 tests
Server-side resources used by BW Coronavirus Banner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.02 | 31.48 ▼3.89 |
Dashboard /wp-admin | 3.38 ▲0.07 | 43.96 ▼3.99 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 46.57 ▼0.39 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 91.71 ▼16.70 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.98 ▲6.74 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for BW Coronavirus Banner
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲196 | 13.91 ▼0.21 | 8.21 ▲6.55 | 38.68 ▲0.12 |
Dashboard /wp-admin | 2,239 ▲62 | 5.77 ▲0.09 | 88.34 ▲2.89 | 89.60 ▲45.99 |
Posts /wp-admin/edit.php | 2,156 ▲59 | 2.29 ▲0.33 | 40.34 ▲5.56 | 35.83 ▲1.46 |
Add New Post /wp-admin/post-new.php | 1,725 ▲199 | 22.77 ▼0.23 | 655.37 ▼14.86 | 33.66 ▼15.69 |
Media Library /wp-admin/upload.php | 1,450 ▲53 | 4.47 ▲0.26 | 100.05 ▼1.67 | 74.51 ▲28.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function BW\\Covid19\\BannerDisplay\\add_filter() in wp-content/plugins/bw-coronavirus-banner/includes/banner.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function BW\\Covid19\\BannerDisplay\\add_filter() in wp-content/plugins/bw-coronavirus-banner/includes/banner.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function BW\\Covid19\\BannerDisplay\\add_filter() in wp-content/plugins/bw-coronavirus-banner/includes/banner.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bw-coronavirus-banner/includes/user/banner.php:7
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please a description for screenshot #5 in bw-coronavirus-banner/assets to your readme.txt
bw-coronavirus-banner/bw-coronavirus-banner.php Passed 13 tests
The principal PHP file in "BW Coronavirus Banner" v. 2.0.3 is loaded by WordPress automatically on each request
74 characters long description:
Options to add a banner of your choice to your WordPress site in Botswana.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin667 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 162 | 117 | 333 |
CSS | 2 | 42 | 0 | 289 |
JavaScript | 6 | 5 | 3 | 34 |
Markdown | 1 | 10 | 0 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were 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 | 4 | |
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 | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/bw_flag.png | 1.57KB | 0.91KB | ▼ 41.83% |