Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.54MB] [CPU: ▲0.37ms] Passed 4 tests
Server-side resources used by Random Banner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 39.04 ▼0.16 |
Dashboard /wp-admin | 3.87 ▲0.56 | 46.57 ▼0.96 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 53.15 ▲8.51 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 86.00 ▼1.20 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 36.89 ▲3.81 |
Support /wp-admin/admin.php?page=bc_random_banner_support | 3.73 | 42.53 |
Campaign (pro) /wp-admin/admin.php?page=bc_random_banner_campaign | 3.73 | 37.95 |
Random Banner /wp-admin/admin.php?page=bc_random_banner | 3.73 | 38.93 |
Settings /wp-admin/admin.php?page=bc_random_banner_option | 3.73 | 37.43 |
Statistics (pro) /wp-admin/admin.php?page=bc_random_banner_statistics | 3.73 | 37.98 |
Server storage [IO: ▲1.86MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: 3 new tables, 9 new options
New tables |
---|
wp_bc_random_banner_options |
wp_bc_random_banner_category |
wp_bc_random_banner |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
bc_random_banner_db_version |
db_upgraded |
bc_rb_payment_info |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_random_banner_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Random Banner
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲176 | 13.86 ▼0.49 | 8.74 ▲6.65 | 37.62 ▼5.94 |
Dashboard /wp-admin | 2,252 ▲75 | 5.69 ▲0.06 | 95.06 ▼6.56 | 39.49 ▼4.87 |
Posts /wp-admin/edit.php | 2,174 ▲74 | 2.06 ▲0.10 | 41.19 ▲4.81 | 37.42 ▲4.19 |
Add New Post /wp-admin/post-new.php | 6,277 ▲4,751 | 26.24 ▲3.57 | 910.47 ▲256.90 | 55.94 ▼1.18 |
Media Library /wp-admin/upload.php | 1,451 ▲54 | 4.23 ▲0.03 | 97.63 ▼5.12 | 40.16 ▼2.86 |
Support /wp-admin/admin.php?page=bc_random_banner_support | 1,366 | 3.56 | 50.20 | 82.41 |
Campaign (pro) /wp-admin/admin.php?page=bc_random_banner_campaign | 1,048 | 3.57 | 43.62 | 60.34 |
Random Banner /wp-admin/admin.php?page=bc_random_banner | 1,160 | 3.56 | 41.65 | 76.88 |
Settings /wp-admin/admin.php?page=bc_random_banner_option | 3,090 | 3.64 | 47.54 | 67.04 |
Statistics (pro) /wp-admin/admin.php?page=bc_random_banner_statistics | 1,074 | 3.63 | 40.58 | 66.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables detected upon uninstall: 3 tables
- wp_bc_random_banner_options
- wp_bc_random_banner_category
- wp_bc_random_banner
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_random_banner_widget
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- bc_rb_payment_info
- bc_random_banner_db_version
- theysaidso_admin_options
Smoke tests 25% 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/random-banner/include/models/constant.php
- > /wp-content/plugins/random-banner/include/ajax/request.php
- > /wp-content/plugins/random-banner/include/function/function.php
- > /wp-content/plugins/random-banner/include/controller/populate-content.php
- > /wp-content/plugins/random-banner/include/validation/random-banner.php
- > /wp-content/plugins/random-banner/include/controller/save-update-delete.php
- > /wp-content/plugins/random-banner/include/models/model.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'BC_RB_PLUGIN_DIR/install-uninstall.php' (include_path='.:/usr/share/php') in wp-content/plugins/random-banner/bc-rb-load.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/random-banner/include/widget/random-banner-widget.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/random-banner/include/update/upgrade.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/random-banner/include/view/admin-setting.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/random-banner/install-uninstall.php:40
- > PHP Warning
Use of undefined constant BC_RB_PLUGIN_DIR - assumed 'BC_RB_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/random-banner/bc-rb-load.php on line 5
- > PHP Warning
require_once(BC_RB_PLUGIN_DIR/install-uninstall.php): failed to open stream: No such file or directory in wp-content/plugins/random-banner/bc-rb-load.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/random-banner/random-banner.php:40
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=bc_random_banner_option
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=bc_random_banner_option 398 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/admin.php?page=bc_random_banner_option
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=bc_random_banner_option 436 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
random-banner/random-banner.php Passed 13 tests
"Random Banner" version 4.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
132 characters long description:
Random Banner WordPress plugin provides users with high level of flexibility to show image banner and script ads randomly on Widgets
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
Everything looks great! No dangerous files found in this plugin26,885 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 2,458 | 113 | 13,863 |
JavaScript | 6 | 2,064 | 938 | 9,286 |
PHP | 15 | 358 | 874 | 3,260 |
SVG | 1 | 0 | 0 | 288 |
PO File | 1 | 81 | 91 | 188 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 7.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 133 | |
▷ Named functions | 133 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/chat.png | 1.34KB | 1.09KB | ▼ 19.17% |
assets/images/paypal.png | 21.61KB | 7.46KB | ▼ 65.46% |
assets/images/tickets.png | 2.82KB | 2.56KB | ▼ 9.32% |
assets/images/rate.png | 1.91KB | 1.66KB | ▼ 13.43% |
assets/images/file_upload.png | 0.31KB | 0.37KB | 0.00% |