84% left-right-image-slideshow-gallery

Code Review | Left right image slideshow gallery

WordPress plugin Left right image slideshow gallery scored84%from 54 tests.

About plugin

  • Plugin page: left-right-image-...
  • Plugin version: 12.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: Apr 28, 2011
  • Latest release: Oct 28, 2023
  • Number of updates: 78
  • Update frequency: every 58.6 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /25,215 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Left right image slideshow gallery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.61 ▲2.75
Dashboard /wp-admin3.37 ▲0.0646.07 ▼0.58
Posts /wp-admin/edit.php3.42 ▲0.0646.05 ▲1.55
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.50 ▼15.38
Media Library /wp-admin/upload.php3.29 ▲0.0633.63 ▲0.86
Left right slideshow /wp-admin/options-general.php?page=left-right-image-slideshow-gallery3.3030.25

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 21 new files
Database: 1 new table, 15 new options
New tables
wp_lrisg_plugin
New WordPress options
theysaidso_admin_options
Lrisg_title
widget_recent-posts
widget_recent-comments
can_compress_scripts
Lrisg_type
Lrisg_height
Lrisg_slideduration
Lrisg_persist
Lrisg_pause
...

Browser metrics Passed 4 tests

Checking browser requirements for Left right image slideshow gallery
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲11313.50 ▼0.878.91 ▲7.3443.27 ▲2.52
Dashboard /wp-admin2,199 ▲215.66 ▼0.0194.52 ▼5.6243.42 ▼1.62
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0435.11 ▼4.6532.46 ▲0.54
Add New Post /wp-admin/post-new.php1,531 ▲223.29 ▲0.19679.75 ▲71.0260.17 ▲7.17
Media Library /wp-admin/upload.php1,404 ▲44.12 ▼0.1096.59 ▼11.7140.63 ▼5.78
Left right slideshow /wp-admin/options-general.php?page=left-right-image-slideshow-gallery1,0512.3023.1728.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/left-right-image-slideshow-gallery/pages/image-management-add.php
    • > /wp-content/plugins/left-right-image-slideshow-gallery/pages/image-setting.php
    • > /wp-content/plugins/left-right-image-slideshow-gallery/left-right-image-slideshow-gallery.php
    • > /wp-content/plugins/left-right-image-slideshow-gallery/pages/image-management-edit.php
    • > /wp-content/plugins/left-right-image-slideshow-gallery/pages/image-management-show.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: image, slideshow, gallery

left-right-image-slideshow-gallery/left-right-image-slideshow-gallery.php 92% from 13 tests

The main file in "Left right image slideshow gallery" v. 12.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: Please don't use more than 140 characters for the plugin description (currently 353 characters long)

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 detected1,482 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP69344858
PO File3196292451
JavaScript21723173

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/image-icon.png0.61KB0.66KB0.00%