Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/useful-banner-manager/includes/widgets.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; UBM_Widget has a deprecated constructor
Server metrics [RAM: ▼2.35MB] [CPU: ▼344.99ms] Passed 4 tests
This is a short check of server-side resources used by Useful Banner Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.02 ▼1.49 | 5.15 ▼45.66 |
Dashboard /wp-admin | 2.04 ▼1.37 | 4.51 ▼27.62 |
Posts /wp-admin/edit.php | 2.04 ▼1.60 | 4.73 ▼31.51 |
Add New Post /wp-admin/post-new.php | 2.04 ▼4.93 | 4.60 ▼1,275.17 |
Media Library /wp-admin/upload.php | 2.04 ▼1.26 | 4.63 ▼20.42 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 41 new files
Database: 1 new table, 3 new options
New tables |
---|
wp_useful_banner_manager_banners |
New WordPress options |
---|
widget_ubm-banners-rotation |
ubm_version |
widget_ubm-banners |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Useful Banner Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,923 ▲181 | 16.62 ▲1.05 | 9.11 ▲3.23 | 2.11 ▼0.00 |
Dashboard /wp-admin | 2,912 ▲51 | 6.12 ▲0.02 | 116.23 ▼15.07 | 151.88 ▼11.84 |
Posts /wp-admin/edit.php | 2,708 ▲17 | 3.23 ▲0.00 | 60.91 ▼3.76 | 138.41 ▼3.47 |
Add New Post /wp-admin/post-new.php | 1,730 ▲58 | 21.79 ▲0.93 | 422.73 ▼25.74 | 164.56 ▲10.10 |
Media Library /wp-admin/upload.php | 1,718 ▲20 | 5.52 ▼0.02 | 140.63 ▼5.64 | 186.62 ▼6.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/useful-banner-manager/includes/widgets.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; UBM_Widget has a deprecated constructor
- Zombie tables were found after uninstall: 1 table
- wp_useful_banner_manager_banners
- Zombie WordPress options were found after uninstall: 3 options
- widget_ubm-banners-rotation
- ubm_version
- widget_ubm-banners
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/useful-banner-manager/tinymce/window.php
- 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/useful-banner-manager/includes/widgets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/useful-banner-manager/useful-banner-manager.php:27
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/useful-banner-manager/useful-banner-manager.php on line 27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/useful-banner-manager/includes/hooks.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/useful-banner-manager/banners.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Manage Banners)
useful-banner-manager/useful-banner-manager.php 92% from 13 tests
The main file in "Useful Banner Manager" v. 1.6.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)
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
Everything looks great! No dangerous files found in this plugin3,056 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 271 | 20 | 1,314 |
CSS | 6 | 48 | 92 | 1,195 |
PO File | 3 | 185 | 219 | 434 |
JavaScript | 4 | 27 | 4 | 113 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 20.33 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 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
16 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_228ef1_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-bg_diagonals-thick_18_b81900_40x40.png | 0.41KB | 0.15KB | ▼ 62.44% |
screenshot-1.png | 32.92KB | 15.49KB | ▼ 52.95% |
css/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.34KB | 0.16KB | ▼ 54.02% |
css/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 5.68KB | 1.83KB | ▼ 67.77% |