89% ultimate-woocommerce-brands

Code Review | Ultimate WooCommerce Brands

WordPress plugin Ultimate WooCommerce Brands scored89%from 54 tests.

About plugin

  • Plugin page: ultimate-woocomme...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.1
  • WordPress version: 6.3.1
  • First release: Nov 13, 2014
  • Latest release: May 5, 2021
  • Number of updates: 37
  • Update frequency: every 63.9 days
  • Top authors: magniumthemes (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

900+ active /36,277 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.04MB] [CPU: ▼6.86ms] Passed 4 tests

An overview of server-side resources used by Ultimate WooCommerce Brands
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.78 ▲0.22
Dashboard /wp-admin3.35 ▲0.0144.91 ▼16.33
Posts /wp-admin/edit.php3.47 ▲0.1142.04 ▼2.08
Add New Post /wp-admin/post-new.php5.93 ▲0.0582.64 ▼9.24
Media Library /wp-admin/upload.php3.28 ▲0.0535.35 ▲4.18

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_mgwoocommercebrands_list_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate WooCommerce Brands
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.22 ▼1.151.70 ▲0.1140.12 ▼0.31
Dashboard /wp-admin2,233 ▲424.88 ▼0.0796.75 ▼4.4974.85 ▲32.41
Posts /wp-admin/edit.php2,116 ▲272.01 ▼0.0135.35 ▲0.1532.47 ▲0.00
Add New Post /wp-admin/post-new.php1,694 ▲18022.44 ▲5.00758.42 ▲159.2953.42 ▼5.90
Media Library /wp-admin/upload.php1,415 ▲274.22 ▼0.0096.99 ▼0.0581.74 ▲37.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_mgwoocommercebrands_list_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ultimate-woocommerce-brands === )
You can look at the official readme.txt

ultimate-woocommerce-brands/mgwoocommercebrands-light.php 92% from 13 tests

The principal PHP file in "Ultimate WooCommerce Brands" v. 2.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ultimate-woocommerce-brands.php" instead of "mgwoocommercebrands-light.php")

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 detected833 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3130110453
PO File18893191
CSS207150
JavaScript13039

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity12.33
▷ Minimum class complexity3.00
▷ Maximum class complexity21.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2696.30%
▷ Protected methods13.70%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.56MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-5.png119.60KB43.53KB▼ 63.61%
img/hosting-wp-button.png26.03KB9.36KB▼ 64.05%
assets/screenshot-3.png78.51KB26.99KB▼ 65.63%
img/plugin-wrapper.png25.39KB9.67KB▼ 61.91%
assets/screenshot-1.png141.45KB46.29KB▼ 67.28%