78% background-slider-master

Code Review | Background Slider Master

WordPress plugin Background Slider Master scored78%from 54 tests.

About plugin

  • Plugin page: background-slider...
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 9, 2015
  • Latest release: Oct 17, 2018
  • Number of updates: 30
  • Update frequency: every 37.9 days
  • Top authors: devcon1 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active /27,374 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼5.87ms] Passed 4 tests

Analyzing server-side resources used by Background Slider Master
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1643.74 ▲0.27
Dashboard /wp-admin3.56 ▲0.2556.14 ▲6.86
Posts /wp-admin/edit.php3.62 ▲0.2652.96 ▼0.03
Add New Post /wp-admin/post-new.php6.09 ▲0.2085.41 ▼23.09
Media Library /wp-admin/upload.php3.41 ▲0.1737.71 ▼0.61
Settings /wp-admin/admin.php?page=bsm_settings_menu3.4036.93
Background Slide Sets /wp-admin/edit.php?post_type=bsm-gallery-slides3.4742.04

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-comments
bsm_slider_delay_settings_field
bsm_easing_option_duration_settings_field
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Background Slider Master
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,984 ▲22314.87 ▲0.323.01 ▲1.2742.93 ▼2.72
Dashboard /wp-admin2,390 ▲2136.21 ▲0.54113.70 ▲20.4675.92 ▲33.67
Posts /wp-admin/edit.php2,318 ▲2183.45 ▲1.4752.91 ▲16.0474.71 ▲37.01
Add New Post /wp-admin/post-new.php6,276 ▲4,73925.91 ▲2.79918.67 ▲250.5741.94 ▼20.82
Media Library /wp-admin/upload.php1,455 ▲524.18 ▼0.0988.45 ▼10.0886.54 ▲40.16
Settings /wp-admin/admin.php?page=bsm_settings_menu1,2453.1141.0068.15
Background Slide Sets /wp-admin/edit.php?post_type=bsm-gallery-slides1,2793.5746.7867.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% 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 everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/background-slider-master/admin/partials/menu-page-bsm-settings.php:34

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=bsm-gallery-slides
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/background-slider-master/admin/js/background-slider-master-admin.js?ver=1.0.1:16:31)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=bsm-gallery-slides
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: full screen slider gallery, thumbnail gallery, background slider, responsive background slider, multi page background slider...

background-slider-master/background-slider-master.php 92% from 13 tests

"Background Slider Master" version 2.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 460 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,551 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11154485828
JavaScript25125404
CSS41516319

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.57
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods50
▷ Static methods24.00%
▷ Public methods4590.00%
▷ Protected methods00.00%
▷ Private methods510.00%
Functions3
▷ Named functions3100.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

PNG files should be compressed to save space and minimize bandwidth usage
22 PNG files occupy 1.09MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png381.76KB120.61KB▼ 68.41%
public/assets/toolbar_fs_icon-default.png1.88KB1.21KB▼ 35.90%
public/assets/o-toolbar_n_icon.png0.61KB0.44KB▼ 28.66%
screenshot-3.png259.32KB99.95KB▼ 61.46%
admin/assets/admin-icon.png3.39KB0.74KB▼ 78.19%