77% image-slider-widget

Code Review | Image Slider

WordPress plugin Image Slider scored77%from 54 tests.

About plugin

  • Plugin page: image-slider-widget
  • Plugin version: 1.1.125
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Nov 26, 2014
  • Latest release: Aug 9, 2023
  • Number of updates: 369
  • Update frequency: every 8.6 days
  • Top authors: GhozyLab (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

7,000+ active /1,619,347 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.41MB] [CPU: ▼0.59ms] 75% from 4 tests

An overview of server-side resources used by Image Slider
Please have a look at the following items
  • CPU: Total CPU usage should be kept under 500.00ms (currently 1,101.74ms on /wp-admin/edit.php?post_type=easyimageslider&page=ewic-premium-plugins)
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1940.29 ▲1.01
Dashboard /wp-admin3.84 ▲0.5049.71 ▼13.20
Posts /wp-admin/edit.php3.89 ▲0.5450.98 ▲5.67
Add New Post /wp-admin/post-new.php6.37 ▲0.4993.34 ▲4.16
Media Library /wp-admin/upload.php3.70 ▲0.4743.62 ▲9.48
Free Install Plugins /wp-admin/edit.php?post_type=easyimageslider&page=ewic-free-plugins3.80522.34
UPGRADE to PRO /wp-admin/edit.php?post_type=easyimageslider&page=ewic-comparison3.6838.17
Image Slider (Lite) Changelog /wp-admin/edit.php?post_type=easyimageslider&page=ewic-changelog3.7234.95
Free Themes /wp-admin/edit.php?post_type=easyimageslider&page=ewic-free-themes3.77610.51
What's NewNEW /wp-admin/edit.php?post_type=easyimageslider&page=ewic-whats-new3.771,269.77
Sliders /wp-admin/edit.php?post_type=easyimageslider3.7540.33
Premium Plugins /wp-admin/edit.php?post_type=easyimageslider&page=ewic-premium-plugins3.771,101.74
Global Settings /wp-admin/edit.php?post_type=easyimageslider&page=ewic-settings-page3.6734.68
Getting started with Image Slider (Lite) /wp-admin/edit.php?post_type=easyimageslider&page=ewic-getting-started3.6733.38
Add New Slider /wp-admin/post-new.php?post_type=easyimageslider3.8468.50

Server storage [IO: ▲1.35MB] [DB: ▲0.03MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 162 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_ewic-widget
ewic-settings-automatic_update
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Image Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲13913.48 ▼0.877.97 ▲6.0242.29 ▲2.12
Dashboard /wp-admin2,252 ▲725.71 ▲0.2081.84 ▼9.6576.82 ▲34.02
Posts /wp-admin/edit.php2,154 ▲542.02 ▲0.0234.44 ▼2.1435.70 ▼1.79
Add New Post /wp-admin/post-new.php6,496 ▲4,96127.69 ▲9.51837.34 ▲233.12156.50 ▲83.71
Media Library /wp-admin/upload.php1,451 ▲544.25 ▲0.0692.89 ▼17.4883.78 ▲36.09
Free Install Plugins /wp-admin/edit.php?post_type=easyimageslider&page=ewic-free-plugins1,4711.7932.4552.14
UPGRADE to PRO /wp-admin/edit.php?post_type=easyimageslider&page=ewic-comparison1,6091.6624.9463.30
Image Slider (Lite) Changelog /wp-admin/edit.php?post_type=easyimageslider&page=ewic-changelog2,3721.8526.7752.99
Free Themes /wp-admin/edit.php?post_type=easyimageslider&page=ewic-free-themes9342.0627.4243.52
What's NewNEW /wp-admin/edit.php?post_type=easyimageslider&page=ewic-whats-new9691.7825.1142.73
Sliders /wp-admin/edit.php?post_type=easyimageslider1,1291.9635.8433.19
Premium Plugins /wp-admin/edit.php?post_type=easyimageslider&page=ewic-premium-plugins9651.7229.9044.79
Global Settings /wp-admin/edit.php?post_type=easyimageslider&page=ewic-settings-page8781.7025.7426.53
Getting started with Image Slider (Lite) /wp-admin/edit.php?post_type=easyimageslider&page=ewic-getting-started1,4739.87278.1990.56
Add New Slider /wp-admin/post-new.php?post_type=easyimageslider2,3844.2489.67112.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-comments
    • widget_recent-posts
    • ewic-settings-automatic_update
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_ewic-widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/image-slider-widget/easy-slider-widget-lite.php
    • > /wp-content/plugins/image-slider-widget/inc/tinymce_plugin/register_mce_button.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-slider-widget/inc/ewic-metaboxes.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/image-slider-widget/inc/ewic-shortcode.php:70
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/image-slider-widget/inc/ewic-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-slider-widget/inc/functions/ewic-functions.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-slider-widget/inc/ewic-tinymce.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-slider-widget/inc/ewic-frontend.php:8

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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt might help

image-slider-widget/easy-slider-widget-lite.php 85% from 13 tests

Analyzing the main PHP file in "Image Slider" version 1.1.125
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("image-slider-widget.php" instead of "easy-slider-widget-lite.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 280 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin11,832 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
PO File121,5261,6674,660
PHP171,0253973,104
CSS192542082,013
JavaScript163521941,807
SVG200248

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.38
Average class complexity9.00
▷ Minimum class complexity5.00
▷ Maximum class complexity16.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions68
▷ Named functions6798.53%
▷ Anonymous functions11.47%
Constants17
▷ Global constants17100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
58 PNG files occupy 0.31MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/prettyphoto/images/prettyPhoto/default/sprite_next.png1.33KB0.39KB▼ 70.69%
css/prettyphoto/images/prettyPhoto/dark_rounded/sprite.png3.98KB2.56KB▼ 35.79%
inc/tinymce_plugin/ewic-cp-icon.png3.43KB1.01KB▼ 70.47%
css/prettyphoto/images/prettyPhoto/dark_square/btnPrevious.png1.41KB1.19KB▼ 15.74%
css/prettyphoto/images/prettyPhoto/light_rounded/btnPrevious.png1.41KB1.19KB▼ 15.74%