84% image-carousel

Code Review | Image Carousel

WordPress plugin Image Carousel scored84%from 54 tests.

About plugin

  • Plugin page: image-carousel
  • Plugin version: 1.0.0.39
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.3
  • WordPress version: 6.3.1
  • First release: Aug 21, 2015
  • Latest release: Aug 9, 2023
  • Number of updates: 104
  • Update frequency: every 28.0 days
  • Top authors: GhozyLab (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

2,000+ active /99,263 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.19MB] [CPU: ▼2.98ms] Passed 4 tests

An overview of server-side resources used by Image Carousel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2447.31 ▲9.49
Dashboard /wp-admin3.48 ▲0.1745.66 ▼5.19
Posts /wp-admin/edit.php3.59 ▲0.2345.74 ▼2.52
Add New Post /wp-admin/post-new.php6.09 ▲0.2081.87 ▼8.15
Media Library /wp-admin/upload.php3.40 ▲0.1738.07 ▲3.93

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Image Carousel
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18113.51 ▼0.868.47 ▲6.6946.59 ▲3.31
Dashboard /wp-admin2,218 ▲305.80 ▲0.9096.78 ▼22.1143.03 ▼1.55
Posts /wp-admin/edit.php2,101 ▲122.04 ▲0.0434.10 ▼3.1836.10 ▲1.89
Add New Post /wp-admin/post-new.php6,422 ▲4,88927.36 ▲4.13945.88 ▲262.5768.12 ▲3.34
Media Library /wp-admin/upload.php1,400 ▲154.40 ▲0.2899.17 ▼0.9542.84 ▲0.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 take a closer look at the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/image-carousel/inc/icp-metabox.php
    • > /wp-content/plugins/image-carousel/image-carousel.php
    • > /wp-content/plugins/image-carousel/inc/functions/icp-functions.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: image carousel, image gallery, block carousel, gallery, image...

image-carousel/image-carousel.php Passed 13 tests

The main PHP file in "Image Carousel" ver. 1.0.0.39 adds more information about the plugin and also serves as the entry point for this plugin
89 characters long description:
Touch enabled Wordpress plugin that lets you create a beautiful responsive image carousel

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
No dangerous file extensions were detected9,537 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
CSS78751474,670
PO File86406801,802
PHP106903671,708
JavaScript52025881,357

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity27.20
▷ Minimum class complexity4.00
▷ Maximum class complexity96.00
Average method complexity7.55
▷ Minimum method complexity1.00
▷ Maximum method complexity91.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods20
▷ Static methods525.00%
▷ Public methods1890.00%
▷ Protected methods210.00%
▷ Private methods00.00%
Functions39
▷ Named functions39100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/images/icp-icon.png2.96KB0.27KB▼ 90.75%
css/images/controls.png2.74KB1.42KB▼ 48.29%
css/images/controls_white.png4.79KB1.42KB▼ 70.44%
inc/images/info.png2.01KB1.62KB▼ 19.37%
inc/images/carousel-pro.png92.14KB35.46KB▼ 61.52%