89% horizontal-slider-with-scroll

Code Review | Horizontal Slider with Scroll

WordPress plugin Horizontal Slider with Scroll scored89%from 54 tests.

About plugin

  • Plugin page: horizontal-slider...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 21, 2022
  • Latest release: Nov 15, 2023
  • Number of updates: 12
  • Update frequency: every 55.3 days
  • Top authors: coder426 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,026 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.01MB] [CPU: ▼1.20ms] Passed 4 tests

An overview of server-side resources used by Horizontal Slider with Scroll
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.79 ▲1.21
Dashboard /wp-admin3.31 ▲0.0144.04 ▼4.36
Posts /wp-admin/edit.php3.37 ▲0.0146.63 ▲1.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.51 ▼0.92
Media Library /wp-admin/upload.php3.24 ▲0.0131.16 ▼0.73
Horizontal Slider With Scroll Settings /wp-admin/admin.php?page=horizontal-slider-with-scroll3.2434.93

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Horizontal Slider with Scroll
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,203 ▲44115.75 ▲1.4159.52 ▲57.6037.23 ▼11.89
Dashboard /wp-admin2,204 ▲275.53 ▼0.0889.98 ▼8.2343.00 ▼1.63
Posts /wp-admin/edit.php2,115 ▲151.98 ▼0.0339.56 ▼3.2038.32 ▲2.60
Add New Post /wp-admin/post-new.php1,536 ▲522.94 ▼0.00594.58 ▼86.6449.74 ▼1.22
Media Library /wp-admin/upload.php1,409 ▲94.14 ▼0.0594.96 ▼12.6645.42 ▲2.09
Horizontal Slider With Scroll Settings /wp-admin/admin.php?page=horizontal-slider-with-scroll2,27710.40357.79113.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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)
Even though no errors were found, this is by no means an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Requires at least: Version not formatted correctly
The official readme.txt might help

horizontal-slider-with-scroll/horizontal-slider-with-scroll.php 92% from 13 tests

"Horizontal Slider with Scroll" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected14,670 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,552
JavaScript124023672,567
CSS8133891,843
PHP26371708

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
9 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/middle.png1.10KB0.37KB▼ 66.16%
assets/images/kinsta4.png3.91KB1.87KB▼ 52.26%
assets/images/kinsta5.png6.61KB2.86KB▼ 56.73%
assets/images/kinsta3.png18.09KB7.01KB▼ 61.27%
assets/images/kinsta7.png17.14KB7.24KB▼ 57.76%