84% vertical-scroll-slideshow-gallery-v2

Code Review | Vertical scroll slideshow gallery v2

WordPress plugin Vertical scroll slideshow gallery v2 scored84%from 54 tests.

About plugin

  • Plugin page: vertical-scroll-s...
  • Plugin version: 9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2009
  • Latest release: Dec 1, 2022
  • Number of updates: 68
  • Update frequency: every 70.0 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /14,700 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
Install script ran successfully

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

This is a short check of server-side resources used by Vertical scroll slideshow gallery v2
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.39 ▲1.72
Dashboard /wp-admin3.38 ▲0.0447.54 ▼11.27
Posts /wp-admin/edit.php3.43 ▲0.0747.49 ▼0.55
Add New Post /wp-admin/post-new.php5.96 ▲0.0780.05 ▼25.40
Media Library /wp-admin/upload.php3.30 ▲0.0735.50 ▲3.69
Vertical Scroll Slideshow Gallery V2 /wp-admin/options-general.php?page=vertical-scroll-slideshow-gallery-v23.3129.20

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: 1 new table, 7 new options
New tables
wp_vssgv_gallery
New WordPress options
can_compress_scripts
widget_vertical-scroll-slideshow-gallery-v2
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Vertical scroll slideshow gallery v2
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.34 ▼1.311.72 ▲0.1345.04 ▲4.29
Dashboard /wp-admin2,210 ▲215.86 ▼0.03106.96 ▼4.3541.27 ▼0.00
Posts /wp-admin/edit.php2,093 ▲11.97 ▼0.0239.74 ▼5.4534.79 ▼0.02
Add New Post /wp-admin/post-new.php1,540 ▲1223.35 ▲4.95690.91 ▲51.9558.44 ▲4.62
Media Library /wp-admin/upload.php1,392 ▲74.17 ▲0.03101.38 ▲0.7642.36 ▼0.37
Vertical Scroll Slideshow Gallery V2 /wp-admin/options-general.php?page=vertical-scroll-slideshow-gallery-v21,0092.0526.8425.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_vertical-scroll-slideshow-gallery-v2
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/vertical-scroll-slideshow-gallery-v2/pages/image-management-edit.php
    • > /wp-content/plugins/vertical-scroll-slideshow-gallery-v2/pages/image-management-show.php
    • > /wp-content/plugins/vertical-scroll-slideshow-gallery-v2/vertical-scroll-slideshow-gallery-v2.php
    • > /wp-content/plugins/vertical-scroll-slideshow-gallery-v2/pages/image-management-add.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: scroll, slideshow, images, vertical, gallery

vertical-scroll-slideshow-gallery-v2/vertical-scroll-slideshow-gallery-v2.php Passed 13 tests

The main file in "Vertical scroll slideshow gallery v2" v. 9.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
124 characters long description:
Vertical scroll slideshow gallery plugin will create the vertical scrolling image slideshow gallery on the wordpress widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,214 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP58042780
PO File2123192265
JavaScript21118169

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.00
▷ Minimum class complexity2.00
▷ Maximum class complexity10.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods444.44%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
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%