62% bigboss-slider

Code Review | Bigboss Slider

WordPress plugin Bigboss Slider scored 62% from 54 tests.

About plugin

  • Plugin page: bigboss-slider
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Mar 25, 2016
  • Latest release: May 15, 2019
  • Number of updates: 35
  • Update frequency: every 32.7 days
  • Top authors: bulbulbigboss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 808 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼1.24MB] [CPU: ▼45.16ms] Passed 4 tests

A check of server-side resources used by Bigboss Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7211.80 ▼26.50
Dashboard /wp-admin2.77 ▼0.5314.44 ▼34.64
Posts /wp-admin/edit.php2.78 ▼0.5813.85 ▼36.07
Add New Post /wp-admin/post-new.php2.77 ▼3.1117.25 ▼83.44
Media Library /wp-admin/upload.php2.78 ▼0.4515.55 ▼20.39
Add new Bigboss slides /wp-admin/post-new.php?post_type=bigboss_slider2.7813.88
All bigboss slides /wp-admin/edit.php?post_type=bigboss_slider2.7820.39

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Bigboss Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲17413.64 ▼0.796.07 ▲4.1237.40 ▼6.76
Dashboard /wp-admin2,249 ▲614.85 ▼1.01104.37 ▼4.1836.96 ▼0.75
Posts /wp-admin/edit.php2,132 ▲642.16 ▲0.1536.84 ▼0.6034.73 ▲1.84
Add New Post /wp-admin/post-new.php1,569 ▲3523.28 ▲0.11625.62 ▼70.1447.67 ▼38.59
Media Library /wp-admin/upload.php1,431 ▲404.23 ▼0.0698.37 ▼10.1741.72 ▼2.81
Add new Bigboss slides /wp-admin/post-new.php?post_type=bigboss_slider2,1927.57169.7764.85
All bigboss slides /wp-admin/edit.php?post_type=bigboss_slider1,1051.9831.2529.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/bigboss-slider/bigboss-slider.php+35
    Use of undefined constant              - assumed '            ' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=bigboss_slider
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/bigboss-slider/bigboss-slider.php+35
    Use of undefined constant              - assumed '            ' (this will throw an Error in a future version of PHP)

SRP 0% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bigboss-slider/display.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/bigboss-slider/bigboss_slider_setting.php:78
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bigboss-slider/bigboss-slider.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bigboss-slider/display.php:69

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 on the user side

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
These attributes need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can take inspiration from this readme.txt

bigboss-slider/bigboss-slider.php 92% from 13 tests

The main file in "Bigboss Slider" v. 2.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)

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
There were no executable files found in this plugin5,087 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,2886254,684
PHP315541403

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.29MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot1.png72.87KB30.23KB▼ 58.52%
screenshot2.png73.07KB29.30KB▼ 59.90%
screenshots2.png73.07KB29.30KB▼ 59.90%
screenshots1.png72.87KB30.23KB▼ 58.52%