78% logo-showcase-ultimate

Code Review | Logo Showcase Ultimate - Logo Carousel, Logo Slider & Logo Grid

WordPress plugin Logo Showcase Ultimate - Logo Carousel, Logo Slider & Logo Grid scored78%from 54 tests.

About plugin

  • Plugin page: logo-showcase-ult...
  • Plugin version: 1.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jul 1, 2018
  • Latest release: Nov 14, 2023
  • Number of updates: 52
  • Update frequency: every 37.8 days
  • Top authors: aazztech (50%)armanul94 (44.23%)AdlPlugins (9.62%)

Code review

54 tests

User reviews

26 reviews

Install metrics

5,000+ active /54,108 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.33MB] [CPU: ▲5.36ms] Passed 4 tests

Server-side resources used by Logo Showcase Ultimate - Logo Carousel, Logo Slider & Logo Grid
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3342.21 ▼0.90
Dashboard /wp-admin3.63 ▲0.3262.81 ▲9.60
Posts /wp-admin/edit.php3.74 ▲0.3860.74 ▲16.38
Add New Post /wp-admin/post-new.php6.23 ▲0.34100.53 ▲4.55
Media Library /wp-admin/upload.php3.56 ▲0.3242.52 ▲8.18
Usage & Support /wp-admin/edit.php?post_type=lcg_mainpost&page=lcg_usage_support3.5249.12
Shortcode Generator /wp-admin/edit.php?post_type=lcg_shortcode3.5947.03
All Logos /wp-admin/edit.php?post_type=lcg_mainpost3.5944.55
Add New logo /wp-admin/post-new.php?post_type=lcg_mainpost3.6556.80
Logo Categories /wp-admin/edit-tags.php?taxonomy=lcg_category&post_type=lcg_mainpost3.5643.63

Server storage [IO: ▲0.67MB] [DB: ▲0.01MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Logo Showcase Ultimate - Logo Carousel, Logo Slider & Logo Grid
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,214 ▲45223.66 ▲9.0246.39 ▲44.5540.52 ▼4.56
Dashboard /wp-admin2,367 ▲1939.60 ▲4.02116.94 ▲19.3669.03 ▲25.26
Posts /wp-admin/edit.php2,253 ▲1569.34 ▲7.4079.48 ▲41.7836.04 ▲0.69
Add New Post /wp-admin/post-new.php6,273 ▲4,74719.22 ▼4.16834.68 ▲159.1536.57 ▼21.20
Media Library /wp-admin/upload.php1,576 ▲17311.45 ▲7.32127.28 ▲28.3040.03 ▼0.88
Usage & Support /wp-admin/edit.php?post_type=lcg_mainpost&page=lcg_usage_support1,1348.9771.0645.74
Shortcode Generator /wp-admin/edit.php?post_type=lcg_shortcode1,2819.2770.5334.44
All Logos /wp-admin/edit.php?post_type=lcg_mainpost1,2739.3471.4837.40
Add New logo /wp-admin/post-new.php?post_type=lcg_mainpost1,97710.69107.8184.01
Logo Categories /wp-admin/edit-tags.php?taxonomy=lcg_category&post_type=lcg_mainpost1,4489.0368.2432.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/logo-showcase-ultimate/lcg_adl_main.php
    • > /wp-content/plugins/logo-showcase-ultimate/template/navigation.php
    • > /wp-content/plugins/logo-showcase-ultimate/template/carousel-pagination.php
  • 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      Use of undefined constant LCG_PLUGIN_URI - assumed 'LCG_PLUGIN_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/logo-showcase-ultimate/template/navigation.php on line 11
    • > PHP Warning
      Use of undefined constant LCG_PLUGIN_URI - assumed 'LCG_PLUGIN_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/logo-showcase-ultimate/template/navigation.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/logo-showcase-ultimate/template/theme/grid-theme-2.php:7
    • > PHP Notice
      Undefined variable: tooltip_show in wp-content/plugins/logo-showcase-ultimate/template/theme/carousel-theme-3.php on line 3
    • > PHP Notice
      Undefined variable: tooltip_show in wp-content/plugins/logo-showcase-ultimate/template/theme/carousel-theme-2.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/logo-showcase-ultimate/classes/elementor/widget.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/logo-showcase-ultimate/template/theme/carousel-theme-3.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/logo-showcase-ultimate/template/theme/carousel-theme-1.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/logo-showcase-ultimate/template/theme/carousel-theme-2.php:9
    • > PHP Notice
      Undefined variable: tooltip_show in wp-content/plugins/logo-showcase-ultimate/template/theme/grid-theme-1.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

logo-showcase-ultimate/lcg_adl_main.php 85% from 13 tests

"Logo Showcase Ultimate - Logo Carousel, Logo Slider & Logo Grid" version 1.3.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 167 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("logo-showcase-ultimate.php" instead of "lcg_adl_main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin9,062 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP367238474,855
CSS6276431,855
JavaScript74142121,765
Sass2547470
JSON110114
SVG3003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity34.91
▷ Minimum class complexity1.00
▷ Maximum class complexity96.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity96.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods140
▷ Static methods42.86%
▷ Public methods10474.29%
▷ Protected methods75.00%
▷ Private methods2920.71%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin