10% logo-awesome

Code Review | Logo Awesome - Client Brand Logo Showcase

WordPress plugin Logo Awesome - Client Brand Logo Showcase scored10%from 54 tests.

About plugin

  • Plugin page: logo-awesome
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 25, 2020
  • Latest release: Dec 16, 2022
  • Number of updates: 13
  • Update frequency: every 62.5 days
  • Top authors: themesawesome (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,571 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/logo-awesome/logo-awesome.php+48
    Constant LOGO_AWESOME_NAME already defined

Server metrics [RAM: ▼1.96MB] [CPU: ▼59.97ms] Passed 4 tests

A check of server-side resources used by Logo Awesome - Client Brand Logo Showcase
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.06 ▼40.40
Dashboard /wp-admin2.05 ▼1.264.88 ▼58.40
Posts /wp-admin/edit.php2.05 ▼1.314.85 ▼52.47
Add New Post /wp-admin/post-new.php2.05 ▼3.846.78 ▼88.61
Media Library /wp-admin/upload.php2.05 ▼1.185.10 ▼33.91
All Logos /wp-admin/edit.php?post_type=logo-awesome2.057.92
Add New /wp-admin/post-new.php?post_type=logo-awesome2.056.46

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Logo Awesome - Client Brand Logo Showcase
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,124 ▲38918.40 ▲4.051.73 ▼0.1740.44 ▼3.24
Dashboard /wp-admin2,531 ▲3469.30 ▲4.36160.48 ▼5.7138.75 ▼30.06
Posts /wp-admin/edit.php2,459 ▲3706.29 ▲4.2683.45 ▲42.7631.10 ▼9.92
Add New Post /wp-admin/post-new.php6,499 ▲4,96623.79 ▲0.471,033.31 ▲382.5751.56 ▲5.11
Media Library /wp-admin/upload.php1,583 ▲1956.59 ▲2.42134.22 ▲11.6653.97 ▼4.02
All Logos /wp-admin/edit.php?post_type=logo-awesome1,4236.1682.7332.43
Add New /wp-admin/post-new.php?post_type=logo-awesome15,90112.75484.3356.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/logo-awesome/logo-awesome.php+48
    Constant LOGO_AWESOME_NAME already defined
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=logo-awesome
    • > Notice in wp-content/plugins/logo-awesome/logo-awesome.php+48
    Constant LOGO_AWESOME_NAME already defined

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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/logo-awesome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 141× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Carbon_Fields\\Provider\\add_filter() in wp-content/plugins/logo-awesome/vendor/htmlburger/carbon-fields/core/Provider/Container_Condition_Provider.php:254
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/logo-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Blog_ID_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/logo-awesome/vendor/htmlburger/carbon-fields/core/Field/Checkbox_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/logo-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Parent_Condition.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/logo-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Custom_Comparer.php:7
    • > PHP Notice
      Undefined variable: logo_awesome_select_logo in wp-content/plugins/logo-awesome/elementor-widgets/logos/tpl/logo-block.php on line 4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/logo-awesome/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/logo-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Level_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/logo-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_ID_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/logo-awesome/public/logo-styles/grid-card-1.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: logo, logo slider, logo showcase, brand, logo carousel

logo-awesome/logo-awesome.php Passed 13 tests

Analyzing the main PHP file in "Logo Awesome - Client Brand Logo Showcase" version 1.0.0
37 characters long description:
Partner & Client Logo Showcase Plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin46,836 lines of code in 485 files:
LanguageFilesBlank linesComment linesLines of code
CSS193,6431,73217,767
JavaScript1895,3878,90613,688
PHP1862,8937,30410,770
Sass5136701,936
PO File216147831,673
JSON1200797
Markdown6520162
SVG10043

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.01
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces27
Interfaces6
Traits0
Classes137
▷ Abstract classes118.03%
▷ Concrete classes12691.97%
▷ Final classes10.79%
Methods973
▷ Static methods10210.48%
▷ Public methods79481.60%
▷ Protected methods16917.37%
▷ Private methods101.03%
Functions133
▷ Named functions4231.58%
▷ Anonymous functions9168.42%
Constants40
▷ Global constants1537.50%
▷ Class constants2562.50%
▷ Public constants25100.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
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/timeline-vertical-bg.png0.91KB0.10KB▼ 89.19%
public/img/date-icon-vertical.png0.95KB0.17KB▼ 82.60%
public/img/vertical-8.png0.11KB0.11KB▼ 0.85%
public/img/date-icon.png0.14KB0.18KB0.00%
public/img/timeline-bg.png0.08KB0.10KB0.00%