84% carousel-for-divi

Code Review | Carousel for Divi

WordPress plugin Carousel for Divi scored84%from 54 tests.

About plugin

  • Plugin page: carousel-for-divi
  • Plugin version: 1.2.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Aug 4, 2022
  • Latest release: Jul 24, 2023
  • Number of updates: 17
  • Update frequency: every 20.9 days
  • Top authors: danielvoelk (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /2,491 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
Install script ran successfully

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

An overview of server-side resources used by Carousel for Divi
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.64 ▼11.42
Dashboard /wp-admin3.32 ▼0.0349.15 ▼17.33
Posts /wp-admin/edit.php3.37 ▲0.0150.99 ▲3.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.80 ▲3.14
Media Library /wp-admin/upload.php3.24 ▲0.0135.06 ▼2.06

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Carousel for Divi: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲15113.76 ▼0.858.52 ▲6.3242.90 ▼10.44
Dashboard /wp-admin2,206 ▲155.77 ▲0.8998.95 ▼14.1838.80 ▼5.00
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0039.57 ▲1.5234.87 ▼0.93
Add New Post /wp-admin/post-new.php1,533 ▲523.26 ▲4.93586.24 ▼56.5260.72 ▲10.92
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.1096.84 ▼13.7742.27 ▼2.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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 | 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/carousel-for-divi/carousel-for-divi.php:33

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 93% from 29 tests

readme.txt Passed 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
2 plugin tags: divi theme, carousel

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

Analyzing the main PHP file in "Carousel for Divi" version 1.2.6
The following require your attention:
  • Requires PHP: Required version does not match the one declared in readme.txt ("5.6" instead of "7.2")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.5" instead of "4.9")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin133 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1273196
PHP1202736
JavaScript10101

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected