88% impressive-sliders-for-elementor-page-builder

Code Review | Impressive Sliders for Elementor Page Builder

WordPress plugin Impressive Sliders for Elementor Page Builder scored 88% from 54 tests.

About plugin

  • Plugin page: impressive-slider...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-4.9.1
  • WordPress version: 5.9.2
  • First release: Dec 31, 2017
  • Latest release: Jan 2, 2018
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: nimeshrmr (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active / 10,377 total downloads

Benchmarks

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

An overview of server-side resources used by Impressive Sliders for Elementor Page Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0851.30 ▼2.77
Dashboard /wp-admin3.46 ▲0.0532.92 ▼1.50
Posts /wp-admin/edit.php3.69 ▲0.0436.47 ▲1.56
Add New Post /wp-admin/post-new.php6.93 ▼0.0594.74 ▼1,175.08
Media Library /wp-admin/upload.php3.34 ▲0.0424.25 ▲0.94

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Impressive Sliders for Elementor Page Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,765 ▲715.86 ▲0.287.43 ▲1.672.56 ▼0.20
Dashboard /wp-admin2,895 ▲376.15 ▼0.02115.80 ▼27.71154.28 ▼4.75
Posts /wp-admin/edit.php2,691 ▲63.24 ▲0.0164.85 ▲1.39139.47 ▲3.39
Add New Post /wp-admin/post-new.php1,781 ▲12021.89 ▲5.52414.62 ▼23.27158.37 ▲2.07
Media Library /wp-admin/upload.php1,695 ▼35.48 ▼0.06134.63 ▼1.32189.25 ▲5.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/impressive-sliders-for-elementor-page-builder/templates/slider-default-templates/image-gallery-default.php
    • > /wp-content/plugins/impressive-sliders-for-elementor-page-builder/templates/slider-default-templates/image-slider-default.php
    • > /wp-content/plugins/impressive-sliders-for-elementor-page-builder/templates/slider-default-templates/tab-slider-default.php
    • > /wp-content/plugins/impressive-sliders-for-elementor-page-builder/templates/slider-default-templates/slider-init-default.php
  • 51× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/impressive-sliders-for-elementor-page-builder/templates/slider-default-templates/tab-slider-default.php on line 15
    • > PHP Notice
      Undefined variable: slider_height in wp-content/plugins/impressive-sliders-for-elementor-page-builder/templates/slider-default-templates/image-slider-default.php on line 9
    • > PHP Notice
      Undefined variable: slider_width in wp-content/plugins/impressive-sliders-for-elementor-page-builder/templates/slider-default-templates/image-gallery-default.php on line 12
    • > PHP Notice
      Undefined variable: id_int in wp-content/plugins/impressive-sliders-for-elementor-page-builder/templates/slider-default-templates/slider-init-default.php on line 35
    • > PHP Notice
      Undefined variable: id_int in wp-content/plugins/impressive-sliders-for-elementor-page-builder/templates/slider-default-templates/slider-init-default.php on line 43
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/impressive-sliders-for-elementor-page-builder/templates/slider-default-templates/image-gallery-default.php on line 15
    • > PHP Notice
      Undefined variable: slider_images in wp-content/plugins/impressive-sliders-for-elementor-page-builder/templates/slider-default-templates/image-slider-default.php on line 10
    • > PHP Warning
      extract() expects parameter 1 to be array, null given in wp-content/plugins/impressive-sliders-for-elementor-page-builder/templates/slider-default-templates/image-gallery-default.php on line 3
    • > PHP Notice
      Undefined variable: id_int in wp-content/plugins/impressive-sliders-for-elementor-page-builder/templates/slider-default-templates/slider-init-default.php on line 37
    • > PHP Notice
      Undefined variable: slider_images in wp-content/plugins/impressive-sliders-for-elementor-page-builder/templates/slider-default-templates/tab-slider-default.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt might help

impressive-sliders-for-elementor-page-builder/impressive-sliders-elementor-page-builder.php 92% from 13 tests

The main PHP script in "Impressive Sliders for Elementor Page Builder" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("impressive-sliders-for-elementor-page-builder.php" instead of "impressive-sliders-elementor-page-builder.php")

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
Good job! No executable or dangerous file extensions detected4,296 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript614973,547
PHP915030520
CSS14144229

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity15.25
▷ Minimum class complexity10.00
▷ Maximum class complexity24.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1386.67%
▷ Protected methods213.33%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
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/arrows/a15.png2.85KB2.22KB▼ 22.23%
images/arrows/a20.png5.79KB3.60KB▼ 37.83%
images/arrows/a09.png0.54KB0.28KB▼ 49.01%
images/thumbs/t01.png1.58KB0.74KB▼ 53.49%
images/arrows/a14.png3.45KB2.83KB▼ 18.18%