84% up-down-image-slideshow-gallery

Code Review | Up down image slideshow gallery

WordPress plugin Up down image slideshow gallery scored84%from 54 tests.

About plugin

  • Plugin page: up-down-image-sli...
  • Plugin version: 12.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: Apr 29, 2011
  • Latest release: Oct 29, 2023
  • Number of updates: 74
  • Update frequency: every 61.7 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /13,922 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by Up down image slideshow gallery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.56 ▼0.20
Dashboard /wp-admin3.37 ▲0.0643.59 ▼3.99
Posts /wp-admin/edit.php3.42 ▲0.0647.83 ▲1.62
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.09 ▼5.49
Media Library /wp-admin/upload.php3.29 ▲0.0630.54 ▼4.38
Up down slideshow /wp-admin/options-general.php?page=up-down-image-slideshow-gallery3.3028.94

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 15 new options
New tables
wp_udisg_plugin
New WordPress options
udisg_pause
db_upgraded
udisg_width
widget_recent-posts
udisg_random
widget_recent-comments
udisg_cycles
udisg_height
udisg_title
can_compress_scripts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Up down image slideshow gallery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲11313.63 ▼0.717.57 ▲5.9435.84 ▼1.06
Dashboard /wp-admin2,202 ▲255.64 ▲0.0382.10 ▼3.9637.45 ▼6.21
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0240.48 ▲4.5935.21 ▼1.35
Add New Post /wp-admin/post-new.php1,538 ▲1018.50 ▼4.38602.53 ▼71.2565.31 ▲5.59
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.0392.92 ▼4.9239.56 ▼6.55
Up down slideshow /wp-admin/options-general.php?page=up-down-image-slideshow-gallery1,0512.1724.0625.58

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 15 options in the database
    • udisg_title
    • udisg_type
    • widget_recent-comments
    • udisg_width
    • udisg_height
    • udisg_random
    • udisg_pause
    • can_compress_scripts
    • udisg_slideduration
    • widget_recent-posts
    • ...

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/up-down-image-slideshow-gallery/up-down-image-slideshow-gallery.php
    • > /wp-content/plugins/up-down-image-slideshow-gallery/pages/image-setting.php
    • > /wp-content/plugins/up-down-image-slideshow-gallery/pages/image-management-add.php
    • > /wp-content/plugins/up-down-image-slideshow-gallery/pages/image-management-edit.php
    • > /wp-content/plugins/up-down-image-slideshow-gallery/pages/image-management-show.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: image, gallery, slideshow

up-down-image-slideshow-gallery/up-down-image-slideshow-gallery.php 92% from 13 tests

"Up down image slideshow gallery" version 12.1'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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 348 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,322 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP69144853
PO File2130193296
JavaScript21724173

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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%