10% creative-image-slider

Code Review | Creative Image Slider - Responsive Slider Plugin

WordPress plugin Creative Image Slider - Responsive Slider Plugin scored10%from 54 tests.

About plugin

  • Plugin page: creative-image-sl...
  • Plugin version: 2.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 15, 2014
  • Latest release: Jul 31, 2023
  • Number of updates: 249
  • Update frequency: every 13.0 days
  • Top authors: creative-solutions (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

500+ active /61,550 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/creative-image-slider/includes/install/install.sql.php+10
    Undefined variable: wpcis_db_version

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

This is a short check of server-side resources used by Creative Image Slider - Responsive Slider Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.10 ▼0.29
Dashboard /wp-admin3.33 ▲0.0350.03 ▼5.44
Posts /wp-admin/edit.php3.38 ▲0.0349.99 ▼4.48
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.34 ▼4.51
Media Library /wp-admin/upload.php3.25 ▲0.0338.50 ▲6.17
Sliders /wp-admin/admin.php?page=cis_sliders3.4936.18
Overview /wp-admin/admin.php?page=creativeimageslider3.2934.30
Items /wp-admin/admin.php?page=cis_items3.3539.05
Categories /wp-admin/admin.php?page=cis_categories3.3233.60

Server storage [IO: ▲2.19MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 295 new files
Database: 3 new tables, 8 new options
New tables
wp_cis_sliders
wp_cis_categories
wp_cis_images
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
wpcis_db_version
theysaidso_admin_options
widget_creativeimageslider_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Creative Image Slider - Responsive Slider Plugin: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲6314.47 ▲0.101.72 ▼0.3541.20 ▼2.21
Dashboard /wp-admin2,225 ▲375.80 ▲0.91101.79 ▼15.4381.86 ▲39.76
Posts /wp-admin/edit.php2,140 ▲512.26 ▲0.2433.57 ▼1.7130.31 ▼2.63
Add New Post /wp-admin/post-new.php1,544 ▲717.54 ▼5.89788.41 ▲122.1664.82 ▲1.15
Media Library /wp-admin/upload.php1,432 ▲474.15 ▼0.0197.21 ▼5.6079.19 ▲33.87
Sliders /wp-admin/admin.php?page=cis_sliders1,0932.3745.1133.85
Overview /wp-admin/admin.php?page=creativeimageslider1,0271.7726.8440.86
Items /wp-admin/admin.php?page=cis_items1,4213.6764.5272.73
Categories /wp-admin/admin.php?page=cis_categories1,0372.4446.2536.86

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 detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_creativeimageslider_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 22× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/creative-image-slider/includes/admin/overview.php
    • > /wp-content/plugins/creative-image-slider/includes/admin/item_submit.php
    • > /wp-content/plugins/creative-image-slider/includes/dictionary.php
    • > /wp-content/plugins/creative-image-slider/creativeimageslider.php
    • > /wp-content/plugins/creative-image-slider/includes/admin/sliders.php
    • > /wp-content/plugins/creative-image-slider/includes/admin/categories.php
    • > /wp-content/plugins/creative-image-slider/includes/admin/item.php
    • > /wp-content/plugins/creative-image-slider/includes/parser.php
    • > /wp-content/plugins/creative-image-slider/includes/admin/slider.php
    • > /wp-content/plugins/creative-image-slider/includes/display-functions.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=cis_categories
    • > Network (severe)
    wp-content/plugins/creative-image-slider/includes/js/options_functions.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% 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
5 plugin tags: image slider, slider, slideshow, wordpress slider, slider plugin

creative-image-slider/creativeimageslider.php 85% from 13 tests

The main PHP file in "Creative Image Slider - Responsive Slider Plugin" ver. 2.1.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("creative-image-slider.php" instead of "creativeimageslider.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected18,649 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript121,6679857,161
CSS193962946,225
PHP225841735,262
HTML1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
200 PNG files occupy 1.06MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/assets/images/arrows/cis_button_right43.png7.55KB3.56KB▼ 52.86%
includes/assets/images/arrows/cis_button_left42.png7.83KB3.56KB▼ 54.49%
includes/images/select2.png0.51KB0.33KB▼ 34.94%
includes/assets/images/arrows/cis_button_left10.png5.50KB2.04KB▼ 63.00%
includes/images/2glux.png3.46KB1.86KB▼ 46.16%