78% logo-slider-wp

Code Review | Logo Slider - Logo Carousel, Logo Showcase & Client Logo Slider WordPress Plugin

WordPress plugin Logo Slider - Logo Carousel, Logo Showcase & Client Logo Slider WordPress Plugin scored78%from 54 tests.

About plugin

  • Plugin page: logo-slider-wp
  • Plugin version: 3.9.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 1, 2016
  • Latest release: Nov 15, 2023
  • Number of updates: 124
  • Update frequency: every 21.3 days
  • Top authors: LogicHunt (100%)

Code review

54 tests

User reviews

55 reviews

Install metrics

20,000+ active /297,175 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼3.07ms] Passed 4 tests

A check of server-side resources used by Logo Slider - Logo Carousel, Logo Showcase & Client Logo Slider WordPress Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1036.48 ▼2.01
Dashboard /wp-admin3.54 ▲0.2050.99 ▼9.33
Posts /wp-admin/edit.php3.62 ▲0.2651.93 ▲2.32
Add New Post /wp-admin/post-new.php6.07 ▲0.1885.70 ▼2.18
Media Library /wp-admin/upload.php3.40 ▲0.1735.34 ▲1.26
Categories /wp-admin/edit-tags.php?taxonomy=logosliderwpcat&post_type=logosliderwp3.4239.13
All Logos /wp-admin/edit.php?post_type=logosliderwp3.4841.57
Usage & Help /wp-admin/edit.php?post_type=logosliderwp&page=logosliderwphelpuage3.4535.58
Add New Logo /wp-admin/post-new.php?post_type=logosliderwp3.5450.73
Shortcode Generator /wp-admin/edit.php?post_type=lgx_lsp_shortcodes3.4840.26

Server storage [IO: ▲3.75MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 96 new files
Database: no new tables, 11 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
logosliderwp_basic
logosliderwp_adv
logosliderwp_responsive
logosliderwp_config
widget_recent-comments
logosliderwp_style
can_compress_scripts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Logo Slider - Logo Carousel, Logo Showcase & Client Logo Slider WordPress Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,996 ▲24914.69 ▲0.331.69 ▲0.0339.94 ▼4.02
Dashboard /wp-admin2,392 ▲2146.33 ▲0.76120.25 ▲5.9443.29 ▲1.06
Posts /wp-admin/edit.php2,331 ▲2313.50 ▲1.5357.27 ▲20.8234.96 ▲2.52
Add New Post /wp-admin/post-new.php1,579 ▲4323.34 ▲0.21660.15 ▲40.5736.28 ▼21.15
Media Library /wp-admin/upload.php1,457 ▲544.34 ▲0.1683.41 ▼13.4644.34 ▲3.01
Categories /wp-admin/edit-tags.php?taxonomy=logosliderwpcat&post_type=logosliderwp1,4973.2747.0334.17
All Logos /wp-admin/edit.php?post_type=logosliderwp1,3273.5651.4730.14
Usage & Help /wp-admin/edit.php?post_type=logosliderwp&page=logosliderwphelpuage1,4453.2247.7797.84
Add New Logo /wp-admin/post-new.php?post_type=logosliderwp1,9133.8271.4935.41
Shortcode Generator /wp-admin/edit.php?post_type=lgx_lsp_shortcodes1,3113.5452.3130.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 11 options
    • logosliderwp_style
    • logosliderwp_config
    • logosliderwp_responsive
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • logosliderwp_basic
    • widget_recent-comments
    • logosliderwp_adv
    • widget_recent-posts
    • ...

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/logo-slider-wp/admin/partials/shortcode_meta_display/__meta_fields_lsp_shortcodes_get_pro.php
    • > /wp-content/plugins/logo-slider-wp/admin/partials/shortcode_meta_display/__meta_fields_lsp_shortcodes_help_block.php
    • > /wp-content/plugins/logo-slider-wp/admin/partials/logo-slider-wp-admin-display.php
  • 63× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: lgx_app_id in wp-content/plugins/logo-slider-wp/public/partials/template/view-default.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/logo-slider-wp/public/partials/view-controller.php on line 39
    • > PHP Notice
      Undefined variable: lgx_shortcodes_meta in wp-content/plugins/logo-slider-wp/public/partials/view-controller.php on line 38
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/logo-slider-wp/public/partials/view-controller.php on line 30
    • > PHP Notice
      Undefined variable: lgx_showcase_type in wp-content/plugins/logo-slider-wp/public/partials/template/view-default.php on line 11
    • > PHP Notice
      Undefined variable: lgx_tooltip_en in wp-content/plugins/logo-slider-wp/public/partials/template/view-default.php on line 15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/logo-slider-wp/public/partials/template/view-default.php on line 13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/logo-slider-wp/public/partials/view-controller.php on line 44
    • > PHP Notice
      Undefined variable: lgx_showcase_type in wp-content/plugins/logo-slider-wp/public/partials/template/view-default.php on line 11
    • > PHP Warning
      Use of undefined constant LGX_LS_PLUGIN_BASE - assumed 'LGX_LS_PLUGIN_BASE' (this will throw an Error in a future version of PHP) in wp-content/plugins/logo-slider-wp/public/partials/view-controller.php on line 15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
There were not plugin tags detected

logo-slider-wp/logo-slider-wp.php 92% from 13 tests

The principal PHP file in "Logo Slider - Logo Carousel, Logo Showcase & Client Logo Slider WordPress Plugin" v. 3.9.9 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 152 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected24,039 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript143,5523,88215,340
PHP411,4581,2474,717
SVG1002,671
CSS13701201,311

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 141)
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity41.67
▷ Minimum class complexity1.00
▷ Maximum class complexity187.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity141.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods98
▷ Static methods33.06%
▷ Public methods9293.88%
▷ Protected methods00.00%
▷ Private methods66.12%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants8
▷ Global constants8100.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
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/ls-logo.png0.97KB0.11KB▼ 88.59%
public/assets/libs/owl/assets/owl.video.play.png4.86KB2.74KB▼ 43.61%
public/assets/img/prev-m.png1.27KB0.57KB▼ 55.08%
public/assets/img/next.png1.31KB0.63KB▼ 51.56%
admin/img/lgx-logo-metabox.png4.97KB2.39KB▼ 51.88%