78% carousel-anything

Code Review | Carousel Anything For WPBakery Page Builder - Touch Slider and Carousel

WordPress plugin Carousel Anything For WPBakery Page Builder - Touch Slider and Carousel scored 78% from 54 tests.

About plugin

  • Plugin page: carousel-anything
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Dec 15, 2018
  • Latest release: Jun 4, 2022
  • Number of updates: 42
  • Update frequency: every 30.2 days
  • Top authors: Labibahmed42 (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

4,000+ active / 24,663 total downloads

Benchmarks

Plugin footprint 83% from 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.05MB] [CPU: ▼4.31ms] Passed 4 tests

A check of server-side resources used by Carousel Anything For WPBakery Page Builder - Touch Slider and Carousel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.60 ▼3.94
Dashboard /wp-admin3.35 ▲0.0543.92 ▼3.22
Posts /wp-admin/edit.php3.47 ▲0.1146.34 ▼3.48
Add New Post /wp-admin/post-new.php5.93 ▲0.0582.91 ▼6.59
Media Library /wp-admin/upload.php3.28 ▲0.0535.17 ▲0.10

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Carousel Anything For WPBakery Page Builder - Touch Slider and Carousel
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5713.33 ▼0.991.65 ▼0.2740.50 ▼4.20
Dashboard /wp-admin2,220 ▲355.79 ▼0.0895.16 ▼5.7039.27 ▼7.99
Posts /wp-admin/edit.php2,099 ▲102.06 ▲0.0534.17 ▼8.4434.28 ▼2.68
Add New Post /wp-admin/post-new.php1,547 ▲1923.10 ▲4.64674.99 ▲63.2756.58 ▼2.33
Media Library /wp-admin/upload.php1,402 ▲204.21 ▼0.0193.42 ▼13.9643.33 ▼3.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/carousel-anything/includes/testimonial-templates/style2.php
    • > /wp-content/plugins/carousel-anything/includes/testimonial-templates/style3.php
    • > /wp-content/plugins/carousel-anything/includes/testimonial-templates/style1.php
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_tags() in wp-content/plugins/carousel-anything/includes/post-templates/style1.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_tags() in wp-content/plugins/carousel-anything/includes/post-templates/style3.php:2
    • > PHP Notice
      Undefined variable: wdo_test_text in wp-content/plugins/carousel-anything/includes/testimonial-templates/style2.php on line 12
    • > PHP Notice
      Undefined variable: wdo_test_text in wp-content/plugins/carousel-anything/includes/testimonial-templates/style3.php on line 4
    • > PHP Notice
      Undefined variable: avatar_url in wp-content/plugins/carousel-anything/includes/testimonial-templates/style2.php on line 4
    • > PHP Notice
      Undefined variable: wdo_test_text in wp-content/plugins/carousel-anything/includes/testimonial-templates/style1.php on line 7
    • > PHP Notice
      Undefined variable: avatar_url in wp-content/plugins/carousel-anything/includes/testimonial-templates/style1.php on line 4
    • > PHP Notice
      Undefined variable: wdo_author_name in wp-content/plugins/carousel-anything/includes/testimonial-templates/style1.php on line 9
    • > PHP Notice
      Undefined variable: wdo_author_name in wp-content/plugins/carousel-anything/includes/testimonial-templates/style3.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/carousel-anything/plugin.class.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

carousel-anything/index.php 85% from 13 tests

The main file in "Carousel Anything For WPBakery Page Builder - Touch Slider and Carousel" v. 2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("carousel-anything.php" instead of "index.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 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected8,910 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
CSS8501385,240
SVG2002,690
PHP149632978
JavaScript1052

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.27
Average class complexity3.71
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.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

All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/nav-icon.png1.48KB1.35KB▼ 8.59%
assets/css/owl.video.play.png4.86KB2.74KB▼ 43.61%
icons/admin-post-icon.png3.65KB1.92KB▼ 47.42%
icons/carousel-parent.png6.15KB2.96KB▼ 51.87%
icons/admin-video-icon.png2.92KB1.13KB▼ 61.23%