Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/jquery-banner-rotate/jbr-widget.php+215
Function create_function() is deprecated
Server metrics [RAM: ▼14.53MB] [CPU: ▼2,654,259.02ms] Passed 4 tests
An overview of server-side resources used by jQuery Banner Rotate
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.34 ▼52.51 | 9.93 ▼10,616,846.05 |
Dashboard /wp-admin | 2.36 ▼0.99 | 9.77 ▼45.07 |
Posts /wp-admin/edit.php | 2.37 ▼1.04 | 9.10 ▼45.36 |
Add New Post /wp-admin/post-new.php | 2.36 ▼3.57 | 8.14 ▼99.58 |
Media Library /wp-admin/upload.php | 2.36 ▼0.91 | 8.38 ▼26.60 |
New Banner /wp-admin/admin.php?page=jbr-new-banner | 2.36 | 8.43 |
All Sliders /wp-admin/admin.php?page=jbr-all-sliders | 2.36 | 9.19 |
jQuery Banner Rotate /wp-admin/admin.php?page=jquery-banner-rotate | 2.36 | 8.72 |
All Banners /wp-admin/admin.php?page=jbr-all-banners | 2.36 | 8.92 |
New Slider /wp-admin/admin.php?page=jbr-new-slider | 2.36 | 9.74 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 50 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_banners |
wp_banner_sliders |
New WordPress options |
---|
jbr_hash_key |
jbr_active_notices |
widget_jbrwidget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by jQuery Banner Rotate
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,090 ▲329 | 14.90 ▲0.63 | 7.33 ▲5.43 | 39.79 ▼5.57 |
Dashboard /wp-admin | 2,370 ▲189 | 6.20 ▲0.43 | 119.31 ▲17.01 | 89.60 ▲44.15 |
Posts /wp-admin/edit.php | 2,326 ▲226 | 3.39 ▲1.42 | 53.55 ▲13.30 | 83.32 ▲45.89 |
Add New Post /wp-admin/post-new.php | 1,573 ▲47 | 23.69 ▲0.36 | 650.54 ▲2.83 | 173.57 ▲119.20 |
Media Library /wp-admin/upload.php | 1,454 ▲57 | 4.12 ▼0.07 | 87.51 ▼12.49 | 86.66 ▲42.17 |
New Banner /wp-admin/admin.php?page=jbr-new-banner | 1,130 | 3.04 | 41.23 | 63.51 |
All Sliders /wp-admin/admin.php?page=jbr-all-sliders | 1,036 | 3.02 | 39.30 | 62.04 |
jQuery Banner Rotate /wp-admin/admin.php?page=jquery-banner-rotate | 1,251 | 3.17 | 40.09 | 82.92 |
All Banners /wp-admin/admin.php?page=jbr-all-banners | 1,042 | 3.09 | 39.01 | 61.85 |
New Slider /wp-admin/admin.php?page=jbr-new-slider | 1,131 | 3.05 | 39.70 | 73.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/jquery-banner-rotate/jbr-widget.php+215
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- widget_jbrwidget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jbr-new-slider
- > Deprecated in wp-content/plugins/jquery-banner-rotate/jbr-widget.php+215
Function create_function() is deprecated
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jbr-new-slider
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in JBRWidget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/admin.php?page=jbr-new-banner
- > Notice in wp-content/plugins/jquery-banner-rotate/menus/class.jquerybannerrotatemenu.php+175
Undefined variable: banner
- 63 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jbr-new-slider
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 63 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jbr-new-slider
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
- > GET request to /wp-admin/admin.php?page=jbr-new-slider
- > Notice in wp-content/plugins/jquery-banner-rotate/menus/class.jquerybannerrotatemenu.php+262
Undefined variable: slider
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/jquery-banner-rotate/js/cycle/transition-plugins/transitions.php
- 20× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
require(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/jquery-banner-rotate/class/db/class.jbrslider.php on line 5
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/jquery-banner-rotate/js/cycle/transition-plugins/transitions.php on line 14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/jquery-banner-rotate/class/db/class.jbrbanner.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/jquery-banner-rotate/class/db/class.jbrslider.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function jbr_the_translate() in wp-content/plugins/jquery-banner-rotate/menus/banner/new.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/jquery-banner-rotate/jbr-shortcode.php:168
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jquery-banner-rotate/jbr-functions.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function jbr_the_translate() in wp-content/plugins/jquery-banner-rotate/menus/slider/new.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function jbr_hash_value() in wp-content/plugins/jquery-banner-rotate/menus/banner/edit.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jquery-banner-rotate/jbr-widget.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=jquery-banner-rotate
- > Network (severe)
wp-content/plugins/jquery-banner-rotate/css/banner-rotativo.css - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: date, shortcode, widget, rotate, banner...
jquery-banner-rotate/jquery-banner-rotate.php Passed 13 tests
Analyzing the main PHP file in "jQuery Banner Rotate" version 4.1
72 characters long description:
You can create Sliders with images that can have expiration date or not.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin4,374 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 19 | 372 | 128 | 2,208 |
PHP | 17 | 210 | 10 | 1,785 |
CSS | 6 | 34 | 1 | 214 |
PO File | 1 | 79 | 2 | 167 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.55% |
Functions | 16 | |
▷ Named functions | 16 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/tinymce-button.png | 1.96KB | 1.15KB | ▼ 41.26% |
img/logo.png | 0.70KB | 0.45KB | ▼ 35.79% |
img/controls.png | 2.08KB | 2.04KB | ▼ 1.55% |