Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼3.30ms] Passed 4 tests
This is a short check of server-side resources used by B Slider - Slider for your block editor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 38.10 ▼5.60 |
Dashboard /wp-admin | 3.51 ▲0.20 | 48.45 ▲0.31 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 45.08 ▼0.34 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 87.93 ▼7.58 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 38.97 ▲6.73 |
B Slider /wp-admin/admin.php?page=b-slider | 3.39 | 37.08 |
Server storage [IO: ▲4.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 73 new files
Database: no new tables, 7 new options
New WordPress options |
---|
bspro-redirect |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for B Slider - Slider for your block editor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,510 ▼1,252 | 11.97 ▼2.79 | 1.46 ▼0.12 | 33.08 ▼11.23 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.02 | 88.21 ▼3.12 | 46.54 ▲0.88 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.97 ▼0.05 | 39.70 ▲1.40 | 32.76 ▲2.07 |
Add New Post /wp-admin/post-new.php | 6,214 ▲4,688 | 26.98 ▲3.36 | 982.17 ▲369.98 | 38.29 ▼15.12 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.16 ▼0.05 | 102.66 ▲5.68 | 41.19 ▲0.24 |
B Slider /wp-admin/admin.php?page=b-slider | 798 | 2.38 | 53.45 | 30.07 |
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 does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- bspro-redirect
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'BSDK' not found in wp-content/plugins/b-slider/bplugins_sdk/inc/Base/Activate.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function can_use_premium_feature() on null in wp-content/plugins/b-slider/custom-post.php:7
- > PHP Fatal error
Uncaught Error: Class 'BSDK' not found in wp-content/plugins/b-slider/bplugins_sdk/inc/Base/License.php:3
- > PHP Warning
Use of undefined constant BSB_PLUGIN_VERSION - assumed 'BSB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/b-slider/dist/script.asset.php on line 5
- > PHP Warning
Use of undefined constant BSB_PLUGIN_VERSION - assumed 'BSB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/b-slider/dist/editor.asset.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Requires at least: Invalid plugin version format
b-slider/index.php 85% from 13 tests
Analyzing the main PHP file in "B Slider - Slider for your block editor" version 1.1.11
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("b-slider.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,553 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 18 | 226 | 44 | 1,077 |
PHP | 12 | 124 | 38 | 612 |
JSON | 4 | 0 | 0 | 356 |
PO File | 2 | 121 | 262 | 273 |
Sass | 3 | 11 | 5 | 184 |
CSS | 7 | 5 | 19 | 51 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.86 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 3 | 6.25% |
▷ Public methods | 46 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.17% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
10 compressed PNG files occupy 2.36MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/patterns/bsb-vertical.png | 174.98KB | 191.04KB | 0.00% |
assets/images/patterns/bsb-image-indicators-right.png | 184.22KB | 201.27KB | 0.00% |
assets/images/patterns/bsb-image-slider.png | 254.64KB | 275.29KB | 0.00% |
assets/images/patterns/bsb-full-width-slider.png | 326.15KB | 354.80KB | 0.00% |
bplugins_sdk/dist/assets/images/shield_success.png | 3.47KB | 3.61KB | 0.00% |