Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.88MB] [CPU: ▼34.14ms] Passed 4 tests
This is a short check of server-side resources used by Banner Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.08 | 38.16 ▼3.55 |
Dashboard /wp-admin | 3.06 ▼0.24 | 22.17 ▼28.00 |
Posts /wp-admin/edit.php | 3.06 ▼0.29 | 23.77 ▼20.89 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.82 | 22.78 ▼77.66 |
Media Library /wp-admin/upload.php | 3.06 ▼0.16 | 24.44 ▼10.02 |
Manage Banners /wp-admin/admin.php?page=aj_manage_banners | 3.06 | 25.07 |
Slider Option /wp-admin/admin.php?page=aj_slider_option | 3.06 | 23.12 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_banner |
New WordPress options |
---|
widget_recent-posts |
aj_slideshow_height |
aj_slideshow_width |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Banner Slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.20 ▼1.18 | 1.75 ▲0.03 | 42.58 ▼8.04 |
Dashboard /wp-admin | 2,236 ▲51 | 6.02 ▲0.20 | 106.37 ▲4.93 | 40.58 ▲1.19 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 1.98 ▼0.20 | 36.02 ▲0.83 | 31.09 ▼8.61 |
Add New Post /wp-admin/post-new.php | 1,541 ▲7 | 23.40 ▲0.25 | 679.53 ▲50.07 | 49.49 ▲0.56 |
Media Library /wp-admin/upload.php | 1,412 ▲30 | 4.19 ▼0.02 | 99.00 ▲0.63 | 46.29 ▲3.69 |
Manage Banners /wp-admin/admin.php?page=aj_manage_banners | 1,810 | 3.07 | 49.42 | 45.54 |
Slider Option /wp-admin/admin.php?page=aj_slider_option | 882 | 2.21 | 24.03 | 24.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_banner
- The uninstall procedure has failed, leaving 8 options in the database
- aj_slideshow_width
- widget_recent-posts
- aj_slideshow_height
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 21 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=aj_slider_option
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=aj_manage_banners
- > Notice in wp-content/plugins/banner-slider/banner_slider.php+125
Undefined index: task
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=aj_manage_banners
- > Notice in wp-content/plugins/banner-slider/banner_slider.php+169
Undefined index: mode
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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/banner-slider/banner_slider.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=aj_manage_banners
- > Network (severe)
wp-content/plugins/banner_slider/jquery-1.3.2.min.js - Failed to load resource: the server responded with a status of 404 (Not Found)
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
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (2.)
banner-slider/banner_slider.php 92% from 13 tests
The main file in "Banner Slider" v. 2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("banner-slider.php" instead of "banner_slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected879 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 123 | 129 | 521 |
JavaScript | 2 | 36 | 67 | 358 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Screenshot_2.png | 21.72KB | 12.26KB | ▼ 43.56% |
Screenshot_1.png | 11.06KB | 4.35KB | ▼ 60.64% |