89% carousel-slider

Code Review | Carousel Slider

WordPress plugin Carousel Slider scored 89% from 54 tests.

About plugin

  • Plugin page: carousel-slider
  • Plugin version: 2.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8
  • WordPress version: 5.8.1
  • First release: Jun 30, 2014
  • Latest release: Nov 4, 2021
  • Number of updates: 133
  • Update frequency: every 20.2 days
  • Top authors: sayful (100%)

Code review

54 tests

User reviews

138 reviews

Install metrics

40,000+ active / 576,126 total downloads


Plugin footprint 82% 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.11MB] [CPU: ▼140.97ms] Passed 4 tests

Server-side resources used by Carousel Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1837.38 ▲12.06
Dashboard /wp-admin3.16 ▲0.1148.92 ▲0.73
Posts /wp-admin/edit.php3.28 ▲0.1745.57 ▼1.20
Add New Post /wp-admin/post-new.php5.51 ▲0.0895.43 ▼568.88
Media Library /wp-admin/upload.php3.10 ▲0.1038.79 ▲5.46
Add New /wp-admin/post-new.php?post_type=carousels3.2556.47
All Sliders /wp-admin/edit.php?post_type=carousels3.1541.14
Settings /wp-admin/edit.php?post_type=carousels&page=settings3.0731.25
Documentation /wp-admin/edit.php?post_type=carousels&page=carousel-slider-documentation3.1043.56

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics 75% from 4 tests

An overview of browser requirements for Carousel Slider
Having an awesome user experience is important, so please improve the following
  • Script duration: Try to keep JavaScript execution under 1,500.00ms (currently 1,615.72ms on /wp-admin/edit.php?post_type=carousels&page=carousel-slider-documentation)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,739 ▲11616.03 ▲0.568.64 ▲0.7352.81 ▼2.55
Dashboard /wp-admin3,027 ▲945.89 ▼0.27146.44 ▼20.51119.07 ▼5.26
Posts /wp-admin/edit.php2,800 ▲642.70 ▲0.0166.62 ▼4.4496.82 ▲1.30
Add New Post /wp-admin/post-new.php1,735 ▲23718.48 ▼0.29404.20 ▲20.73127.13 ▲7.86
Media Library /wp-admin/upload.php1,868 ▲585.04 ▲0.04152.94 ▼13.52125.59 ▲4.01
Add New /wp-admin/post-new.php?post_type=carousels4,9896.53201.10114.90
All Sliders /wp-admin/edit.php?post_type=carousels1,4582.6467.7173.88
Settings /wp-admin/edit.php?post_type=carousels&page=settings1,1442.2261.44107.10
Documentation /wp-admin/edit.php?post_type=carousels&page=carousel-slider-documentation6,90254.841,615.72133.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_widget_carousel_slider

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 96% 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
6 plugin tags: product carousel, carousel, slider, woocommerce, image carousel...

carousel-slider/carousel-slider.php 92% from 13 tests

Analyzing the main PHP file in "Carousel Slider" version 2.0.3
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 331 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected6,125 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity12.22
▷ Minimum class complexity1.00
▷ Maximum class complexity78.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
▷ Abstract classes23.70%
▷ Concrete classes5296.30%
▷ Final classes11.92%
▷ Static methods12638.65%
▷ Public methods27684.66%
▷ Protected methods113.37%
▷ Private methods3911.96%
▷ Named functions00.00%
▷ Anonymous functions5100.00%
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin