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
Installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼3.46ms] Passed 4 tests
Server-side resources used by Banner Slider for Advertisement
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.19 | 40.27 ▼4.43 |
Dashboard /wp-admin | 3.65 ▲0.35 | 50.20 ▲2.07 |
Posts /wp-admin/edit.php | 3.76 ▲0.41 | 49.98 ▲4.64 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 99.10 ▼11.65 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 36.31 ▲0.19 |
Plugin Settings /wp-admin/edit.php?post_type=wpwbs&page=wpwbs_settings | 3.55 | 38.79 |
Add Banner Slider /wp-admin/post-new.php?post_type=wpwbs | 3.60 | 46.84 |
Banner Slider /wp-admin/edit.php?post_type=wpwbs | 3.61 | 35.78 |
Server storage [IO: ▲0.81MB] [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: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_wpwbs_banners |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Banner Slider for Advertisement
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲82 | 13.29 ▼1.51 | 2.20 ▲0.19 | 38.57 ▼5.86 |
Dashboard /wp-admin | 2,236 ▲53 | 5.84 ▲0.91 | 96.01 ▼7.56 | 38.45 ▼4.54 |
Posts /wp-admin/edit.php | 2,136 ▲44 | 2.23 ▲0.25 | 40.17 ▲0.05 | 34.56 ▲0.40 |
Add New Post /wp-admin/post-new.php | 1,553 ▲10 | 18.43 ▲0.33 | 591.85 ▼41.83 | 53.04 ▼6.31 |
Media Library /wp-admin/upload.php | 1,431 ▲40 | 4.24 ▲0.03 | 98.71 ▼10.07 | 42.62 ▼0.49 |
Plugin Settings /wp-admin/edit.php?post_type=wpwbs&page=wpwbs_settings | 1,067 | 1.89 | 25.74 | 46.61 |
Add Banner Slider /wp-admin/post-new.php?post_type=wpwbs | 1,989 | 2.65 | 52.98 | 40.08 |
Banner Slider /wp-admin/edit.php?post_type=wpwbs | 1,088 | 2.19 | 30.58 | 29.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_wpwbs_banners
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/banner-slider-for-advertisement/admin/banners_posttype.php
- > /wp-content/plugins/banner-slider-for-advertisement/admin/plugin_settings/admin_general_settings.php
- > /wp-content/plugins/banner-slider-for-advertisement/includes/functions/banner_slider_functions.php
- > /wp-content/plugins/banner-slider-for-advertisement/includes/functions/banner_slider_widgets.php
- > /wp-content/plugins/banner-slider-for-advertisement/admin/banners_cats.php
- > /wp-content/plugins/banner-slider-for-advertisement/banner_slider.php
- > /wp-content/plugins/banner-slider-for-advertisement/admin/plugin_settings/admin_settings.php
- > /wp-content/plugins/banner-slider-for-advertisement/admin/plugin_settings/admin_settings_document.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
banner-slider-for-advertisement/banner_slider.php 77% from 13 tests
The main file in "Banner Slider for Advertisement" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("banner-slider-for-advertisement.php" instead of "banner_slider.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 185 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin5,947 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 254 | 405 | 3,803 |
PHP | 8 | 173 | 86 | 1,369 |
CSS | 2 | 6 | 69 | 524 |
PO File | 1 | 114 | 267 | 251 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 175)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 54.83 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 213.00 |
Average method complexity | 8.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 175.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 | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.42MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screens/01_admin_banner_list.png | 122.30KB | 36.21KB | ▼ 70.39% |
screens/04_tags_banner_settings.png | 23.24KB | 14.09KB | ▼ 39.37% |
screens/03_category_banner_settings.png | 23.99KB | 14.58KB | ▼ 39.20% |
admin/plugin_settings/images/header-php-settings.png | 38.57KB | 22.52KB | ▼ 41.61% |
screens/05_plugin_banner_settings.png | 49.01KB | 24.43KB | ▼ 50.15% |