88% impressive-slider-made-easy

Code Review | Impressive Slider Made Easy

WordPress plugin Impressive Slider Made Easy scored 88% from 54 tests.

About plugin

  • Plugin page: impressive-slider...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.9.1
  • WordPress version: 5.9.2
  • First release: Dec 29, 2015
  • Latest release: Dec 27, 2017
  • Number of updates: 10
  • Update frequency: every 73.0 days
  • Top authors: nimeshrmr (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 3,873 total downloads

Benchmarks

Plugin footprint Passed 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.16MB] [CPU: ▼299.61ms] Passed 4 tests

An overview of server-side resources used by Impressive Slider Made Easy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2553.28 ▼10.02
Dashboard /wp-admin3.60 ▲0.1932.28 ▼5.27
Posts /wp-admin/edit.php3.82 ▲0.1836.86 ▼2.60
Add New Post /wp-admin/post-new.php7.07 ▲0.1097.12 ▼1,180.55
Media Library /wp-admin/upload.php3.47 ▲0.1824.58 ▲1.44
Impressive Sliders /wp-admin/edit.php?post_type=wisme_slider3.5927.74
Getting Started /wp-admin/edit.php?post_type=wisme_slider&page=wisme-help3.4825.45
Add New /wp-admin/post-new.php?post_type=wisme_slider3.8541.08

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Impressive Slider Made Easy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,805 ▲5116.22 ▲0.235.45 ▼1.592.27 ▼0.36
Dashboard /wp-admin2,929 ▲686.09 ▼0.10129.41 ▼5.46166.07 ▼0.22
Posts /wp-admin/edit.php2,742 ▲483.28 ▲0.0471.05 ▲7.60135.29 ▼3.05
Add New Post /wp-admin/post-new.php1,686 ▲2516.82 ▲0.81424.11 ▼17.77153.65 ▼5.01
Media Library /wp-admin/upload.php1,746 ▲515.58 ▲0.09140.02 ▼1.62182.53 ▼3.20
Impressive Sliders /wp-admin/edit.php?post_type=wisme_slider1,4403.2173.15113.93
Getting Started /wp-admin/edit.php?post_type=wisme_slider&page=wisme-help1,1402.7756.54195.90
Add New /wp-admin/post-new.php?post_type=wisme_slider3,3535.6396.38225.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

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
Even though no errors were found, 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
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/impressive-slider-made-easy/templates/slider-default-templates/slider-init-default.php
    • > /wp-content/plugins/impressive-slider-made-easy/templates/slider-default-templates/tab-slider-default.php
    • > /wp-content/plugins/impressive-slider-made-easy/templates/slider-default-templates/image-slider-default.php
    • > /wp-content/plugins/impressive-slider-made-easy/templates/slider-default-templates/image-gallery-default.php
  • 49× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: slider_width in wp-content/plugins/impressive-slider-made-easy/templates/slider-default-templates/image-gallery-default.php on line 42
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/impressive-slider-made-easy/templates/plugins-feed.php on line 5
    • > PHP Notice
      Undefined variable: post_id in wp-content/plugins/impressive-slider-made-easy/templates/slider-default-templates/image-gallery-default.php on line 12
    • > PHP Notice
      Undefined variable: post_id in wp-content/plugins/impressive-slider-made-easy/templates/slider-default-templates/slider-init-default.php on line 31
    • > PHP Warning
      extract() expects parameter 1 to be array, null given in wp-content/plugins/impressive-slider-made-easy/templates/slider-default-templates/tab-slider-default.php on line 3
    • > PHP Notice
      Undefined variable: slider_height in wp-content/plugins/impressive-slider-made-easy/templates/slider-default-templates/image-slider-default.php on line 7
    • > PHP Notice
      Undefined variable: thumbnail_gallery_design in wp-content/plugins/impressive-slider-made-easy/templates/slider-default-templates/tab-slider-default.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/impressive-slider-made-easy/functions.php:13
    • > PHP Notice
      Undefined variable: slider_height in wp-content/plugins/impressive-slider-made-easy/templates/slider-default-templates/image-gallery-default.php on line 12
    • > PHP Notice
      Undefined variable: slider_height in wp-content/plugins/impressive-slider-made-easy/templates/slider-default-templates/image-gallery-default.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can look at the official readme.txt

impressive-slider-made-easy/impressive-slider-made-easy.php Passed 13 tests

Analyzing the main PHP file in "Impressive Slider Made Easy" version 1.3
54 characters long description:
Create aweosome Image slider with jQuery JSSOR Slider.

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 plugin5,138 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript7189143,656
PHP12301951,080
CSS27147402

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity21.33
▷ Minimum class complexity8.00
▷ Maximum class complexity45.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods2090.91%
▷ Protected methods00.00%
▷ Private methods29.09%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
24 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/slider-delete.png0.29KB0.20KB▼ 29.59%
images/arrows/a10.png1.15KB0.79KB▼ 31.75%
images/arrows/a03.png5.54KB3.44KB▼ 37.80%
images/arrows/a01.png3.65KB2.21KB▼ 39.44%
images/arrows/a12.png2.42KB1.57KB▼ 35.40%