78% image-horizontal-reel-scroll-slideshow

Code Review | Image horizontal reel scroll slideshow

WordPress plugin Image horizontal reel scroll slideshow scored78%from 54 tests.

About plugin

  • Plugin page: image-horizontal-...
  • Plugin version: 13.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: May 8, 2011
  • Latest release: Oct 28, 2023
  • Number of updates: 95
  • Update frequency: every 48.0 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

5,000+ active /198,495 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼12.46ms] Passed 4 tests

A check of server-side resources used by Image horizontal reel scroll slideshow
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.38 ▲2.07
Dashboard /wp-admin3.32 ▼0.0241.99 ▼13.21
Posts /wp-admin/edit.php3.37 ▲0.0238.44 ▼11.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0277.40 ▼26.25
Media Library /wp-admin/upload.php3.25 ▲0.0233.38 ▲0.67
Image horizontal reel scroll slideshow /wp-admin/options-general.php?page=image-horizontal-reel-scroll-slideshow3.3030.69

Server storage [IO: ▲0.28MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 27 new files
Database: 1 new table, 13 new options
New tables
wp_Ihrss_plugin
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
Ihrss_slideshowgap
Ihrss_random
Ihrss_sliderheight
widget_recent-comments
Ihrss_slidebgcolor
Ihrss_slidespeed
Ihrss_type
...

Browser metrics Passed 4 tests

Image horizontal reel scroll slideshow: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.021.73 ▲0.1036.42 ▼1.25
Dashboard /wp-admin2,199 ▲275.55 ▼0.1680.76 ▼17.2635.39 ▼7.69
Posts /wp-admin/edit.php2,104 ▲12.01 ▲0.0432.45 ▼7.5432.36 ▼4.62
Add New Post /wp-admin/post-new.php1,531 ▼323.41 ▲5.20655.40 ▲37.7860.21 ▼6.15
Media Library /wp-admin/upload.php1,407 ▲134.26 ▲0.1397.83 ▲1.8341.64 ▼1.71
Image horizontal reel scroll slideshow /wp-admin/options-general.php?page=image-horizontal-reel-scroll-slideshow1,0832.0423.9824.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/image-horizontal-reel-scroll-slideshow/pages/image-management-edit.php
    • > /wp-content/plugins/image-horizontal-reel-scroll-slideshow/pages/image-setting.php
    • > /wp-content/plugins/image-horizontal-reel-scroll-slideshow/pages/image-management-show.php
    • > /wp-content/plugins/image-horizontal-reel-scroll-slideshow/pages/image-management-add.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/image-horizontal-reel-scroll-slideshow/image-horizontal-reel-scroll-slideshow.php:23
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/image-horizontal-reel-scroll-slideshow/image-horizontal-reel-scroll-slideshow.php on line 18

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: gallery, scroll, horizontal, reel, slideshow...

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

The main file in "Image horizontal reel scroll slideshow" v. 13.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 177 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,801 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP69556857
PO File5324482812
JavaScript21026132

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png2.98KB0.54KB▼ 81.86%