78% gallery-slider-slideshow

Code Review | Gallery Slider Slideshow

WordPress plugin Gallery Slider Slideshow scored78%from 54 tests.

About plugin

  • Plugin page: gallery-slider-sl...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Mar 15, 2016
  • Latest release: Mar 11, 2016
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: module.express (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,696 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
Install script ran successfully

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

A check of server-side resources used by Gallery Slider Slideshow
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0946.35 ▲5.54
Dashboard /wp-admin3.38 ▲0.0849.02 ▼5.03
Posts /wp-admin/edit.php3.43 ▲0.0852.82 ▲3.06
Add New Post /wp-admin/post-new.php5.97 ▲0.0896.93 ▲1.33
Media Library /wp-admin/upload.php3.30 ▲0.0836.75 ▲0.55
Add New /wp-admin/post-new.php?post_type=gss_gallery_slider3.4353.61
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_gss_slider-category&post_type=gss_gallery_slider3.3032.70
All Images /wp-admin/edit.php?post_type=gss_gallery_slider3.3538.03
Gallery showcases /wp-admin/edit.php?post_type=gss_gallery_slider&page=responsive_gallery-gss-bar-submenu-page3.2732.93

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Gallery Slider Slideshow: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲18414.08 ▼0.675.91 ▲3.9343.54 ▼0.88
Dashboard /wp-admin2,241 ▲595.86 ▼0.0097.51 ▼11.6940.50 ▼0.84
Posts /wp-admin/edit.php2,127 ▲412.03 ▲0.0541.65 ▲5.2035.71 ▲1.54
Add New Post /wp-admin/post-new.php1,569 ▲4123.19 ▲4.81614.30 ▼44.7957.64 ▼0.09
Media Library /wp-admin/upload.php1,426 ▲384.22 ▼0.0398.41 ▼2.2745.11 ▲2.04
Add New /wp-admin/post-new.php?post_type=gss_gallery_slider2,3217.71175.2465.72
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_gss_slider-category&post_type=gss_gallery_slider1,2772.1428.3429.51
All Images /wp-admin/edit.php?post_type=gss_gallery_slider1,1081.9332.8128.86
Gallery showcases /wp-admin/edit.php?post_type=gss_gallery_slider&page=responsive_gallery-gss-bar-submenu-page8202.1425.6529.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/gallery-slider-slideshow/designs/template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallery-slider-slideshow/gallery-slider-slideshow.php:325
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallery-slider-slideshow/gss_gallery_admin_settings_center.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?post_type=gss_gallery_slider&page=responsive_gallery-gss-bar-submenu-page
    • > Network (severe)
    wp-content/plugins/gallery-slider-slideshow/images/design-1.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Designs Views from admin side), #2 (Catagroies shortcode)
The official readme.txt is a good inspiration

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

The main PHP file in "Gallery Slider Slideshow" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
44 characters long description:
A simple Responsive Gallery Slider Slideshow

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,530 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS434201,947
JavaScript2207191,296
PHP35925287

PHP code Passed 2 tests

This is a very shot 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.23
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin