90% slick-slider

Code Review | Slick Slider

WordPress plugin Slick Slider scored90%from 54 tests.

About plugin

  • Plugin page: slick-slider
  • Plugin version: 0.5.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 6.3.1
  • First release: Oct 7, 2016
  • Latest release: Aug 7, 2023
  • Number of updates: 31
  • Update frequency: every 80.5 days
  • Top authors: Tyrannous (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

2,000+ active /42,455 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.64ms] Passed 4 tests

A check of server-side resources used by Slick Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.02 ▼2.94
Dashboard /wp-admin3.35 ▲0.0145.97 ▼11.54
Posts /wp-admin/edit.php3.40 ▲0.0551.30 ▲3.25
Add New Post /wp-admin/post-new.php6.09 ▲0.2086.19 ▼19.19
Media Library /wp-admin/upload.php3.28 ▲0.0536.59 ▼0.88

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 7 new options
New WordPress options
slick-slider
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Slick Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.071.49 ▼0.1944.98 ▲5.76
Dashboard /wp-admin2,206 ▲185.87 ▼0.0198.76 ▼8.8040.84 ▲1.08
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0741.27 ▲0.3535.21 ▼0.63
Add New Post /wp-admin/post-new.php1,527 ▲1317.71 ▲0.10662.96 ▼17.8950.72 ▼4.48
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0496.05 ▼6.5941.48 ▼3.31

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: slider, lightbox, jquery slider, slick, gallery...

slick-slider/slick-slider.php 92% from 13 tests

"Slick Slider" version 0.5.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")

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
No dangerous file extensions were detected4,931 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript99221592,319
PHP92254101,358
CSS8455393
Markdown31120267
Sass2275262
JSON600154
LESS1115152
SVG11013
Ruby1208
make1305

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity18.57
▷ Minimum class complexity2.00
▷ Maximum class complexity49.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods44
▷ Static methods44100.00%
▷ Public methods4397.73%
▷ Protected methods00.00%
▷ Private methods12.27%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin