72% bxslider-integration

Code Review | bxSlider integration for WordPress

WordPress plugin bxSlider integration for WordPress scored72%from 54 tests.

About plugin

  • Plugin page: bxslider-integration
  • Plugin version: 1.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Apr 1, 2013
  • Latest release: Mar 2, 2015
  • Number of updates: 57
  • Update frequency: every 12.3 days
  • Top authors: vprat (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

800+ active /37,085 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼1.32ms] Passed 4 tests

An overview of server-side resources used by bxSlider integration for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1538.06 ▲0.47
Dashboard /wp-admin3.48 ▲0.1844.15 ▼4.38
Posts /wp-admin/edit.php3.60 ▲0.2444.93 ▲1.51
Add New Post /wp-admin/post-new.php6.07 ▲0.1884.79 ▼2.87
Media Library /wp-admin/upload.php3.41 ▲0.1835.81 ▲1.57
bxSlider integration /wp-admin/options-general.php?page=bxsg-settings3.3731.98

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for bxSlider integration for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14413.84 ▼0.758.46 ▲6.9042.92 ▼7.74
Dashboard /wp-admin2,199 ▲255.59 ▼0.0980.67 ▼8.0337.93 ▼4.04
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0443.86 ▲8.5345.79 ▲13.11
Add New Post /wp-admin/post-new.php1,536 ▲823.27 ▲0.26673.71 ▼7.3956.59 ▼1.38
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.01104.00 ▲8.2247.50 ▲0.96
bxSlider integration /wp-admin/options-general.php?page=bxsg-settings1,1512.0030.4256.88

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=bxsg-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=bxsg-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/bxslider-integration/src/php/slider-shortcode.view.php
    • > /wp-content/plugins/bxslider-integration/src/php/slider-shortcode.script.php
  • 33× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: hide_carousel in wp-content/plugins/bxslider-integration/src/php/gallery-shortcode.script.php on line 24
    • > PHP Notice
      Undefined variable: gallery_id in wp-content/plugins/bxslider-integration/src/php/gallery-shortcode.view.php on line 24
    • > PHP Warning
      Use of undefined constant BXSG_INCLUDES_DIR - assumed 'BXSG_INCLUDES_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/bxslider-integration/src/php/theme-utils.class.php on line 19
    • > PHP Notice
      Undefined variable: adaptive_height in wp-content/plugins/bxslider-integration/src/php/slider-shortcode.script.php on line 24
    • > PHP Notice
      Undefined variable: gallery_id in wp-content/plugins/bxslider-integration/src/php/gallery-shortcode.script.php on line 22
    • > PHP Notice
      Undefined variable: hide_carousel in wp-content/plugins/bxslider-integration/src/php/gallery-shortcode.script.php on line 38
    • > PHP Notice
      Undefined variable: gallery_id in wp-content/plugins/bxslider-integration/src/php/gallery-shortcode.script.php on line 43
    • > PHP Notice
      Undefined variable: auto_start in wp-content/plugins/bxslider-integration/src/php/slider-shortcode.script.php on line 25
    • > PHP Notice
      Undefined variable: extra_options in wp-content/plugins/bxslider-integration/src/php/slider-shortcode.script.php on line 29
    • > PHP Fatal error
      require_once(): Failed opening required 'BXSG_INCLUDES_DIR/settings.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/bxslider-integration/src/php/plugin.class.php on line 19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes: The official readme.txt might help

bxslider-integration/bxslider-integration.php 92% from 13 tests

The entry point to "bxSlider integration for WordPress" version 1.7.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin3,650 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript584559996
PHP11213350978
PO File5453726854
Markdown1950483
LESS33626165
CSS23425149
JSON10025

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity7.80
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods2982.86%
▷ Protected methods00.00%
▷ Private methods617.14%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/controls.png2.74KB1.42KB▼ 48.29%
libs/bxslider/images/controls.png2.74KB1.42KB▼ 48.29%