83% sc-bxslider

Code Review | SC BXSlider

WordPress plugin SC BXSlider scored83%from 54 tests.

About plugin

  • Plugin page: sc-bxslider
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Apr 30, 2015
  • Latest release: May 12, 2015
  • Number of updates: 13
  • Update frequency: every 0.9 days
  • Top authors: sergiuscosta (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,001 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.22ms] Passed 4 tests

A check of server-side resources used by SC BXSlider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.39 ▼3.13
Dashboard /wp-admin3.39 ▲0.0445.18 ▼13.27
Posts /wp-admin/edit.php3.51 ▲0.1547.41 ▼3.66
Add New Post /wp-admin/post-new.php5.97 ▲0.0890.43 ▼0.81
Media Library /wp-admin/upload.php3.31 ▲0.0835.45 ▲2.39
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=sc_bxslider_posttype3.3134.34
All Items /wp-admin/edit.php?post_type=sc_bxslider_posttype3.3635.12
Add New /wp-admin/post-new.php?post_type=sc_bxslider_posttype3.3744.96

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for SC BXSlider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲20113.97 ▼0.417.42 ▲5.5040.97 ▼5.03
Dashboard /wp-admin2,250 ▲685.81 ▲0.8996.01 ▼11.9139.35 ▼5.24
Posts /wp-admin/edit.php2,136 ▲472.01 ▼0.0340.00 ▲3.1637.94 ▲5.75
Add New Post /wp-admin/post-new.php1,561 ▲2823.36 ▲0.32598.37 ▼72.7349.68 ▼15.51
Media Library /wp-admin/upload.php1,438 ▲474.24 ▼0.0899.22 ▲3.2545.37 ▲2.34
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=sc_bxslider_posttype1,3512.1426.6929.39
All Items /wp-admin/edit.php?post_type=sc_bxslider_posttype1,1172.0031.1825.81
Add New /wp-admin/post-new.php?post_type=sc_bxslider_posttype1,7173.7965.2332.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sc-bxslider/index.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sc-bxslider/functions/customize.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sc-bxslider/functions/options/general.php:389
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sc-bxslider/functions/shortcode.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sc-bxslider/functions/posttype.php:45

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === sc-bxslider === )
  • Screenshots: Screenshot #1 (Slideshow) image missing
Please take inspiration from this readme.txt

sc-bxslider/index.php 85% from 13 tests

The primary PHP file in "SC BXSlider" version 2.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("sc-bxslider.php" instead of "index.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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,546 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript388543889
PHP511065376
Sass1340180
Markdown238056
JSON10034
Ruby14310
CSS10201

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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
images/controls.png2.74KB1.42KB▼ 48.29%
wtfpl-badge.png2.91KB1.80KB▼ 37.92%