83% my-wp-bxslider

Code Review | WP BxSlider

WordPress plugin WP BxSlider scored 83% from 54 tests.

About plugin

  • Plugin page: my-wp-bxslider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Sep 17, 2015
  • Latest release: Dec 12, 2016
  • Number of updates: 5
  • Update frequency: every 90.4 days
  • Top authors: Sohelwpexpert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,631 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.42ms] Passed 4 tests

An overview of server-side resources used by WP BxSlider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.87 ▼6.56
Dashboard /wp-admin3.35 ▲0.0446.70 ▼2.33
Posts /wp-admin/edit.php3.39 ▲0.0448.09 ▼1.34
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.76 ▼3.44
Media Library /wp-admin/upload.php3.27 ▲0.0436.66 ▲3.00
bxslider /wp-admin/edit.php?post_type=bxslider-eitems3.3235.95
Add New /wp-admin/post-new.php?post_type=bxslider-eitems3.3650.55
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=bxslider-eitems3.2638.96
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=bxslider-eitems3.2632.65

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
category_children
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP BxSlider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17513.62 ▼0.995.29 ▲3.3741.88 ▼11.82
Dashboard /wp-admin2,242 ▲545.85 ▼0.1899.03 ▼0.4038.89 ▼6.13
Posts /wp-admin/edit.php2,128 ▲392.02 ▲0.0040.01 ▲5.3734.71 ▲0.68
Add New Post /wp-admin/post-new.php1,547 ▲3323.44 ▲5.85658.91 ▲15.5657.70 ▲4.93
Media Library /wp-admin/upload.php1,421 ▲304.22 ▼0.0396.76 ▼3.2242.48 ▼0.75
bxslider /wp-admin/edit.php?post_type=bxslider-eitems1,1472.1030.0828.44
Add New /wp-admin/post-new.php?post_type=bxslider-eitems1,8233.8365.9831.89
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=bxslider-eitems1,4822.1528.5531.34
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=bxslider-eitems1,3492.1526.7029.72

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • category_children
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% 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 no errors were found, this is by no means 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 add_action() in wp-content/plugins/my-wp-bxslider/bxslider-min.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
  • Screenshots: These screenshots require images: #1 (How to use shortcode in editor.), #2 (Another demo.)
The official readme.txt is a good inspiration

my-wp-bxslider/bxslider-min.php 92% from 13 tests

The entry point to "WP BxSlider" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("my-wp-bxslider.php" instead of "bxslider-min.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected262 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS13622152
PHP1261581
JavaScript263429

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.03
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/controls.png2.74KB1.42KB▼ 48.29%
js/bx.png1.95KB1.12KB▼ 42.59%
js/controls.png2.74KB1.42KB▼ 48.29%
images/picto.png4.39KB3.34KB▼ 23.87%