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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.89MB] [CPU: ▼135.41ms] Passed 4 tests
Analyzing server-side resources used by Custom Banners
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.91 | 53.98 ▲17.43 |
Dashboard /wp-admin | 4.04 ▲0.98 | 67.39 ▲13.86 |
Posts /wp-admin/edit.php | 4.10 ▲0.99 | 65.71 ▲13.99 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.67 | 83.79 ▼586.91 |
Media Library /wp-admin/upload.php | 3.98 ▲0.98 | 57.37 ▲21.64 |
Error /wp-admin/admin.php?page=custom_banners_pro_error_page | 3.95 | 52.04 |
Settings /wp-admin/edit.php?post_type=banner&page=custom-banners-settings-redirect | 3.85 | 49.09 |
Privacy Notice /wp-admin/admin.php?page=custom_banners_pro_privacy_notice | 3.95 | 55.52 |
Basic Options /wp-admin/admin.php?page=custom-banners-settings | 3.96 | 51.29 |
Theme Options /wp-admin/admin.php?page=custom-banners-themes | 3.96 | 54.16 |
Add New Banner /wp-admin/post-new.php?post_type=banner | 6.09 | 83.48 |
Upgrade To Pro /wp-admin/admin.php?page=custom-banners-upgrade-to-pro | 3.96 | 50.25 |
Help & Instructions /wp-admin/admin.php?page=custom-banners-help | 3.96 | 52.01 |
About Plugin /wp-admin/admin.php?page=custom-banners-settings_aloha | 3.99 | 50.28 |
Banners /wp-admin/edit.php?post_type=banner | 4.02 | 51.49 |
Server storage [IO: ▲3.30MB] [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: 135 new files
Database: no new tables, 3 new options
New WordPress options |
---|
widget_bannerlistwidget |
widget_rotatingbannerwidget |
widget_singlebannerwidget |
Browser metrics Passed 4 tests
Custom Banners: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,032 ▲460 | 17.02 ▲1.37 | 14.97 ▲3.24 | 46.89 ▼1.27 |
Dashboard /wp-admin | 3,176 ▲245 | 7.28 ▲1.17 | 153.14 ▼3.46 | 159.09 ▲13.04 |
Posts /wp-admin/edit.php | 2,887 ▲148 | 2.85 ▲0.13 | 84.72 ▲9.80 | 98.72 ▲1.59 |
Add New Post /wp-admin/post-new.php | 1,759 ▲76 | 22.45 ▲4.13 | 313.17 ▼90.73 | 105.12 ▼13.69 |
Media Library /wp-admin/upload.php | 1,951 ▲144 | 5.58 ▲0.54 | 148.26 ▼9.02 | 125.89 ▲9.75 |
Error /wp-admin/admin.php?page=custom_banners_pro_error_page | 1,156 | 2.67 | 56.47 | 89.24 |
Settings /wp-admin/edit.php?post_type=banner&page=custom-banners-settings-redirect | 1,596 | 3.02 | 95.89 | 101.74 |
Privacy Notice /wp-admin/admin.php?page=custom_banners_pro_privacy_notice | 1,168 | 2.66 | 62.31 | 86.22 |
Basic Options /wp-admin/admin.php?page=custom-banners-settings | 1,596 | 3.02 | 96.77 | 94.17 |
Theme Options /wp-admin/admin.php?page=custom-banners-themes | 1,902 | 3.67 | 105.65 | 141.07 |
Add New Banner /wp-admin/post-new.php?post_type=banner | 6,317 | 20.99 | 597.76 | 199.98 |
Upgrade To Pro /wp-admin/admin.php?page=custom-banners-upgrade-to-pro | 1,634 | 2.67 | 73.52 | 128.94 |
Help & Instructions /wp-admin/admin.php?page=custom-banners-help | 1,314 | 2.60 | 90.49 | 95.63 |
About Plugin /wp-admin/admin.php?page=custom-banners-settings_aloha | 1,841 | 2.79 | 80.38 | 117.32 |
Banners /wp-admin/edit.php?post_type=banner | 1,553 | 2.54 | 69.50 | 85.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 3 options in the database
- widget_bannerlistwidget
- widget_rotatingbannerwidget
- widget_singlebannerwidget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=banner
- > User deprecated in wp-includes/functions.php+5586
block_categories is deprecated since version 5.8.0! Use block_categories_all instead.
SRP 50% 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
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/custom-banners/include/tgmpa/tgmpa/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function menu_page_url() in wp-content/plugins/custom-banners/include/content/welcome.php:6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-banners/include/Custom_Banners_Update_Notices.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-banners/lib/widgets/banner_list_widget.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-banners/lib/widgets/single_banner_widget.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-banners/custom-banners.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-banners/lib/widgets/rotating_banner_widget.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-banners/blocks/banner-list.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-banners/blocks/rotating-banner.php:50
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/custom-banners/include/Custom_Banners_Update_Notices.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=custom-banners-upgrade-to-pro
- > Intervention (severe) in unknown
/wp-admin/post-new.php?post_type=banner - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Screenshot #13 (These are the Pro Themes.) image not found
custom-banners/custom-banners.php 92% from 13 tests
The entry point to "Custom Banners" version 3.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 215 characters long)
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
There were no executable files found in this plugin20,950 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 1,217 | 2,313 | 6,328 |
PO File | 17 | 1,449 | 1,993 | 4,842 |
CSS | 18 | 251 | 69 | 3,849 |
JSON | 1 | 0 | 0 | 2,601 |
JavaScript | 14 | 302 | 285 | 2,270 |
SVG | 1 | 0 | 0 | 685 |
Markdown | 2 | 67 | 0 | 330 |
HTML | 1 | 0 | 0 | 45 |
PHP code Passed 2 tests
An overview 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.39 |
Average class complexity | 39.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 302 | |
▷ Static methods | 5 | 1.66% |
▷ Public methods | 276 | 91.39% |
▷ Protected methods | 23 | 7.62% |
▷ Private methods | 3 | 0.99% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
24 PNG files occupy 0.74MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/standard_pink_left_arrow.png | 1.69KB | 0.74KB | ▼ 56.22% |
assets/img/lock.png | 1.28KB | 1.25KB | ▼ 2.52% |
assets/img/upgrade/contact-support.png | 24.79KB | 14.99KB | ▼ 39.54% |
assets/img/upgrade/banner-style-example.png | 153.44KB | 170.20KB | 0.00% |
assets/img/check-mark.png | 25.95KB | 14.17KB | ▼ 45.41% |