83% bslider

Code Review | bSlider - WP Slider

WordPress plugin bSlider - WP Slider scored 83% from 54 tests.

About plugin

  • Plugin page: bslider
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-4.6
  • WordPress version: 6.3.1
  • First release: Jun 30, 2016
  • Latest release: Aug 25, 2016
  • Number of updates: 3
  • Update frequency: every 18.7 days
  • Top authors: djerba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 718 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.17ms] Passed 4 tests

A check of server-side resources used by bSlider - WP Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.00 ▼11.04
Dashboard /wp-admin3.34 ▲0.0352.31 ▲2.24
Posts /wp-admin/edit.php3.39 ▲0.0347.93 ▼1.10
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.25 ▼9.93
Media Library /wp-admin/upload.php3.26 ▲0.0334.67 ▲1.38
bSlider /wp-admin/options-general.php?page=bslider-main-menu3.2330.81

Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
bslider

Browser metrics Passed 4 tests

Checking browser requirements for bSlider - WP Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲10013.72 ▼0.661.97 ▲0.2445.74 ▼9.65
Dashboard /wp-admin2,215 ▲274.86 ▼0.92102.19 ▼16.7337.38 ▼22.48
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0335.36 ▼3.2137.23 ▲1.32
Add New Post /wp-admin/post-new.php1,535 ▼223.33 ▲0.30591.09 ▼47.4290.75 ▲28.73
Media Library /wp-admin/upload.php1,397 ▲124.31 ▲0.0599.43 ▼5.7241.41 ▼2.73
bSlider /wp-admin/options-general.php?page=bslider-main-menu8382.0327.5725.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • bslider
    • widget_recent-posts

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 everything seems fine, this is not 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bslider/bSlider/bSlider.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Demo), #2 (Settings)
You can take inspiration from this readme.txt

bslider/index.php 92% from 13 tests

Analyzing the main PHP file in "bSlider - WP Slider" version 1.1
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 ("bslider.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin371 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS250179
PHP2422152
JavaScript13040

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
3 PNG files occupy 0.68MB with 0.44MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png672.99KB176.35KB▼ 73.80%
screenshot-2.png18.86KB8.18KB▼ 56.61%
bSlider/images/32.png4.88KB1.76KB▼ 64.03%