82% smart-logo-showcase-lite

Code Review | Responsive Clients Logo Gallery Plugin for WordPress - Smart Logo Showcase Lite

WordPress plugin Responsive Clients Logo Gallery Plugin for WordPress - Smart Logo Showcase Lite scored 82% from 54 tests.

About plugin

  • Plugin page: smart-logo-showca...
  • Plugin version: 1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 5.9.2
  • First release: Jan 20, 2017
  • Latest release: Oct 21, 2021
  • Number of updates: 42
  • Update frequency: every 41.3 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

10,000+ active / 132,345 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.12MB] [CPU: ▼294.11ms] Passed 4 tests

Server-side resources used by Responsive Clients Logo Gallery Plugin for WordPress - Smart Logo Showcase Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2060.47 ▲10.40
Dashboard /wp-admin3.57 ▲0.1737.66 ▲3.50
Posts /wp-admin/edit.php3.80 ▲0.1644.40 ▲4.03
Add New Post /wp-admin/post-new.php7.02 ▲0.0596.04 ▼1,179.56
Media Library /wp-admin/upload.php3.41 ▲0.1222.85 ▼4.39
About Us /wp-admin/edit.php?post_type=smartlogo&page=smls-about-us3.4526.37
All Smart Logo /wp-admin/edit.php?post_type=smartlogo3.5434.29
Check Premium Version /wp-admin/edit.php?post_type=smartlogo&page=smls-premium-wp3.4127.28
Add New /wp-admin/post-new.php?post_type=smartlogo4.0047.81
Documentation /wp-admin/edit.php?post_type=smartlogo&page=smls-documentation-wp3.4124.08

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 58 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive Clients Logo Gallery Plugin for WordPress - Smart Logo Showcase Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,271 ▲51718.45 ▲2.3711.72 ▲5.824.53 ▲1.94
Dashboard /wp-admin3,178 ▲3248.33 ▲2.13145.89 ▲9.17229.90 ▲64.08
Posts /wp-admin/edit.php3,009 ▲3155.12 ▲1.7693.67 ▲28.79142.63 ▼7.17
Add New Post /wp-admin/post-new.php1,731 ▼2116.36 ▼5.57407.84 ▼53.47183.79 ▼37.35
Media Library /wp-admin/upload.php1,800 ▲1085.68 ▲0.18148.44 ▼3.95215.26 ▼29.62
About Us /wp-admin/edit.php?post_type=smartlogo&page=smls-about-us1,89911.76255.52204.86
All Smart Logo /wp-admin/edit.php?post_type=smartlogo1,7135.3678.82116.67
Check Premium Version /wp-admin/edit.php?post_type=smartlogo&page=smls-premium-wp8672.4640.8471.29
Add New /wp-admin/post-new.php?post_type=smartlogo4,9156.53184.23261.35
Documentation /wp-admin/edit.php?post_type=smartlogo&page=smls-documentation-wp8682.4645.1274.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=smartlogo
    • > Notice in wp-content/plugins/smart-logo-showcase-lite/smart-logo-showcase-lite.php+337
    Trying to get property 'post_type' of non-object
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=smartlogo&page=smls-documentation-wp
    • > Warning in wp-includes/pluggable.php+1358
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2699)

SRP 0% 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
Please fix the following
  • 12× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/smart-logo-showcase-lite/inc/frontend/smls-detail/smls-inline-style.php
    • > /wp-content/plugins/smart-logo-showcase-lite/inc/admin/smls-forms/smls-logo-data.php
    • > /wp-content/plugins/smart-logo-showcase-lite/inc/smls-settings/smls-usages-option.php
    • > /wp-content/plugins/smart-logo-showcase-lite/inc/frontend/smls-shortcode.php
    • > /wp-content/plugins/smart-logo-showcase-lite/inc/admin/smls-about-page.php
    • > /wp-content/plugins/smart-logo-showcase-lite/inc/admin/smls-forms/smls-form-detail.php
    • > /wp-content/plugins/smart-logo-showcase-lite/inc/smls-settings/smls-general-settings.php
    • > /wp-content/plugins/smart-logo-showcase-lite/inc/smls-settings/upgrade.php
    • > /wp-content/plugins/smart-logo-showcase-lite/inc/admin/smls-stuff-page.php
    • > /wp-content/plugins/smart-logo-showcase-lite/smart-logo-showcase-lite.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/smart-logo-showcase-lite/inc/smls-block/smls-block-init.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: wordpress logo plugin, title logo showcase plugin, tooltip logo showcase plugin, grid logo showcase plugin, slider logo showcase plugin...

smart-logo-showcase-lite/smart-logo-showcase-lite.php 85% from 13 tests

The primary PHP file in "Responsive Clients Logo Gallery Plugin for WordPress - Smart Logo Showcase Lite" version 1.1.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Description: The description should be shorter than 140 characters (currently 146 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
Good job! No executable or dangerous file extensions detected9,482 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51,2642,1494,676
CSS81391332,146
PHP141291031,975
SVG100685

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/select2.png0.51KB0.33KB▼ 34.94%
images/googleplus.png1.91KB0.99KB▼ 48.06%
images/theme.png52.01KB17.38KB▼ 66.59%
images/flicker.png1.45KB0.57KB▼ 60.47%
images/plugin.png12.50KB5.31KB▼ 57.50%