Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▲0.76ms] Passed 4 tests
Analyzing server-side resources used by Slider by BestWebSoft
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 44.87 ▲2.18 |
Dashboard /wp-admin | 3.48 ▲0.17 | 56.83 ▼3.86 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 58.00 ▲9.52 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 95.75 ▼2.31 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 43.98 ▲7.01 |
Server storage [IO: ▲6.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 138 new files
Database: 4 new tables, 8 new options
New tables |
---|
wp_sldr_category |
wp_sldr_slider |
wp_sldr_slide |
wp_sldr_relation |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
sldr_options |
db_upgraded |
widget_recent-posts |
bstwbsftwppdtplgns_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Slider by BestWebSoft
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,020 ▲249 | 13.98 ▼0.59 | 11.38 ▲9.37 | 47.52 ▲6.94 |
Dashboard /wp-admin | 2,318 ▲130 | 4.91 ▼0.95 | 103.25 ▼4.31 | 43.23 ▲4.91 |
Posts /wp-admin/edit.php | 2,208 ▲116 | 2.27 ▲0.25 | 38.07 ▼0.95 | 36.87 ▲1.44 |
Add New Post /wp-admin/post-new.php | 1,630 ▲111 | 23.57 ▲0.24 | 680.87 ▲65.34 | 66.74 ▲13.84 |
Media Library /wp-admin/upload.php | 1,503 ▲115 | 4.24 ▲0.08 | 113.55 ▲7.67 | 49.48 ▲5.01 |
Slider Categories /wp-admin/slider-categories.php | 26 | 0.44 | 0.10 | 14.88 |
Add New /wp-admin/slider-new.php | 26 | 0.44 | 0.11 | 7.01 |
Global Settings /wp-admin/slider-settings.php | 26 | 0.44 | 0.08 | 7.83 |
Sliders /wp-admin/slider.php | 26 | 0.44 | 0.07 | 6.62 |
BWS Panel /wp-admin/slider.php?page=sldr-bws-panel | 26 | 0.44 | 0.09 | 6.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/slider-bws/slider-bws.php on line 286
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/slider-bws/slider-bws.php on line 286
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/slider-bws/slider-bws.php on line 286
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/slider-bws/includes/class-sldr-settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-bws/bws_menu/class-bws-settings.php:1452
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/slider-bws/bws_menu/product_list.php:9
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/slider-categories.php
- > Network (severe)
wp-admin/slider-categories.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/slider-new.php
- > Network (severe)
wp-admin/slider-new.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/slider-settings.php
- > Network (severe)
wp-admin/slider-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/slider.php
- > Network (severe)
wp-admin/slider.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/slider.php?page=sldr-bws-panel
- > Network (severe)
wp-admin/slider.php?page=sldr-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Slider in the front-end.), #2 (Edit Slider page.), #3 (Edit Slider Image Info.), #4 (Slider Global Settings page.), #5 (Slider Separate Settings page.)
slider-bws/slider-bws.php Passed 13 tests
"Slider by BestWebSoft" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
61 characters long description:
Simple and easy to use plugin adds a slider to your web site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin26,426 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 10 | 3,619 | 5,284 | 7,992 |
CSS | 14 | 237 | 341 | 6,475 |
PHP | 9 | 660 | 912 | 6,043 |
JavaScript | 19 | 1,288 | 2,476 | 5,766 |
SVG | 4 | 0 | 0 | 150 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 48.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.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 | 52 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 88.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 11.54% |
Functions | 87 | |
▷ Named functions | 87 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
65 PNG files occupy 4.39MB with 2.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-icons_888888_256x240.png | 6.88KB | 4.20KB | ▼ 38.90% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.31KB | 0.18KB | ▼ 39.81% |
images/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |
screenshot-5.png | 102.70KB | 37.26KB | ▼ 63.72% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.26KB | 0.11KB | ▼ 56.06% |