83% image-carousel-divi

Code Review | Image Carousel Module for Divi

WordPress plugin Image Carousel Module for Divi scored 83% from 54 tests.

About plugin

  • Plugin page: image-carousel-divi
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 19, 2020
  • Latest release: Jun 3, 2023
  • Number of updates: 23
  • Update frequency: every 43.0 days
  • Top authors: themeythemes (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

7,000+ active / 15,696 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.97ms] Passed 4 tests

Analyzing server-side resources used by Image Carousel Module for Divi
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.91 ▼0.96
Dashboard /wp-admin3.31 ▲0.0145.88 ▼3.65
Posts /wp-admin/edit.php3.36 ▲0.0048.07 ▲0.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.44 ▼9.82
Media Library /wp-admin/upload.php3.23 ▲0.0034.28 ▼1.44

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Image Carousel Module for Divi
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.66 ▼0.704.83 ▲3.1244.35 ▲0.52
Dashboard /wp-admin2,206 ▲185.91 ▲0.0196.78 ▼19.4038.22 ▼9.39
Posts /wp-admin/edit.php2,086 ▼01.99 ▲0.0040.07 ▲4.4733.84 ▲2.27
Add New Post /wp-admin/post-new.php1,533 ▼123.29 ▼0.03628.14 ▼11.5454.43 ▼3.57
Media Library /wp-admin/upload.php1,388 ▼34.14 ▼0.0895.48 ▲3.2141.61 ▲1.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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
Please fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/image-carousel-divi/includes/modules/DiviImageCarousel/DiviImageCarousel.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/image-carousel-divi/includes/LwpImageCarousel.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-carousel-divi/lwp-image-carousel.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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
These attributes need to be fixed: Please take inspiration from this readme.txt

image-carousel-divi/lwp-image-carousel.php 85% from 13 tests

The principal PHP file in "Image Carousel Module for Divi" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("image-carousel-divi.php" instead of "lwp-image-carousel.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
Success! There were no dangerous files found in this plugin1,299 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP411055829
Markdown12120453
SVG11013
CSS2002
JavaScript2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity19.50
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity5.62
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions4
▷ Named functions4100.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
There are no PNG files in this plugin