78% logo-showcase

Code Review | Logo Showcase

WordPress plugin Logo Showcase scored78%from 54 tests.

About plugin

  • Plugin page: logo-showcase
  • Plugin version: 2.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 27, 2016
  • Latest release: Nov 11, 2023
  • Number of updates: 73
  • Update frequency: every 35.9 days
  • Top authors: themepoints (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

900+ active /21,904 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.16ms] Passed 4 tests

An overview of server-side resources used by Logo Showcase
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.27 ▼8.64
Dashboard /wp-admin3.34 ▲0.0447.19 ▼0.06
Posts /wp-admin/edit.php3.39 ▲0.0347.68 ▼2.56
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.62 ▼5.37
Media Library /wp-admin/upload.php3.26 ▲0.0335.52 ▲3.28
Support & Doc /wp-admin/edit.php?post_type=tplogoshowcase&page=support3.2938.29
Add Showcase /wp-admin/post-new.php?post_type=tplogoshowcase3.4055.06
All Showcases /wp-admin/edit.php?post_type=tplogoshowcase3.3444.28

Server storage [IO: ▲1.32MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
tplogoshowcase_installed
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Logo Showcase
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲18013.51 ▼0.8110.99 ▲9.1343.03 ▲1.68
Dashboard /wp-admin2,229 ▲495.60 ▼0.0086.03 ▼12.2440.46 ▼2.43
Posts /wp-admin/edit.php2,131 ▲281.95 ▼0.0736.01 ▼5.5835.19 ▼4.78
Add New Post /wp-admin/post-new.php1,552 ▲2123.15 ▲0.18606.90 ▼18.1651.38 ▼0.68
Media Library /wp-admin/upload.php1,428 ▲284.13 ▼0.02102.55 ▼1.7145.65 ▲0.75
Support & Doc /wp-admin/edit.php?post_type=tplogoshowcase&page=support1,0523.3644.2626.87
Add Showcase /wp-admin/post-new.php?post_type=tplogoshowcase4,9665.63153.5133.94
All Showcases /wp-admin/edit.php?post_type=tplogoshowcase1,3073.5350.8628.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • tplogoshowcase_installed

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/logo-showcase/shortcode/themes/style-2.php
    • > /wp-content/plugins/logo-showcase/shortcode/themes/style-3.php
    • > /wp-content/plugins/logo-showcase/inc/logo-showcase-postytpe.php
    • > /wp-content/plugins/logo-showcase/shortcode/logo-showcase-shortcode.php
    • > /wp-content/plugins/logo-showcase/inc/logo-showcase-admin-info.php
    • > /wp-content/plugins/logo-showcase/logo-showcase-wordpress.php
    • > /wp-content/plugins/logo-showcase/inc/logo-showcase-metabox.php
    • > /wp-content/plugins/logo-showcase/shortcode/themes/style-1.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=tplogoshowcase
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'value')" "TypeError: Cannot read properties of null (reading 'value')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/logo-showcase/admin/js/logo-showcase-backend-admin.js?ver=1.0.0:5:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=tplogoshowcase
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of null (reading 'value')

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #5 (screenshot-5), #6 (screenshot-6)
You can take inspiration from this readme.txt

logo-showcase/logo-showcase-wordpress.php 92% from 13 tests

Analyzing the main PHP file in "Logo Showcase" version 2.0.7
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("logo-showcase.php" instead of "logo-showcase-wordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin10,247 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS527373,141
JavaScript46687552,899
SVG1002,671
PHP71501231,536

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected