84% story-show-gallery

Code Review | Photo gallery lightbox – 📱 mobile friendly gallery plugin –– Story Show Gallery

WordPress plugin Photo gallery lightbox – 📱 mobile friendly gallery plugin –– Story Show Gallery scored84%from 54 tests.

About plugin

  • Plugin page: story-show-gallery
  • Plugin version: 1.10.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.3
  • WordPress version: 6.3.1
  • First release: Mar 19, 2019
  • Latest release: Sep 22, 2023
  • Number of updates: 129
  • Update frequency: every 12.8 days
  • Top authors: florcz (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /5,045 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼1.21ms] Passed 4 tests

An overview of server-side resources used by Photo gallery lightbox – 📱 mobile friendly gallery plugin –– Story Show Gallery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1542.42 ▼0.11
Dashboard /wp-admin3.49 ▲0.1951.88 ▼3.98
Posts /wp-admin/edit.php3.61 ▲0.2550.50 ▲2.46
Add New Post /wp-admin/post-new.php6.08 ▲0.1995.74 ▼3.19
Media Library /wp-admin/upload.php3.42 ▲0.1938.25 ▲4.14
Story Show Gallery /wp-admin/options-general.php?page=story-show-gallery3.3941.67

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Photo gallery lightbox – 📱 mobile friendly gallery plugin –– Story Show Gallery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲12013.54 ▼0.8010.82 ▲9.1739.30 ▼7.78
Dashboard /wp-admin2,196 ▲255.50 ▼0.1886.79 ▼8.1940.80 ▼2.65
Posts /wp-admin/edit.php2,104 ▲12.01 ▼0.0536.51 ▼1.6934.41 ▼1.50
Add New Post /wp-admin/post-new.php1,529 ▲123.66 ▲0.31661.99 ▲15.9556.24 ▼6.70
Media Library /wp-admin/upload.php1,401 ▼24.19 ▼0.03102.54 ▼1.5548.18 ▼1.06
Story Show Gallery /wp-admin/options-general.php?page=story-show-gallery1,6431.6824.6874.13

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
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/story-show-gallery/story-show-gallery.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: wordpress gallery plugin, lightbox gallery, lightbox, responsive gallery, image gallery...

story-show-gallery/story-show-gallery.php Passed 13 tests

Analyzing the main PHP file in "Photo gallery lightbox – 📱 mobile friendly gallery plugin –– Story Show Gallery" version 1.10.7
104 characters long description:
Vertical photo gallery with optimally placed captions, full screen lightbox, minimalist, no ugly arrows.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,242 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP113017864
CSS34310199
Markdown1520105
JavaScript25374

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.36
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/link-css-class.png0.97KB0.92KB▼ 4.63%
img/donate.png7.78KB3.86KB▼ 50.40%
img/link-to-media-file.png0.52KB0.49KB▼ 6.34%