Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/sidebar-image-banner-ads-widget/sidebar_image_banner_ads.php+288
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼57.24ms] Passed 4 tests
An overview of server-side resources used by Sidebar Image Banner Ads Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.44 ▼38.95 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.48 ▼65.87 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 9.75 ▼40.59 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 7.06 ▼83.56 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.91 ▼28.21 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_banner |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Sidebar Image Banner Ads Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.15 ▼1.22 | 1.77 ▼0.07 | 43.57 ▲0.15 |
Dashboard /wp-admin | 2,225 ▲25 | 5.90 ▲0.94 | 109.06 ▼41.11 | 43.34 ▼6.89 |
Posts /wp-admin/edit.php | 2,121 ▲42 | 2.25 ▲0.19 | 39.93 ▲4.63 | 42.88 ▲8.74 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.07 ▲5.53 | 655.60 ▼26.80 | 55.38 ▲3.06 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.23 ▲0.02 | 95.86 ▼9.46 | 43.51 ▼2.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/sidebar-image-banner-ads-widget/sidebar_image_banner_ads.php+288
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_banner
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/sidebar-image-banner-ads-widget/sidebar_image_banner_ads.php:16
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Screenshots: Add images for these screenshots: #1 (plugin search listing), #2 (plugin_dashboard_listing.png), #3 (sidebar widget settings), #4 (advance configuration of the sidebar image plugin)
sidebar-image-banner-ads-widget/sidebar_image_banner_ads.php 92% from 13 tests
"Sidebar Image Banner Ads Widget" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("sidebar-image-banner-ads-widget.php" instead of "sidebar_image_banner_ads.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin259 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 49 | 35 | 214 |
CSS | 1 | 5 | 4 | 36 |
JavaScript | 1 | 0 | 4 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 7.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
previewbackground.png | 0.41KB | 0.27KB | ▼ 34.20% |
advanced_configuration.png | 46.73KB | 14.38KB | ▼ 69.21% |
plugin-dashboard.png | 28.37KB | 8.58KB | ▼ 69.75% |
plugin-listing.png | 61.68KB | 19.06KB | ▼ 69.10% |
widget-sidebar.png | 100.49KB | 31.05KB | ▼ 69.10% |