84% bx-image-slider

Code Review | Bx Image slider

WordPress plugin Bx Image slider scored84%from 54 tests.

About plugin

  • Plugin page: bx-image-slider
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Aug 10, 2015
  • Latest release: Dec 1, 2015
  • Number of updates: 19
  • Update frequency: every 6.1 days
  • Top authors: AnjitVishwakarma (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,576 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.01MB] [CPU: ▼3.02ms] Passed 4 tests

A check of server-side resources used by Bx Image slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.01 ▲2.65
Dashboard /wp-admin3.31 ▲0.0148.72 ▼7.85
Posts /wp-admin/edit.php3.36 ▲0.0151.61 ▲3.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.08 ▼8.42
Media Library /wp-admin/upload.php3.24 ▲0.0141.35 ▲1.55

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Bx Image slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲4713.26 ▼1.133.24 ▲1.2344.47 ▲5.56
Dashboard /wp-admin2,232 ▲295.82 ▲0.95118.64 ▲11.7485.61 ▲44.42
Posts /wp-admin/edit.php2,114 ▲141.98 ▼0.0138.29 ▲0.4337.67 ▲0.51
Add New Post /wp-admin/post-new.php1,536 ▲523.01 ▼0.43718.68 ▲87.4166.47 ▼16.45
Media Library /wp-admin/upload.php1,411 ▲144.14 ▼0.07104.11 ▼6.3791.90 ▲46.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bx-image-slider/bxslider.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: slider, bx slider

bx-image-slider/bxslider.php 92% from 13 tests

This is the main PHP file of "Bx Image slider" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bx-image-slider.php" instead of "bxslider.php")

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 plugin1,078 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript270469810
CSS13422148
PHP17511120

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
ico.png0.58KB0.66KB0.00%
images/controls.png2.74KB1.42KB▼ 48.29%