78% client-logo-carousel

Code Review | Client Logo Carousel - Responsive Logo Image Slider for WordPress

WordPress plugin Client Logo Carousel - Responsive Logo Image Slider for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: client-logo-carousel
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.3
  • WordPress version: 6.3.1
  • First release: Dec 28, 2019
  • Latest release: Dec 28, 2019
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: anranik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /870 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼1.33ms] Passed 4 tests

This is a short check of server-side resources used by Client Logo Carousel - Responsive Logo Image Slider for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.73 ▼2.10
Dashboard /wp-admin3.46 ▲0.1648.46 ▼3.39
Posts /wp-admin/edit.php3.51 ▲0.1551.32 ▲2.37
Add New Post /wp-admin/post-new.php6.00 ▲0.1199.04 ▼0.39
Media Library /wp-admin/upload.php3.36 ▲0.1337.96 ▲0.57
Add New Carousel /wp-admin/post-new.php?post_type=clc_carousel3.8255.87
All Carousels /wp-admin/edit.php?post_type=clc_carousel3.4341.37

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 357 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Client Logo Carousel - Responsive Logo Image Slider for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲18513.44 ▼0.928.19 ▲6.5741.16 ▲1.18
Dashboard /wp-admin2,240 ▲635.68 ▲0.0195.23 ▼2.2741.26 ▼1.59
Posts /wp-admin/edit.php2,145 ▲452.07 ▲0.1441.63 ▲2.6036.77 ▲0.04
Add New Post /wp-admin/post-new.php1,560 ▲3223.27 ▲0.04640.10 ▼3.2961.07 ▲6.86
Media Library /wp-admin/upload.php1,439 ▲394.31 ▲0.13100.12 ▼6.6244.02 ▼2.82
Add New Carousel /wp-admin/post-new.php?post_type=clc_carousel1,9383.6672.5137.33
All Carousels /wp-admin/edit.php?post_type=clc_carousel1,1231.9634.2932.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/client-logo-carousel/public/partials/client-logo-carousel-public-display.php
    • > /wp-content/plugins/client-logo-carousel/admin/partials/client-logo-carousel-admin-display.php
  • 39× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/client-logo-carousel/inc/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/client-logo-carousel/inc/cmb2/includes/types/CMB2_Type_File.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/client-logo-carousel/inc/cmb2/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/client-logo-carousel/inc/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/client-logo-carousel/admin/class-client-logo-carousel-metabox.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/client-logo-carousel/inc/cmb2/includes/types/CMB2_Type_Text_Date.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/client-logo-carousel/inc/cmb2/includes/types/CMB2_Type_File_List.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/client-logo-carousel/inc/cmb2/includes/types/CMB2_Type_Title.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/client-logo-carousel/inc/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/client-logo-carousel/inc/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Too many tags (44 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #0, #0, #0, #0, #0, #0 in client-logo-carousel/assets to your readme.txt
The official readme.txt might help

client-logo-carousel/client-logo-carousel.php 92% from 13 tests

The entry point to "Client Logo Carousel - Responsive Logo Image Slider for WordPress" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 162 characters long)

Code Analysis Passed 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
There were no executable files found in this plugin46,373 lines of code in 211 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP672,2286,6537,339
CSS141,1761,1594,697
JavaScript83315531,382
Markdown22140632

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity16.93
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes73
▷ Abstract classes810.96%
▷ Concrete classes6589.04%
▷ Final classes00.00%
Methods546
▷ Static methods8816.12%
▷ Public methods45082.42%
▷ Protected methods8816.12%
▷ Private methods81.47%
Functions39
▷ Named functions39100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants440.00%
▷ Class constants660.00%
▷ Public constants6100.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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/cmb2/images/ico-delete.png0.70KB0.72KB0.00%
inc/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
inc/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
inc/cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
inc/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%