10% global-s-h-bxslider

Code Review | bxSlider for WordPress

WordPress plugin bxSlider for WordPress scored10%from 54 tests.

About plugin

  • Plugin page: global-s-h-bxslider
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 22, 2018
  • Latest release: Apr 12, 2023
  • Number of updates: 54
  • Update frequency: every 34.7 days
  • Top authors: kazukiyanamoto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /7,530 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.89MB] [CPU: ▼57.01ms] Passed 4 tests

A check of server-side resources used by bxSlider for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.374.64 ▼35.49
Dashboard /wp-admin2.12 ▼1.195.82 ▼48.71
Posts /wp-admin/edit.php2.12 ▼1.246.66 ▼43.31
Add New Post /wp-admin/post-new.php2.12 ▼3.775.65 ▼100.53
Media Library /wp-admin/upload.php2.12 ▼1.115.81 ▼31.74
WP bxSlider setting /wp-admin/options-general.php?page=WP_bxSlider_admin_menu2.127.34

Server storage [IO: ▲0.50MB] [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: 11 new files
Database: no new tables, 12 new options
New WordPress options
widget_recent-comments
bxslider_wp_slide_speed
bxslider_wp_slide_delay
bxslider_wp_slide_infiniteLoop
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
bxslider_wp_slide_size
db_upgraded
bxslider_wp_auto_start
...

Browser metrics Passed 4 tests

bxSlider for WordPress: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,043 ▲25714.84 ▲0.206.73 ▲4.6144.59 ▲3.90
Dashboard /wp-admin2,341 ▲1646.17 ▲0.49118.03 ▲26.0842.76 ▼7.03
Posts /wp-admin/edit.php2,263 ▲1633.32 ▲1.3448.72 ▲11.1031.52 ▼1.82
Add New Post /wp-admin/post-new.php1,548 ▲823.28 ▲5.23625.38 ▲3.7235.69 ▼12.79
Media Library /wp-admin/upload.php1,401 ▲14.21 ▲0.0584.79 ▼21.2944.93 ▼1.89
WP bxSlider setting /wp-admin/options-general.php?page=WP_bxSlider_admin_menu1,3955.2576.9961.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=WP_bxSlider_admin_menu
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
    • > GET request to /wp-admin/options-general.php?page=WP_bxSlider_admin_menu
    • > Notice in wp-content/plugins/global-s-h-bxslider/manage/admin.php+33
    Undefined index: BxsliderWp_save
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=WP_bxSlider_admin_menu
    • > Warning in wp-content/plugins/global-s-h-bxslider/manage/admin.php+145
    Use of undefined constant bxslider_wp_home_image_url1 - assumed 'bxslider_wp_home_image_url1' (this will throw an Error in a future version of PHP)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=WP_bxSlider_admin_menu
    • > Warning in wp-content/plugins/global-s-h-bxslider/manage/admin.php+168
    Use of undefined constant bxslider_wp_home_image_url2 - assumed 'bxslider_wp_home_image_url2' (this will throw an Error in a future version of PHP)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=WP_bxSlider_admin_menu
    • > Warning in wp-content/plugins/global-s-h-bxslider/manage/admin.php+192
    Use of undefined constant bxslider_wp_home_image_url3 - assumed 'bxslider_wp_home_image_url3' (this will throw an Error in a future version of PHP)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=WP_bxSlider_admin_menu
    • > Warning in wp-content/plugins/global-s-h-bxslider/manage/admin.php+214
    Use of undefined constant bxslider_wp_home_image_url4 - assumed 'bxslider_wp_home_image_url4' (this will throw an Error in a future version of PHP)
  • 20 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=WP_bxSlider_admin_menu
    • > Warning in wp-content/plugins/global-s-h-bxslider/manage/admin.php+442
    Use of undefined constant bxslider_wp_home_image_url - assumed 'bxslider_wp_home_image_url' (this will throw an Error in a future version of PHP)

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=WP_bxSlider_admin_menu
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=WP_bxSlider_admin_menu 387:4 Uncaught TypeError: jQuery(...) is not a function
    • > GET request to /wp-admin/options-general.php?page=WP_bxSlider_admin_menu
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=WP_bxSlider_admin_menu 450:4 Uncaught TypeError: jQuery(...) is not a function
    • > GET request to /wp-admin/options-general.php?page=WP_bxSlider_admin_menu
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=WP_bxSlider_admin_menu 513:4 Uncaught TypeError: jQuery(...) is not a function
    • > GET request to /wp-admin/options-general.php?page=WP_bxSlider_admin_menu
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=WP_bxSlider_admin_menu 576:4 Uncaught TypeError: jQuery(...) is not a function
    • > GET request to /wp-admin/options-general.php?page=WP_bxSlider_admin_menu
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/options-general.php?page=WP_bxSlider_admin_menu
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% 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 require attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === global-s-h-bxslider === )
Please take inspiration from this readme.txt

global-s-h-bxslider/bx-slider-for-wp.php 77% from 13 tests

The main PHP script in "bxSlider for WordPress" version 1.2.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 208 characters long)
  • Domain Path: The domain path folder was not found ("/languages/")
  • Main file name: The principal plugin file should be the same as the plugin slug ("global-s-h-bxslider.php" instead of "bx-slider-for-wp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,809 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31096001,183
PHP217196462
CSS1013164

PHP code Passed 2 tests

Analyzing 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.30
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.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 Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.39MB with 0.23MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bx/images/controls.png2.74KB1.42KB▼ 48.29%
screenshot-1.png333.72KB115.87KB▼ 65.28%
screenshot-2.png60.66KB22.52KB▼ 62.87%