89% responsive-slick-slider

Code Review | Responsive Slick Slider WordPress

WordPress plugin Responsive Slick Slider WordPress scored 89% from 54 tests.

About plugin

  • Plugin page: responsive-slick-...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8.2
  • WordPress version: 6.3.1
  • First release: May 9, 2017
  • Latest release: Dec 7, 2021
  • Number of updates: 43
  • Update frequency: every 39.0 days
  • Top authors: vsourz1td (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 12,868 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼2.37ms] Passed 4 tests

An overview of server-side resources used by Responsive Slick Slider WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1741.94 ▲3.02
Dashboard /wp-admin3.55 ▲0.2449.09 ▲2.85
Posts /wp-admin/edit.php3.60 ▲0.2454.09 ▲6.82
Add New Post /wp-admin/post-new.php6.12 ▲0.2385.26 ▼17.62
Media Library /wp-admin/upload.php3.38 ▲0.1635.75 ▲2.27
Slider /wp-admin/edit.php?post_type=vsz_responsive_slick3.4539.89
Add Slider /wp-admin/post-new.php?post_type=vsz_responsive_slick3.6052.21
Designer Support /wp-admin/edit.php?post_type=vsz_responsive_slick&page=designer_support3.3836.14

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Responsive Slick Slider WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,097 ▲36215.98 ▲1.4010.66 ▲8.8338.53 ▼4.43
Dashboard /wp-admin2,378 ▲1906.45 ▲0.54120.58 ▲18.9941.15 ▼1.83
Posts /wp-admin/edit.php2,293 ▲2013.39 ▲1.3255.69 ▲20.7035.23 ▲4.87
Add New Post /wp-admin/post-new.php1,545 ▲1223.22 ▲0.27661.24 ▲81.7136.86 ▼12.66
Media Library /wp-admin/upload.php1,429 ▲414.25 ▼0.0479.02 ▼29.7940.99 ▼7.25
Slider /wp-admin/edit.php?post_type=vsz_responsive_slick1,2733.4044.1627.29
Add Slider /wp-admin/post-new.php?post_type=vsz_responsive_slick2,4783.7479.6488.31
Designer Support /wp-admin/edit.php?post_type=vsz_responsive_slick&page=designer_support1,0632.9838.4525.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

responsive-slick-slider/responsive-slick-slider.php 85% from 13 tests

The main file in "Responsive Slick Slider WordPress" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 151 characters long)
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected5,111 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP195051,4223,158
JavaScript54022601,520
CSS42621433

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity25.33
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity4.06
▷ Minimum method complexity1.00
▷ Maximum method complexity81.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods72
▷ Static methods1115.28%
▷ Public methods6590.28%
▷ Protected methods22.78%
▷ Private methods56.94%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants10
▷ Global constants110.00%
▷ Class constants990.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
23 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/arrow-right-3.png1.23KB0.46KB▼ 62.34%
admin/images/arrow-right.png2.09KB1.27KB▼ 39.43%
admin/images/arrow-right-4.png0.54KB0.41KB▼ 24.77%
admin/images/drop-down-arrow.png1.58KB0.46KB▼ 70.97%
public/images/arrow-right-4.png0.54KB0.41KB▼ 24.77%