89% wp-slick-slider-and-image-carousel

Code Review | WP Slick Slider and Image Carousel

WordPress plugin WP Slick Slider and Image Carousel scored89%from 54 tests.

About plugin

  • Plugin page: wp-slick-slider-a...
  • Plugin version: 3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2015
  • Latest release: Nov 24, 2023
  • Number of updates: 187
  • Update frequency: every 15.7 days
  • Top authors: anoopranawat (65.24%)wponlinesupport (35.29%)

Code review

54 tests

User reviews

68 reviews

Install metrics

20,000+ active /544,329 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.69ms] Passed 4 tests

Analyzing server-side resources used by WP Slick Slider and Image Carousel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0834.08 ▼7.58
Dashboard /wp-admin3.38 ▲0.0745.32 ▼4.70
Posts /wp-admin/edit.php3.43 ▲0.0749.62 ▲1.08
Add New Post /wp-admin/post-new.php6.00 ▲0.1196.57 ▲3.76
Media Library /wp-admin/upload.php3.30 ▲0.0733.31 ▲0.44

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 61 new files
Database: no new tables, 8 new options
New WordPress options
wpos_anylc_redirect
wpos_anylc_site_uid
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Slick Slider and Image Carousel
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,546 ▼1,21610.25 ▼3.891.44 ▼0.2816.13 ▼28.53
Dashboard /wp-admin2,221 ▲415.54 ▼0.1098.82 ▼0.3754.10 ▲11.38
Posts /wp-admin/edit.php2,125 ▲222.02 ▲0.0741.19 ▼4.4137.03 ▼0.53
Add New Post /wp-admin/post-new.php6,215 ▲4,68919.15 ▼4.10901.23 ▲266.8858.07 ▼0.47
Media Library /wp-admin/upload.php1,422 ▲254.25 ▲0.0797.14 ▼3.8139.92 ▼3.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • wpos_anylc_site_uid
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • wpos_anylc_redirect

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: You are using too many tags: 23 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-slick-slider-and-image-carousel/wp-slick-image-slider.php 92% from 13 tests

"WP Slick Slider and Image Carousel" version 3.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-slick-slider-and-image-carousel.php" instead of "wp-slick-image-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,394 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP325538062,753
JavaScript610263360
CSS52616280
JSON1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity27.40
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods36
▷ Static methods12.78%
▷ Public methods3494.44%
▷ Protected methods00.00%
▷ Private methods25.56%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
13 PNG files occupy 0.47MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wpos-analytics/assets/images/wpos-logo.png9.04KB3.17KB▼ 64.91%
assets/images/rating.png0.85KB0.55KB▼ 34.41%
assets/images/popup-icon/slider.png5.26KB2.46KB▼ 53.19%
assets/images/page-builder-icon.png40.77KB11.61KB▼ 71.53%
assets/images/popup-icon/14-days-money-back-guarantee.png30.03KB8.44KB▼ 71.91%