77% bx-carousel-ultimate

Code Review | Bx Carousel Ultimate

WordPress plugin Bx Carousel Ultimate scored 77% from 54 tests.

About plugin

  • Plugin page: bx-carousel-ultimate
  • Plugin version: v1.1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Apr 23, 2016
  • Latest release: Apr 23, 2016
  • Number of updates: 16
  • Update frequency: N/A
  • Top authors: bootstrapgrid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 970 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼1.29ms] Passed 4 tests

An overview of server-side resources used by Bx Carousel Ultimate
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.00 ▼3.69
Dashboard /wp-admin3.42 ▲0.1150.57 ▲4.24
Posts /wp-admin/edit.php3.47 ▲0.1152.65 ▲6.06
Add New Post /wp-admin/post-new.php6.00 ▲0.1187.27 ▼8.97
Media Library /wp-admin/upload.php3.34 ▲0.1237.30 ▲3.26
Carousel Catagories /wp-admin/edit-tags.php?taxonomy=bx_carousel_cata&post_type=bx-carousel3.3333.08
Bx Carousel Items /wp-admin/edit.php?post_type=bx-carousel3.3839.21
Carousel Catagories /wp-admin/edit-tags.php?taxonomy=bx_carousel_cata3.3332.66
Add New /wp-admin/post-new.php?post_type=bx-carousel3.4752.32

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Bx Carousel Ultimate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,982 ▲24713.79 ▼0.958.04 ▲6.2043.60 ▼6.34
Dashboard /wp-admin2,258 ▲705.10 ▼0.80106.05 ▼0.1744.43 ▼1.33
Posts /wp-admin/edit.php2,177 ▲882.06 ▲0.0637.72 ▼5.5434.01 ▼2.05
Add New Post /wp-admin/post-new.php1,565 ▲3117.76 ▼5.34653.90 ▼26.5849.11 ▼3.03
Media Library /wp-admin/upload.php1,449 ▲614.20 ▼0.0498.42 ▼7.7344.29 ▼0.32
Carousel Catagories /wp-admin/edit-tags.php?taxonomy=bx_carousel_cata&post_type=bx-carousel1,3172.2227.4029.01
Bx Carousel Items /wp-admin/edit.php?post_type=bx-carousel1,1282.0434.5331.91
Carousel Catagories /wp-admin/edit-tags.php?taxonomy=bx_carousel_cata1,3172.2228.0428.93
Add New /wp-admin/post-new.php?post_type=bx-carousel2,4247.94170.4475.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/bx-carousel-ultimate/inc/custom-posts-shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bx-carousel-ultimate/inc/bx-custom-post.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bx-carousel-ultimate/bx-functions.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bx-carousel-ultimate/inc/bx-tynemce.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=bx-carousel
    • > Network (severe)
    wp-content/plugins/bx-carousel-ultimate/css/owl.transitions.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #2, #3, #4, #5, #6, #0 in bx-carousel-ultimate/assets to your readme.txt
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

bx-carousel-ultimate/bx-functions.php 77% from 13 tests

The principal PHP file in "Bx Carousel Ultimate" v. v1.1... is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 282 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bx-carousel-ultimate.php" instead of "bx-functions.php")
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "v1.1...")

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
Good job! No executable or dangerous file extensions detected6,595 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS7544203,120
JavaScript54979382,060
SVG200943
PHP43683472

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/css/icon/icon.png3.03KB0.35KB▼ 88.50%
inc/css/icon/owl-logo.png13.38KB4.10KB▼ 69.35%