84% responsive-client-logo-carousel-slider

Code Review | Logo Carousel - Clients logo carousel for WordPress

WordPress plugin Logo Carousel - Clients logo carousel for WordPress scored 84% from 54 tests.

About plugin

  • Plugin page: responsive-client...
  • Plugin version: 1.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 30, 2018
  • Latest release: Sep 11, 2023
  • Number of updates: 39
  • Update frequency: every 46.4 days
  • Top authors: abuhayat (82.05%)shehabulislam (20.51%)

Code review

54 tests

User reviews

2 reviews

Install metrics

900+ active / 7,048 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
Install script ran successfully

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

An overview of server-side resources used by Logo Carousel - Clients logo carousel for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0458.63 ▲17.11
Dashboard /wp-admin3.37 ▲0.0744.76 ▼1.56
Posts /wp-admin/edit.php3.48 ▲0.1347.68 ▲3.68
Add New Post /wp-admin/post-new.php5.95 ▲0.0780.86 ▼2.11
Media Library /wp-admin/upload.php3.29 ▲0.0739.08 ▲5.07
Add New /wp-admin/post-new.php?post_type=scrollingcarousel3.3647.26
Client Logo Carousel /wp-admin/edit.php?post_type=scrollingcarousel3.3435.65

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Logo Carousel - Clients logo carousel for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.98 ▼0.785.23 ▲3.5040.41 ▼0.11
Dashboard /wp-admin2,232 ▲404.94 ▲0.02106.50 ▼12.1969.10 ▲22.49
Posts /wp-admin/edit.php2,118 ▲262.04 ▼0.0933.71 ▼7.0332.10 ▼5.79
Add New Post /wp-admin/post-new.php1,690 ▲16222.48 ▲4.45695.14 ▲84.7163.86 ▲15.06
Media Library /wp-admin/upload.php1,414 ▲234.22 ▼0.0593.45 ▼8.9269.58 ▲25.82
Add New /wp-admin/post-new.php?post_type=scrollingcarousel1,7993.7975.12131.71
Client Logo Carousel /wp-admin/edit.php?post_type=scrollingcarousel1,0841.9433.1229.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% 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 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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/responsive-client-logo-carousel-slider/metabox/class-usage-demo.php:4
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/responsive-client-logo-carousel-slider/scrolling-logo-carosel.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/responsive-client-logo-carousel-slider/scrolling-logo-carosel.php:14

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)
No browser issues were found

Optimizations

Plugin configuration 96% 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
5 plugin tags: client logo carousel, logo slideshow, slider, carousel, client logo slider

responsive-client-logo-carousel-slider/scrolling-logo-carosel.php 92% from 13 tests

The primary PHP file in "Logo Carousel - Clients logo carousel for WordPress" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("responsive-client-logo-carousel-slider.php" instead of "scrolling-logo-carosel.php")

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 detected9,546 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript108148287,310
PHP32509131,055
CSS6156971,001
PO File54555180

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity248.00
▷ Minimum class complexity248.00
▷ Maximum class complexity248.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods72
▷ Static methods00.00%
▷ Public methods72100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
21 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
metabox/meta-box-class/images/move.png0.26KB0.26KB0.00%
metabox/meta-box-class/js/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
metabox/meta-box-class/js/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
metabox/meta-box-class/js/jquery-ui/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
metabox/meta-box-class/js/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%