10% gallery-stacked-slideshow

Code Review | Gallery Stacked Slideshow

WordPress plugin Gallery Stacked Slideshow scored10%from 54 tests.

About plugin

  • Plugin page: gallery-stacked-s...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.0.1
  • WordPress version: 6.3.1
  • First release: Jun 21, 2012
  • Latest release: Sep 4, 2013
  • Number of updates: 78
  • Update frequency: every 5.7 days
  • Top authors: rashmisoni (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /8,395 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/gallery-stacked-slideshow/gallery-stacked-slideshow.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; GalleryStackedSlideshow has a deprecated constructor

Server metrics [RAM: ▼1.82MB] [CPU: ▼61.04ms] Passed 4 tests

This is a short check of server-side resources used by Gallery Stacked Slideshow
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.285.31 ▼34.63
Dashboard /wp-admin2.20 ▼1.146.31 ▼57.60
Posts /wp-admin/edit.php2.20 ▼1.155.79 ▼49.53
Add New Post /wp-admin/post-new.php2.20 ▼3.687.29 ▼101.19
Media Library /wp-admin/upload.php2.20 ▼1.035.81 ▼35.82
Overview /wp-admin/admin.php?page=gss-gallery-overview2.205.80
Manage Gallery /wp-admin/admin.php?page=gss-gallery-manage2.206.59
Add Gallery /wp-admin/admin.php?page=gss-gallery-add2.207.01

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: 2 new tables, 6 new options
New tables
wp_gallerymeta
wp_galleryfield
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Gallery Stacked Slideshow: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8614.76 ▲0.601.73 ▼0.0547.09 ▲4.51
Dashboard /wp-admin2,218 ▲445.59 ▲0.0684.10 ▼11.5076.26 ▲32.73
Posts /wp-admin/edit.php2,141 ▲411.97 ▼0.0238.16 ▲1.5935.44 ▼1.57
Add New Post /wp-admin/post-new.php1,582 ▲4718.06 ▼0.25710.63 ▲50.8753.26 ▼10.10
Media Library /wp-admin/upload.php1,432 ▲324.15 ▼0.0498.68 ▼7.3170.28 ▲25.66
Overview /wp-admin/admin.php?page=gss-gallery-overview9382.0126.6826.68
Manage Gallery /wp-admin/admin.php?page=gss-gallery-manage1,0162.0325.6925.55
Add Gallery /wp-admin/admin.php?page=gss-gallery-add1,1743.9553.8594.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/gallery-stacked-slideshow/gallery-stacked-slideshow.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; GalleryStackedSlideshow has a deprecated constructor
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_galleryfield
    • wp_gallerymeta
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gss-gallery-add
    • > Deprecated in wp-content/plugins/gallery-stacked-slideshow/gallery-stacked-slideshow.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; GalleryStackedSlideshow has a deprecated constructor
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gss-gallery-add
    • > Deprecated in wp-content/plugins/gallery-stacked-slideshow/tinymce/tinymce.php+6
    Methods with the same name as their class will not be constructors in a future version of PHP; gssTinyMCE has a deprecated constructor

SRP 0% 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
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/gallery-stacked-slideshow/admin/gallery-overview.php
    • > /wp-content/plugins/gallery-stacked-slideshow/admin/gallery-details.php
    • > /wp-content/plugins/gallery-stacked-slideshow/admin/gallery-manage.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'GalleryStackedSlideshow' not found in wp-content/plugins/gallery-stacked-slideshow/tinymce/tinymce.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/gallery-stacked-slideshow/admin/gallery-add.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gallery-stacked-slideshow/gallery-stacked-slideshow.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/gallery-stacked-slideshow/tinymce/window.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=gss-gallery-add
    • > Network (severe)
    wp-content/plugins/gallery-stacked-slideshow/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=gss-gallery-add
    • > Network (severe)
    wp-content/plugins/gallery-stacked-slideshow/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=gss-gallery-add
    • > Network (severe)
    wp-content/plugins/gallery-stacked-slideshow/css/images/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=gss-gallery-add
    • > Network (severe)
    wp-content/plugins/gallery-stacked-slideshow/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

gallery-stacked-slideshow/gallery-stacked-slideshow.php 92% from 13 tests

The main file in "Gallery Stacked Slideshow" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected26,021 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript44,3762,55323,727
PHP71522301,197
CSS234491,097

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity23.50
▷ Minimum class complexity6.00
▷ Maximum class complexity41.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
tinymce/icon-gss.png3.46KB0.92KB▼ 73.53%
images/gallery_icon_large-old.png2.67KB1.80KB▼ 32.82%
images/gallery_icon_large.png4.66KB1.71KB▼ 63.26%
images/icon-gss.png3.46KB0.92KB▼ 73.53%
images/icon-gss-old.png0.98KB1.14KB0.00%