84% wow-carousel-for-divi-lite

Code Review | Divi Carousel Lite - Image Carousel and Logo Carousel

WordPress plugin Divi Carousel Lite - Image Carousel and Logo Carousel scored84%from 54 tests.

About plugin

  • Plugin page: wow-carousel-for-...
  • Plugin version: 1.2.14
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 28, 2020
  • Latest release: Nov 24, 2023
  • Number of updates: 43
  • Update frequency: every 29.0 days
  • Top authors: divipeople (95.35%)badhonrocks (6.98%)

Code review

54 tests

User reviews

138 reviews

Install metrics

30,000+ active /274,069 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Divi Carousel Lite - Image Carousel and Logo Carousel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0750.82 ▲5.56
Dashboard /wp-admin3.34 ▼0.0047.95 ▼14.18
Posts /wp-admin/edit.php3.46 ▲0.1049.38 ▲3.21
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.14 ▼4.72
Media Library /wp-admin/upload.php3.27 ▲0.0437.57 ▲6.30

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 9 new options
New WordPress options
wdcl_activation_time
can_compress_scripts
has_wdcl
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
wdcl_active_version

Browser metrics Passed 4 tests

An overview of browser requirements for Divi Carousel Lite - Image Carousel and Logo Carousel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲19513.94 ▼0.779.66 ▲7.1042.60 ▼3.58
Dashboard /wp-admin2,232 ▲555.60 ▲0.0199.88 ▼0.2987.48 ▲42.83
Posts /wp-admin/edit.php2,144 ▲442.13 ▲0.1239.45 ▲2.0233.56 ▼2.98
Add New Post /wp-admin/post-new.php1,632 ▲10623.15 ▼0.40633.79 ▼36.0087.81 ▲31.28
Media Library /wp-admin/upload.php1,437 ▲404.15 ▼0.0598.48 ▼3.2392.00 ▲46.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • has_wdcl
    • theysaidso_admin_options
    • wdcl_active_version
    • wdcl_activation_time
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 10× 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/wow-carousel-for-divi-lite/includes/modules/ModulesCore/ModulesCore.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/wow-carousel-for-divi-lite/includes/WowDiviCarouselLite.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WDCL_Builder_Module' not found in wp-content/plugins/wow-carousel-for-divi-lite/includes/modules/TwitterFeedCarousel/TwitterFeedCarousel.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function TorqueCarousel\\add_filter() in wp-content/plugins/wow-carousel-for-divi-lite/plugin.php:55
    • > PHP Fatal error
      Uncaught Error: Class 'WDCL_Builder_Module' not found in wp-content/plugins/wow-carousel-for-divi-lite/includes/modules/LogoCarousel/LogoCarousel.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WDCL_Builder_Module' not found in wp-content/plugins/wow-carousel-for-divi-lite/includes/modules/ImageCarouselChild/ImageCarouselChild.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wow-carousel-for-divi-lite/includes/special-notices.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WDCL_Builder_Module' not found in wp-content/plugins/wow-carousel-for-divi-lite/includes/modules/LogoCarouselChild/LogoCarouselChild.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WDCL_Builder_Module' not found in wp-content/plugins/wow-carousel-for-divi-lite/includes/modules/ImageCarousel/ImageCarousel.php:2
    • > PHP Warning
      Use of undefined constant TC_PLUGIN_BASE - assumed 'TC_PLUGIN_BASE' (this will throw an Error in a future version of PHP) in wp-content/plugins/wow-carousel-for-divi-lite/plugin.php on line 35

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: divi builder, divi, divi module, divi theme, divi carousel

wow-carousel-for-divi-lite/wow-divi-carousel-lite.php 85% from 13 tests

The main PHP script in "Divi Carousel Lite - Image Carousel and Logo Carousel" version 1.2.14 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wow-carousel-for-divi-lite.php" instead of "wow-divi-carousel-lite.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected8,525 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP147143274,343
CSS11333421,824
JavaScript9133591,137
JSX614925566
PO File1225641481
SVG500156
XML10018

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity26.00
▷ Minimum class complexity1.00
▷ Maximum class complexity120.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods66
▷ Static methods913.64%
▷ Public methods5177.27%
▷ Protected methods1116.67%
▷ Private methods46.06%
Functions11
▷ Named functions218.18%
▷ Anonymous functions981.82%
Constants10
▷ Global constants660.00%
▷ Class constants440.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/imgs/admin/art1.png19.19KB8.74KB▼ 54.46%