94% ultimate-carousel-for-elementor

Code Review | Ultimate Carousel For Elementor

WordPress plugin Ultimate Carousel For Elementor scored 94% from 54 tests.

About plugin

  • Plugin page: ultimate-carousel...
  • Plugin version: 2.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7.2
  • WordPress version: 5.8.1
  • First release: Apr 30, 2020
  • Latest release: Jun 26, 2021
  • Number of updates: 29
  • Update frequency: every 14.6 days
  • Top authors: nasir179125 (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

8,000+ active / 23,453 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼149.31ms] Passed 4 tests

An overview of server-side resources used by Ultimate Carousel For Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0241.79 ▲4.71
Dashboard /wp-admin3.08 ▲0.0347.58 ▼3.17
Posts /wp-admin/edit.php3.13 ▲0.0341.79 ▼8.12
Add New Post /wp-admin/post-new.php5.44 ▲0.0199.37 ▼590.66
Media Library /wp-admin/upload.php3.02 ▲0.0239.06 ▲5.42

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Carousel For Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,725 ▲12915.81 ▲0.327.03 ▼1.1749.38 ▼2.52
Dashboard /wp-admin2,992 ▲585.93 ▼0.03145.25 ▼9.12121.18 ▲2.87
Posts /wp-admin/edit.php2,762 ▲232.69 ▼0.1167.34 ▼5.8294.40 ▲9.56
Add New Post /wp-admin/post-new.php1,699 ▲1618.78 ▲0.59406.52 ▼18.37115.30 ▼1.66
Media Library /wp-admin/upload.php1,830 ▲235.02 ▲0.02152.82 ▼19.52125.48 ▲1.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ultimate-carousel-for-elementor/widgets/advanced-carousel.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% 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
8 plugin tags: video slider, testimonial carousel, ultimate carousel for elementor, video carousel, elementor...

ultimate-carousel-for-elementor/uae.php 92% from 13 tests

The main PHP file in "Ultimate Carousel For Elementor" ver. 2.1.7 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ultimate-carousel-for-elementor.php" instead of "uae.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,288 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2853482,184
PHP3105162679
CSS26720425

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for 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.13
Average class complexity8.00
▷ Minimum class complexity6.00
▷ Maximum class complexity10.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1386.67%
▷ Protected methods213.33%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin