83% b-slider

Code Review | B Slider - Slider for your block editor

WordPress plugin B Slider - Slider for your block editor scored83%from 54 tests.

About plugin

  • Plugin page: b-slider
  • Plugin version: 1.1.11
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 15, 2022
  • Latest release: Nov 24, 2023
  • Number of updates: 65
  • Update frequency: every 6.7 days
  • Top authors: btechnologies (96.92%)abuhayat (4.62%)

Code review

54 tests

User reviews

7 reviews

Install metrics

5,000+ active /51,710 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2038.10 ▼5.60
Dashboard /wp-admin3.51 ▲0.2048.45 ▲0.31
Posts /wp-admin/edit.php3.62 ▲0.2645.08 ▼0.34
Add New Post /wp-admin/post-new.php6.12 ▲0.2387.93 ▼7.58
Media Library /wp-admin/upload.php3.43 ▲0.2038.97 ▲6.73
B Slider /wp-admin/admin.php?page=b-slider3.3937.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,510 ▼1,25211.97 ▼2.791.46 ▼0.1233.08 ▼11.23
Dashboard /wp-admin2,198 ▲215.63 ▼0.0288.21 ▼3.1246.54 ▲0.88
Posts /wp-admin/edit.php2,107 ▲41.97 ▼0.0539.70 ▲1.4032.76 ▲2.07
Add New Post /wp-admin/post-new.php6,214 ▲4,68826.98 ▲3.36982.17 ▲369.9838.29 ▼15.12
Media Library /wp-admin/upload.php1,394 ▼94.16 ▼0.05102.66 ▲5.6841.19 ▲0.24
B Slider /wp-admin/admin.php?page=b-slider7982.3853.4530.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

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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript18226441,077
PHP1212438612
JSON400356
PO File2121262273
Sass3115184
CSS751951

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 code0.28
Average class complexity8.86
▷ Minimum class complexity3.00
▷ Maximum class complexity19.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods48
▷ Static methods36.25%
▷ Public methods4695.83%
▷ Protected methods00.00%
▷ Private methods24.17%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/patterns/bsb-vertical.png174.98KB191.04KB0.00%
assets/images/patterns/bsb-image-indicators-right.png184.22KB201.27KB0.00%
assets/images/patterns/bsb-image-slider.png254.64KB275.29KB0.00%
assets/images/patterns/bsb-full-width-slider.png326.15KB354.80KB0.00%
bplugins_sdk/dist/assets/images/shield_success.png3.47KB3.61KB0.00%