84% image-carousel-shortcode

Code Review | Image Carousel Shortcode

WordPress plugin Image Carousel Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: image-carousel-sh...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 2, 2016
  • Latest release: Feb 15, 2023
  • Number of updates: 10
  • Update frequency: every 245.1 days
  • Top authors: sazzadh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,231 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Image Carousel Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.29 ▼9.38
Dashboard /wp-admin3.33 ▲0.0248.41 ▼6.63
Posts /wp-admin/edit.php3.38 ▲0.0251.64 ▲1.91
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.27 ▼8.16
Media Library /wp-admin/upload.php3.25 ▲0.0237.87 ▲0.93

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Image Carousel Shortcode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲13914.02 ▼0.736.01 ▲4.1441.87 ▼1.57
Dashboard /wp-admin2,218 ▲185.80 ▼0.06100.15 ▼16.0039.19 ▼7.42
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0341.41 ▲3.0334.69 ▼0.46
Add New Post /wp-admin/post-new.php1,526 ▼017.75 ▲0.30684.77 ▲0.7951.86 ▼12.50
Media Library /wp-admin/upload.php1,394 ▼64.26 ▲0.0397.20 ▼9.7743.87 ▼3.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/image-carousel-shortcode/image-carousel-shortcode.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Requires at least: Invalid version format
Please take inspiration from this readme.txt

image-carousel-shortcode/image-carousel-shortcode.php 92% from 13 tests

"Image Carousel Shortcode" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin368 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS21120265
PHP11512101
JavaScript1002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/right-arrow.png2.30KB0.62KB▼ 73.29%
img/left-arrow.png2.30KB0.65KB▼ 71.86%