63% logo-carousel-free

Code Review | Logo Carousel – Logo Slider, Logo Showcase, and Clients Logo Gallery

WordPress plugin Logo Carousel – Logo Slider, Logo Showcase, and Clients Logo Gallery scored63%from 54 tests.

About plugin

  • Plugin page: logo-carousel-free
  • Plugin version: 3.4.23
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Mar 12, 2016
  • Latest release: Nov 6, 2023
  • Number of updates: 138
  • Update frequency: every 20.3 days
  • Top authors: shapedplugin (41.3%)rubel_miah (41.3%)wplimb (17.39%)Shamimmiashuhagh (2.17%)

Code review

54 tests

User reviews

144 reviews

Install metrics

20,000+ active /476,431 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.27MB] [CPU: ▲8.78ms] Passed 4 tests

Server-side resources used by Logo Carousel – Logo Slider, Logo Showcase, and Clients Logo Gallery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.74 ▲1.2846.75 ▲5.14
Dashboard /wp-admin4.57 ▲1.2757.46 ▲9.14
Posts /wp-admin/edit.php4.65 ▲1.2959.31 ▲12.21
Add New Post /wp-admin/post-new.php7.17 ▲1.2898.34 ▲8.64
Media Library /wp-admin/upload.php4.49 ▲1.2648.37 ▲14.25
Settings /wp-admin/edit.php?post_type=sp_logo_carousel&page=lc_settings6.6549.73
Tools /wp-admin/edit.php?post_type=sp_logo_carousel&page=lcpro_tools6.6550.82
Shortcode Generator /wp-admin/edit.php?post_type=sp_lc_shortcodes6.7258.77
Add New /wp-admin/post-new.php?post_type=sp_logo_carousel6.7161.11
Help /wp-admin/edit.php?post_type=sp_logo_carousel&page=lc_help6.6558.24
All Logos /wp-admin/edit.php?post_type=sp_logo_carousel6.7269.94

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 140 new files
Database: no new tables, 12 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
logo_carousel_free_version
logo_carousel_free_activation_date
theysaidso_admin_options
_sp_lcpro_options
logo_carousel_free_db_version
sp_logo_carousel_free_review_notice_dismiss
logo_carousel_free_first_version
...

Browser metrics Passed 4 tests

Checking browser requirements for Logo Carousel – Logo Slider, Logo Showcase, and Clients Logo Gallery
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲11114.33 ▲0.051.60 ▼0.1028.71 ▼10.30
Dashboard /wp-admin2,275 ▲985.61 ▼0.0593.07 ▼1.5840.75 ▼4.41
Posts /wp-admin/edit.php2,177 ▲771.98 ▼0.0440.84 ▲2.8038.56 ▲3.44
Add New Post /wp-admin/post-new.php6,247 ▲4,72118.88 ▼4.411,051.24 ▲349.2456.64 ▼1.44
Media Library /wp-admin/upload.php1,478 ▲754.26 ▲0.0697.95 ▼0.2643.07 ▼1.50
Settings /wp-admin/edit.php?post_type=sp_logo_carousel&page=lc_settings1,2313.9563.9840.95
Tools /wp-admin/edit.php?post_type=sp_logo_carousel&page=lcpro_tools1,2124.2060.5366.33
Shortcode Generator /wp-admin/edit.php?post_type=sp_lc_shortcodes1,3704.3053.5030.88
Add New /wp-admin/post-new.php?post_type=sp_logo_carousel1,7794.8373.3337.69
Help /wp-admin/edit.php?post_type=sp_logo_carousel&page=lc_help1,94110.63299.92136.82
All Logos /wp-admin/edit.php?post_type=sp_logo_carousel1,3634.1653.7429.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Compile error in wp-content/plugins/logo-carousel-free/main.php+422
    Cannot redeclare sp_logo_carousel() (previously declared in wp-content/plugins/logo-carousel-free/main.php:423)
  • Uninstaller has failed for this plugin, leaving 140 files (2.42MB) in the plugin directory
    • (new file) admin/GutenbergBlock/build/index.js
    • (new file) admin/GutenbergBlock/assets/logo-carousel.svg
    • (new file) admin/GutenbergBlock/build/index.asset.php
    • (new file) admin/Logo_Carousel_Free_Element_Shortcode_Block_Deprecated.php
    • (new file) admin/ElementBlock_Deprecated/Logo_Carousel_Free_Element_Shortcode_Widget_Deprecated.php
    • (new file) admin/ElementBlock/Logo_Carousel_Free_Element_Shortcode_Widget.php
    • (new file) admin/assets/css/admin.css
    • (new file) admin/GutenbergBlock/assets/logo-carousel-block-preview.svg
    • (new file) admin/GutenbergBlock/class-logo-carousel-free-gutenberg-block-init.php
    • (new file) admin/Logo_Carousel_Free_Element_Shortcode_Block.php
    • ...
  • This plugin does not fully uninstall, leaving 13 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • sp_logo_carousel_free_review_notice_dismiss
    • logo_carousel_free_first_version
    • can_compress_scripts
    • recovery_mode_email_last_sent
    • logo_carousel_free_activation_date
    • _sp_lcpro_options
    • logo_carousel_free_db_version
    • ...

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logo-carousel-free/admin/Logo_Carousel_Free_Element_Shortcode_Block_Deprecated.php:111
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/logo-carousel-free/includes/updates/update-3.3.1.php:8
    • > PHP Notice
      Undefined variable: preloader in wp-content/plugins/logo-carousel-free/public/views/templates/preloader.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/logo-carousel-free/includes/updates/update-3.3.0.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/logo-carousel-free/public/views/dynamic-style.php:56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/logo-carousel-free/includes/updates/update-3.4.9.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/logo-carousel-free/includes/updates/update-3.2.8.php:8
    • > PHP Notice
      Undefined variable: post_id in wp-content/plugins/logo-carousel-free/public/views/templates/carousel.php on line 9
    • > PHP Notice
      Undefined variable: output in wp-content/plugins/logo-carousel-free/public/views/templates/carousel.php on line 9
    • > PHP Warning
      Use of undefined constant SP_LC_PATH - assumed 'SP_LC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/logo-carousel-free/public/views/templates/carousel.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
You can look at the official readme.txt

logo-carousel-free/main.php 85% from 13 tests

Analyzing the main PHP file in "Logo Carousel – Logo Slider, Logo Showcase, and Clients Logo Gallery" version 3.4.23
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("logo-carousel-free.php" instead of "main.php")
  • Description: The description should be shorter than 140 characters (currently 203 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
Good job! No executable or dangerous file extensions detected24,907 lines of code in 124 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript92,40152011,437
PHP661,4122,6567,480
CSS153305145,159
SVG3403831

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity23.67
▷ Minimum class complexity1.00
▷ Maximum class complexity141.00
Average method complexity5.93
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes42
▷ Abstract classes24.76%
▷ Concrete classes4095.24%
▷ Final classes00.00%
Methods194
▷ Static methods3115.98%
▷ Public methods18796.39%
▷ Protected methods42.06%
▷ Private methods31.55%
Functions26
▷ Named functions2596.15%
▷ Anonymous functions13.85%
Constants5
▷ Global constants5100.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
3 compressed PNG files occupy 0.02MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/css/images/Mark-Kolodziej-min.png9.56KB8.75KB▼ 8.46%
admin/assets/css/images/Daniel-Powney-min.png7.53KB7.51KB0.18%
admin/views/sp-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%