88% gallery-with-thumbnail-slider

Code Review | Gallery with thumbnail slider

WordPress plugin Gallery with thumbnail slider scored88%from 54 tests.

About plugin

  • Plugin page: gallery-with-thum...
  • Plugin version: 6.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 15, 2019
  • Latest release: Sep 25, 2023
  • Number of updates: 36
  • Update frequency: every 46.8 days
  • Top authors: galaxyweblinks (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

3,000+ active /18,772 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
Installer ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▲2.88ms] Passed 4 tests

Analyzing server-side resources used by Gallery with thumbnail slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2837.58 ▼2.97
Dashboard /wp-admin3.61 ▲0.3149.31 ▲1.11
Posts /wp-admin/edit.php3.73 ▲0.3754.47 ▲11.34
Add New Post /wp-admin/post-new.php6.20 ▲0.31116.12 ▲15.36
Media Library /wp-admin/upload.php3.51 ▲0.2937.78 ▲2.03
Gallery /wp-admin/edit.php?post_type=gwts-gallery3.5843.38
Slider Settings /wp-admin/edit.php?post_type=gwts-gallery&page=gwts-slider-settings3.5237.79
Gallery Options /wp-admin/edit.php?post_type=gwts-gallery&page=gwts-opts3.5136.78

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Gallery with thumbnail slider: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,116 ▲37015.22 ▲0.846.47 ▲4.8040.03 ▼3.11
Dashboard /wp-admin2,385 ▲1946.45 ▲0.55136.14 ▲22.0443.04 ▼3.24
Posts /wp-admin/edit.php2,288 ▲1963.31 ▲1.3055.56 ▲17.9534.00 ▲0.77
Add New Post /wp-admin/post-new.php1,700 ▲16722.09 ▼0.88595.80 ▼88.2427.72 ▼25.37
Media Library /wp-admin/upload.php1,430 ▲424.27 ▲0.0379.36 ▼26.1045.64 ▲3.80
Gallery /wp-admin/edit.php?post_type=gwts-gallery1,2663.3353.4932.01
Slider Settings /wp-admin/edit.php?post_type=gwts-gallery&page=gwts-slider-settings1,3433.0338.9529.31
Gallery Options /wp-admin/edit.php?post_type=gwts-gallery&page=gwts-opts1,0733.1636.7724.97

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 79% from 29 tests

readme.txt 75% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Requires at least: Invalid version format
  • Screenshots: Screenshot #12 (Enable vertical gallery and settings) image missing
  • Screenshots: Add a description for screenshot #14 in gallery-with-thumbnail-slider/assets to your readme.txt
  • Requires php: Invalid version format
You can take inspiration from this readme.txt

gallery-with-thumbnail-slider/gwts-gallery.php 85% from 13 tests

The main file in "Gallery with thumbnail slider" v. 6.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("gallery-with-thumbnail-slider.php" instead of "gwts-gallery.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 294 characters long)

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
There were no executable files found in this plugin5,103 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript83151982,141
CSS486621,549
PHP8147451,366
SVG10047

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/img/video-play.png4.42KB1.05KB▼ 76.27%
includes/img/youtube-play.png5.06KB2.37KB▼ 53.04%
includes/images/controls.png2.62KB0.95KB▼ 63.62%
includes/images/thumbnail.png68.32KB30.79KB▼ 54.93%
includes/images/controls-white.png2.19KB0.95KB▼ 56.49%