73% hm-logo-showcase

Code Review | Logo Showcase with Logo Carousel, Logo Slider & Logo Grid

WordPress plugin Logo Showcase with Logo Carousel, Logo Slider & Logo Grid scored73%from 54 tests.

About plugin

  • Plugin page: hm-logo-showcase
  • Plugin version: 2.0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 13, 2021
  • Latest release: Jul 9, 2023
  • Number of updates: 80
  • Update frequency: every 11.4 days
  • Top authors: mhmrajib (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /3,196 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲5.42MB] [CPU: ▲32.43ms] 75% from 4 tests

A check of server-side resources used by Logo Showcase with Logo Carousel, Logo Slider & Logo Grid
Please have a look at the following items
  • Extra RAM: Extra memory usage should kept under 5MB (currently 5.42MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.22 ▲5.7672.91 ▲27.44
Dashboard /wp-admin9.24 ▲5.9483.48 ▲29.35
Posts /wp-admin/edit.php9.24 ▲5.8893.57 ▲39.78
Add New Post /wp-admin/post-new.php9.98 ▲4.10131.08 ▲34.72
Media Library /wp-admin/upload.php9.24 ▲6.0177.88 ▲38.21
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2465.82

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 256 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
fs_active_plugins
fs_debug_mode
widget_theysaidso_widget
fs_accounts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Logo Showcase with Logo Carousel, Logo Slider & Logo Grid
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲20313.93 ▼0.608.48 ▲6.2530.74 ▼11.26
Dashboard /wp-admin2,253 ▲795.84 ▲0.2098.10 ▲8.1945.02 ▲2.08
Posts /wp-admin/edit.php2,158 ▲612.28 ▲0.2643.15 ▲2.8038.53 ▼2.20
Add New Post /wp-admin/post-new.php1,563 ▲3522.14 ▼1.01692.52 ▲0.0737.51 ▼15.88
Media Library /wp-admin/upload.php1,455 ▲554.41 ▲0.2599.41 ▼18.4744.04 ▼7.75
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1251.9327.8227.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/hm-logo-showcase/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-posts
    • fs_debug_mode
    • db_upgraded
    • fs_accounts
    • can_compress_scripts
    • fs_active_plugins
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/hm-logo-showcase/front/view/logo.php:42

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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: logo slider, image carousel, client logo slider, logo carousel, client logo carousel

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

This is the main PHP file of "Logo Showcase with Logo Carousel, Logo Slider & Logo Grid" version 2.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 142 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin39,587 lines of code in 180 files:
LanguageFilesBlank linesComment linesLines of code
PHP1448,22317,27135,177
JavaScript89601162,705
PO File5426641941
CSS2215948751
SVG11013

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity78.26
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits6
Classes52
▷ Abstract classes23.85%
▷ Concrete classes5096.15%
▷ Final classes00.00%
Methods1,309
▷ Static methods19715.05%
▷ Public methods89968.68%
▷ Protected methods352.67%
▷ Private methods37528.65%
Functions105
▷ Named functions105100.00%
▷ Anonymous functions00.00%
Constants153
▷ Global constants10669.28%
▷ Class constants4730.72%
▷ Public constants47100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%