84% horizontal-scroll-image-slideshow

Code Review | Horizontal scroll image slideshow

WordPress plugin Horizontal scroll image slideshow scored84%from 54 tests.

About plugin

  • Plugin page: horizontal-scroll...
  • Plugin version: 10.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2009
  • Latest release: Dec 1, 2022
  • Number of updates: 72
  • Update frequency: every 66.4 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /32,583 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.26ms] Passed 4 tests

Server-side resources used by Horizontal scroll image slideshow
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.11 ▼3.01
Dashboard /wp-admin3.36 ▲0.0649.07 ▼3.50
Posts /wp-admin/edit.php3.41 ▲0.0653.26 ▲3.43
Add New Post /wp-admin/post-new.php5.94 ▲0.0687.45 ▼14.45
Media Library /wp-admin/upload.php3.28 ▲0.0638.24 ▼0.09
Horizontal scroll image slideshow /wp-admin/options-general.php?page=horizontal-scroll-image-slideshow3.2531.86

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 12 new options
New WordPress options
hsis_speed
widget_recent-posts
widget_recent-comments
hsis_height
theysaidso_admin_options
db_upgraded
hsis_title
hsis_bgcolor
widget_theysaidso_widget
hsis_width
...

Browser metrics Passed 4 tests

Checking browser requirements for Horizontal scroll image slideshow
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.20 ▼1.091.74 ▼0.0540.79 ▼3.43
Dashboard /wp-admin2,219 ▲195.84 ▲0.98101.58 ▼2.1340.24 ▼8.15
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0341.07 ▲4.3336.29 ▲0.50
Add New Post /wp-admin/post-new.php1,553 ▲1322.91 ▲4.77655.53 ▲39.1065.50 ▲11.52
Media Library /wp-admin/upload.php1,401 ▼24.18 ▼0.0295.70 ▼4.2042.30 ▼4.05
Horizontal scroll image slideshow /wp-admin/options-general.php?page=horizontal-scroll-image-slideshow8832.1822.5127.38

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

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

Smoke tests 75% from 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 50% from 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/horizontal-scroll-image-slideshow/horizontal-scroll-image-slideshow.php:277

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: widget, scroll, images, image, gallery...

horizontal-scroll-image-slideshow/horizontal-scroll-image-slideshow.php 92% from 13 tests

The main file in "Horizontal scroll image slideshow" v. 10.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 192 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin551 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP23816249
PO File35877169
JavaScript1818107
XML10026

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin