83% logo-carousel-slider

Code Review | Logo Carousel Slider

WordPress plugin Logo Carousel Slider scored 83% from 54 tests.

About plugin

  • Plugin page: logo-carousel-slider
  • Plugin version: 2.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.6
  • WordPress version: 5.9.2
  • First release: Feb 1, 2016
  • Latest release: Oct 19, 2021
  • Number of updates: 69
  • Update frequency: every 30.3 days
  • Top authors: AdlPlugins (73.91%)aazztech (24.64%)armanul94 (4.35%)

Code review

54 tests

User reviews

24 reviews

Install metrics

10,000+ active / 141,027 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼307.06ms] Passed 4 tests

Analyzing server-side resources used by Logo Carousel Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.2961.96 ▲2.68
Dashboard /wp-admin3.73 ▲0.3242.07 ▲0.06
Posts /wp-admin/edit.php3.95 ▲0.3150.52 ▲1.55
Add New Post /wp-admin/post-new.php7.23 ▲0.26109.44 ▼1,232.53
Media Library /wp-admin/upload.php3.65 ▲0.3547.20 ▲20.11
All Logos /wp-admin/edit.php?post_type=logocarousel3.7233.30
Usage & Support /wp-admin/edit.php?post_type=logocarousel&page=lsc_usage_support3.6538.65
Settings /wp-admin/edit.php?post_type=logocarousel&page=settings3.6532.26
Add New Logo /wp-admin/post-new.php?post_type=logocarousel3.8852.22

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 3 new options
New WordPress options
lcs_style_settings
lcs_slider_settings
lcs_general_settings

Browser metrics Passed 4 tests

Checking browser requirements for Logo Carousel Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,030 ▲28617.67 ▲2.086.80 ▲0.552.28 ▼0.08
Dashboard /wp-admin3,151 ▲2908.37 ▲2.19179.37 ▲42.57155.79 ▼11.77
Posts /wp-admin/edit.php2,984 ▲3115.26 ▲2.0191.41 ▲24.06212.22 ▲68.80
Add New Post /wp-admin/post-new.php1,801 ▲2818.28 ▼3.56378.24 ▼68.79195.29 ▼21.43
Media Library /wp-admin/upload.php1,765 ▲705.66 ▲0.12110.39 ▼42.20181.53 ▼56.80
All Logos /wp-admin/edit.php?post_type=logocarousel1,6605.4589.96173.21
Usage & Support /wp-admin/edit.php?post_type=logocarousel&page=lsc_usage_support1,6074.8392.20185.62
Settings /wp-admin/edit.php?post_type=logocarousel&page=settings1,9834.8993.44128.90
Add New Logo /wp-admin/post-new.php?post_type=logocarousel2,2805.7195.58133.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 3 options
    • lcs_slider_settings
    • lcs_style_settings
    • lcs_general_settings

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/logo-carousel-slider/includes/lcs-settings.php
    • > /wp-content/plugins/logo-carousel-slider/includes/lcs-utility.php
    • > /wp-content/plugins/logo-carousel-slider/includes/lcs-metabox-overrider.php
    • > /wp-content/plugins/logo-carousel-slider/includes/lcs-img-resizer.php
    • > /wp-content/plugins/logo-carousel-slider/lcs-main.php
    • > /wp-content/plugins/logo-carousel-slider/includes/lcs-shortcodes.php
    • > /wp-content/plugins/logo-carousel-slider/includes/lcs-usage-support.php
    • > /wp-content/plugins/logo-carousel-slider/includes/class.settings-api.php

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 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: There are too many tags (18 tag instead of maximum 10)
Please take inspiration from this readme.txt

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

"Logo Carousel Slider" version 2.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("logo-carousel-slider.php" instead of "lcs-main.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,751 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP93404781,168
CSS67271576
JavaScript2597

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity17.62
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods63
▷ Static methods11.59%
▷ Public methods5892.06%
▷ Protected methods00.00%
▷ Private methods57.94%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/grabbing.png0.11KB0.14KB0.00%
css/owl.video.play.png4.86KB2.74KB▼ 43.61%