74% vector-slider

Code Review | Responsive jQuery Slider - Vector Slider

WordPress plugin Responsive jQuery Slider - Vector Slider scored 74% from 54 tests.

About plugin

  • Plugin page: vector-slider
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 5.8.1
  • First release: Jun 11, 2017
  • Latest release: Jan 2, 2018
  • Number of updates: 23
  • Update frequency: every 8.9 days
  • Top authors: codegearthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 670 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼143.16ms] Passed 4 tests

A check of server-side resources used by Responsive jQuery Slider - Vector Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.82 ▼0.0131.00 ▼8.93
Dashboard /wp-admin3.16 ▲0.1157.01 ▲3.73
Posts /wp-admin/edit.php3.25 ▲0.1556.04 ▲12.83
Add New Post /wp-admin/post-new.php5.52 ▲0.09107.74 ▼566.96
Media Library /wp-admin/upload.php3.11 ▲0.1135.21 ▼0.46
Slider Settings /wp-admin/edit.php?post_type=slider&page=vector-slider-settings3.0934.25
Add New Slide /wp-admin/post-new.php?post_type=slider3.2054.58
All Slides /wp-admin/edit.php?post_type=slider3.1542.57

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 1 new option
New WordPress options
cgtdefault_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive jQuery Slider - Vector Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,851 ▲27916.49 ▲0.5716.55 ▲4.8951.99 ▲1.71
Dashboard /wp-admin3,012 ▲786.03 ▲0.06152.72 ▼24.68123.14 ▲9.40
Posts /wp-admin/edit.php2,784 ▲452.73 ▲0.0175.10 ▼2.18100.50 ▲1.13
Add New Post /wp-admin/post-new.php1,611 ▲3015.30 ▼2.17513.92 ▲39.71128.40 ▼14.91
Media Library /wp-admin/upload.php1,852 ▲455.04 ▲0.03177.76 ▲5.02131.79 ▲9.20
Slider Settings /wp-admin/edit.php?post_type=slider&page=vector-slider-settings1,3912.1358.5781.20
Add New Slide /wp-admin/post-new.php?post_type=slider2,3764.59119.7391.24
All Slides /wp-admin/edit.php?post_type=slider1,4872.6473.8580.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/class-wp-hook.php+303
    call_user_func_array() expects parameter 1 to be a valid callback, function 'vector_slider_deactivation' not found or invalid function name
  • Zombie WordPress options were found after uninstall: 1 option
    • cgtdefault_settings

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/vector-slider/inc/core/sections/about-settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

vector-slider/vector-slider.php Passed 13 tests

This is the main PHP file of "Responsive jQuery Slider - Vector Slider" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
28 characters long description:
Responsive wordpress slider.

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
There were no executable files found in this plugin8,051 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
CSS683182,796
SVG2102,684
JavaScript4830592,061
PHP68339416
PO File1404194

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
1 compressed PNG file occupies 0.05MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/vectortheme.png53.78KB52.42KB▼ 2.51%