84% gallery-slideshow

Code Review | Gallery Slideshow

WordPress plugin Gallery Slideshow scored84%from 54 tests.

About plugin

  • Plugin page: gallery-slideshow
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Oct 4, 2013
  • Latest release: Nov 10, 2017
  • Number of updates: 41
  • Update frequency: every 36.5 days
  • Top authors: jethin (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

2,000+ active /42,060 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.28ms] Passed 4 tests

This is a short check of server-side resources used by Gallery Slideshow
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0345.82 ▲5.31
Dashboard /wp-admin3.33 ▼0.0151.82 ▼13.93
Posts /wp-admin/edit.php3.38 ▲0.0348.61 ▼5.13
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.90 ▼7.35
Media Library /wp-admin/upload.php3.25 ▲0.0340.95 ▲6.14

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Gallery Slideshow
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.16 ▼1.361.61 ▼0.3140.65 ▼2.67
Dashboard /wp-admin2,206 ▲214.86 ▼0.93105.39 ▼1.6840.86 ▼0.83
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0235.60 ▼4.4432.14 ▼6.87
Add New Post /wp-admin/post-new.php1,539 ▲623.41 ▲0.03649.57 ▼24.0555.76 ▲1.58
Media Library /wp-admin/upload.php1,391 ▼04.23 ▲0.06103.87 ▲4.6947.16 ▲2.76

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require(): Failed opening required 'gss_html.php' (include_path='.:/usr/share/php') in wp-content/plugins/gallery-slideshow/assets/embed.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gallery-slideshow/gallery-slideshow.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: gallery, slideshow

gallery-slideshow/gallery-slideshow.php Passed 13 tests

"Gallery Slideshow" version 1.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
Turn any WordPress gallery into a slideshow using the "gss" shortcode.

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
Success! There were no dangerous files found in this plugin562 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP33023240
JavaScript51027173
CSS1301149

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
There are no PNG files in this plugin