94% logo-carousel-slider-wp

Code Review | Logo Carousel Slider WP

WordPress plugin Logo Carousel Slider WP scored 94% from 54 tests.

About plugin

  • Plugin page: logo-carousel-sli...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.6.2
  • WordPress version: 5.8.1
  • First release: Nov 15, 2018
  • Latest release: Feb 26, 2021
  • Number of updates: 6
  • Update frequency: every 139.0 days
  • Top authors: logoslider (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 297 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼144.12ms] Passed 4 tests

Analyzing server-side resources used by Logo Carousel Slider WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0228.83 ▼5.18
Dashboard /wp-admin3.07 ▲0.0151.10 ▲3.70
Posts /wp-admin/edit.php3.12 ▲0.0144.69 ▼4.31
Add New Post /wp-admin/post-new.php5.43 ▼0.0189.48 ▼566.40
Media Library /wp-admin/upload.php3.01 ▲0.0129.01 ▼0.60

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Logo Carousel Slider WP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,818 ▲22216.23 ▲0.6612.84 ▲1.2453.08 ▲3.73
Dashboard /wp-admin2,973 ▲395.95 ▲0.04136.50 ▼5.05111.18 ▼1.12
Posts /wp-admin/edit.php2,739 ▼02.71 ▲0.0165.28 ▲3.9892.94 ▼3.44
Add New Post /wp-admin/post-new.php1,504 ▼11118.57 ▼3.29374.96 ▲105.49103.02 ▼1.47
Media Library /wp-admin/upload.php1,807 ▼05.00 ▼0.00151.67 ▲4.75118.45 ▼8.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/logo-carousel-slider-wp/carousel-slider.php:105

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: logo carousel slider

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

Analyzing the main PHP file in "Logo Carousel Slider WP" version 1.0.1
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("logo-carousel-slider-wp.php" instead of "carousel-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,313 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24679121,903
CSS73254260
PHP1251081
Markdown137069

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/owlcarousel/assets/owl.video.play.png4.86KB2.74KB▼ 43.61%