67% gs-logo-slider

Code Review | Logo Slider - Logo Showcase, Logo Carousel, Logo Gallery and Client Logo Presentation

WordPress plugin Logo Slider - Logo Showcase, Logo Carousel, Logo Gallery and Client Logo Presentation scored67%from 54 tests.

About plugin

  • Plugin page: gs-logo-slider
  • Plugin version: 3.6.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.4
  • WordPress version: 6.3.1
  • First release: Mar 30, 2015
  • Latest release: Dec 3, 2023
  • Number of updates: 199
  • Update frequency: every 15.9 days
  • Top authors: samdani (100%)

Code review

54 tests

User reviews

197 reviews

Install metrics

20,000+ active /488,859 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼5.66ms] 75% from 4 tests

Analyzing server-side resources used by Logo Slider - Logo Showcase, Logo Carousel, Logo Gallery and Client Logo Presentation
It is recommended to improve the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 641.20ms on /wp-admin/edit.php?post_type=gs-logo-slider&page=gs-logo-plugins-premium)
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2535.90 ▼7.65
Dashboard /wp-admin3.58 ▲0.2351.72 ▼9.14
Posts /wp-admin/edit.php3.63 ▲0.2753.67 ▲6.99
Add New Post /wp-admin/post-new.php6.10 ▲0.2190.21 ▼11.74
Media Library /wp-admin/upload.php3.42 ▲0.1939.87 ▲5.90
Add New Logo /wp-admin/post-new.php?post_type=gs-logo-slider3.6054.66
Logo Shortcode /wp-admin/edit.php?post_type=gs-logo-slider&page=gs-logo-shortcode3.4336.59
Logo Category /wp-admin/edit-tags.php?taxonomy=logo-category&post_type=gs-logo-slider3.5738.44
All Logos /wp-admin/edit.php?post_type=gs-logo-slider3.5237.59
GS Plugins Lite /wp-admin/edit.php?post_type=gs-logo-slider&page=gs-logo-plugins-lite3.73689.94
GS Plugins Pro /wp-admin/edit.php?post_type=gs-logo-slider&page=gs-logo-plugins-premium3.55641.20
Help & Usage /wp-admin/edit.php?post_type=gs-logo-slider&page=gs-logo-plugins-help3.3933.91

Server storage [IO: ▲1.86MB] [DB: ▲0.04MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 87 new files
Database: 1 new table, 9 new options
New tables
wp_gs_logo_slider
New WordPress options
gs_logo_slider_shortcode_prefs
db_upgraded
gs_logo_slider_version
widget_recent-comments
wp_gs_logo_slider_db_version
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Logo Slider - Logo Showcase, Logo Carousel, Logo Gallery and Client Logo Presentation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,284 ▲52213.89 ▼0.459.58 ▲7.8637.62 ▼5.77
Dashboard /wp-admin2,538 ▲3615.84 ▲0.2499.59 ▲9.4675.77 ▲33.23
Posts /wp-admin/edit.php2,426 ▲3232.40 ▲0.4637.25 ▼2.8236.38 ▲1.56
Add New Post /wp-admin/post-new.php1,774 ▲24823.35 ▲0.14703.65 ▲17.9737.96 ▼18.91
Media Library /wp-admin/upload.php1,796 ▲4024.44 ▲0.39101.59 ▲4.9185.59 ▲42.93
Add New Logo /wp-admin/post-new.php?post_type=gs-logo-slider2,5437.86194.29139.97
Logo Shortcode /wp-admin/edit.php?post_type=gs-logo-slider&page=gs-logo-shortcode1,3763.9873.9551.90
Logo Category /wp-admin/edit-tags.php?taxonomy=logo-category&post_type=gs-logo-slider1,6022.0536.1538.67
All Logos /wp-admin/edit.php?post_type=gs-logo-slider1,3642.2333.4132.49
Install Demo /wp-admin/edit.php?post_type=gs-logo-slider&page=gs-logo-shortcode#/demo-data1,3943.7374.3743.57
GS Plugins Lite /wp-admin/edit.php?post_type=gs-logo-slider&page=gs-logo-plugins-lite2,8241.8227.90120.02
GS Plugins Pro /wp-admin/edit.php?post_type=gs-logo-slider&page=gs-logo-plugins-premium2,3821.8525.7963.33
Help & Usage /wp-admin/edit.php?post_type=gs-logo-slider&page=gs-logo-plugins-help1,1841.9226.5140.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_gs_logo_slider
  • This plugin does not fully uninstall, leaving 9 options in the database
    • gs_logo_slider_version
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • wp_gs_logo_slider_db_version
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • gs_logo_slider_shortcode_prefs

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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/gs-logo-slider/includes/integrations/beaver/includes/frontend.php
  • 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/gs-logo-slider/templates/partials/gs-logo-layout-title.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/gs-logo-slider/templates/gs-logo-theme-table-1.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function GSLOGO\\get_the_ID() in wp-content/plugins/gs-logo-slider/templates/partials/gs-logo-layout-image.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/gs-logo-slider/includes/shortcode-builder/page.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/gs-logo-slider/includes/shortcode-builder/preview.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function GSLOGO\\the_content() in wp-content/plugins/gs-logo-slider/templates/partials/gs-logo-layout-details.php:16
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/gs-logo-slider/templates/gs-logo-theme-list-1.php:20
    • > PHP Notice
      Trying to get property 'shortcode_id' of non-object in wp-content/plugins/gs-logo-slider/includes/integrations/beaver/includes/frontend.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'td_block' not found in wp-content/plugins/gs-logo-slider/includes/integrations/includes/gs-logo-slider-block.php:3
    • > PHP Notice
      Undefined variable: speed in wp-content/plugins/gs-logo-slider/templates/gs-logo-theme-slider-1.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: client logo, logo wordpress plugin, wordpress logo slider, logo slider, logo carousel slider...

gs-logo-slider/gs-logo.php 77% from 13 tests

The main file in "Logo Slider - Logo Showcase, Logo Carousel, Logo Gallery and Client Logo Presentation" v. 3.6.0 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: Please rename the main PHP file in this plugin to the plugin slug ("gs-logo-slider.php" instead of "gs-logo.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 396 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin5,921 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
PHP451,9909245,116
CSS104920597
JSON100194
JavaScript952510
SVG4004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity17.40
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes30
▷ Abstract classes13.33%
▷ Concrete classes2996.67%
▷ Final classes517.24%
Methods321
▷ Static methods216.54%
▷ Public methods28388.16%
▷ Protected methods226.85%
▷ Private methods164.98%
Functions44
▷ Named functions3375.00%
▷ Anonymous functions1125.00%
Constants6
▷ Global constants6100.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
13 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/dummy-data/gs-logo-slider-11.png9.49KB4.72KB▼ 50.32%
assets/img/dummy-data/gs-logo-slider-2.png12.18KB5.37KB▼ 55.87%
assets/img/dummy-data/gs-logo-slider-10.png9.14KB4.51KB▼ 50.65%
assets/img/dummy-data/gs-logo-slider-8.png17.37KB7.30KB▼ 57.96%
assets/img/dummy-data/gs-logo-slider-4.png13.02KB5.59KB▼ 57.06%