78% image-carousel-addon-for-beaver-builder

Code Review | Image Carousel Addon for Beaver Builder

WordPress plugin Image Carousel Addon for Beaver Builder scored 78% from 54 tests.

About plugin

  • Plugin page: image-carousel-ad...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.5-5.0.3
  • WordPress version: 6.3.1
  • First release: Aug 20, 2018
  • Latest release: Jan 30, 2019
  • Number of updates: 7
  • Update frequency: every 23.4 days
  • Top authors: deryck (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 2,676 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.81ms] Passed 4 tests

This is a short check of server-side resources used by Image Carousel Addon for Beaver Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.00 ▼0.82
Dashboard /wp-admin3.31 ▲0.0144.07 ▼4.04
Posts /wp-admin/edit.php3.36 ▲0.0149.36 ▼2.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.21 ▼15.74
Media Library /wp-admin/upload.php3.24 ▲0.0134.91 ▼0.58

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Image Carousel Addon for Beaver Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.45 ▼0.931.65 ▼0.0344.18 ▼4.97
Dashboard /wp-admin2,206 ▲185.91 ▲0.00113.23 ▲0.3843.59 ▼4.76
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0542.69 ▲1.3734.72 ▼3.20
Add New Post /wp-admin/post-new.php1,533 ▼923.04 ▼0.09715.82 ▲34.9952.41 ▼4.85
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.1999.39 ▼18.1245.29 ▼3.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/image-carousel-addon-for-beaver-builder/modules/image-carousel/includes/frontend.php
    • > /wp-content/plugins/image-carousel-addon-for-beaver-builder/modules/image-carousel/includes/frontend.js.php
    • > /wp-content/plugins/image-carousel-addon-for-beaver-builder/modules/image-carousel/includes/frontend.css.php
  • 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/image-carousel-addon-for-beaver-builder/modules/image-carousel/includes/frontend.js.php on line 12
    • > PHP Notice
      Trying to get property 'move_slides' of non-object in wp-content/plugins/image-carousel-addon-for-beaver-builder/modules/image-carousel/includes/frontend.js.php on line 10
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/image-carousel-addon-for-beaver-builder/modules/image-carousel/includes/frontend.js.php on line 6
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/image-carousel-addon-for-beaver-builder/modules/image-carousel/includes/frontend.js.php on line 10
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/image-carousel-addon-for-beaver-builder/modules/image-carousel/includes/frontend.css.php on line 2
    • > PHP Notice
      Trying to get property 'speed' of non-object in wp-content/plugins/image-carousel-addon-for-beaver-builder/modules/image-carousel/includes/frontend.js.php on line 6
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/image-carousel-addon-for-beaver-builder/modules/image-carousel/includes/frontend.js.php on line 5
    • > PHP Notice
      Trying to get property 'auto_play' of non-object in wp-content/plugins/image-carousel-addon-for-beaver-builder/modules/image-carousel/includes/frontend.js.php on line 4
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/image-carousel-addon-for-beaver-builder/modules/image-carousel/includes/frontend.js.php on line 3
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/image-carousel-addon-for-beaver-builder/modules/image-carousel/includes/frontend.js.php on line 8

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 93% 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
6 plugin tags: beaver builder, image carousel, beaver builder image carousel, beaver builder add ons, beaver addons...

image-carousel-addon-for-beaver-builder/bb-image-carousel.php 85% from 13 tests

"Image Carousel Addon for Beaver Builder" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("image-carousel-addon-for-beaver-builder.php" instead of "bb-image-carousel.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 detected463 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP62584289
PO File14960114
JavaScript3134236
CSS472224

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods583.33%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin