93% blaze-retail-woocommerce

Code Review | BLAZE Retail WooCommerce

WordPress plugin BLAZE Retail WooCommerce scored 93% from 54 tests.

About plugin

  • Plugin page: blaze-retail-wooc...
  • Plugin version: 2.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 5.8.1
  • First release: Jul 24, 2018
  • Latest release: Sep 3, 2021
  • Number of updates: 134
  • Update frequency: every 8.5 days
  • Top authors: blazeretail (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 3,943 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.22MB] [CPU: ▼138.03ms] Passed 4 tests

This is a short check of server-side resources used by BLAZE Retail WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.04 ▲0.3236.16 ▲16.39
Dashboard /wp-admin3.26 ▲0.2142.50 ▲10.87
Posts /wp-admin/edit.php3.37 ▲0.2743.44 ▲2.84
Add New Post /wp-admin/post-new.php5.62 ▲0.1984.94 ▼566.19
Media Library /wp-admin/upload.php3.21 ▲0.2033.65 ▲0.35

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by BLAZE Retail WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11216.27 ▲0.808.03 ▲0.1753.89 ▲7.58
Dashboard /wp-admin2,978 ▲445.86 ▼0.08132.46 ▼14.27105.45 ▼1.04
Posts /wp-admin/edit.php2,744 ▲52.69 ▲0.0063.31 ▼1.8487.93 ▼7.36
Add New Post /wp-admin/post-new.php1,687 ▲18918.55 ▼0.33364.91 ▼10.99111.63 ▼5.61
Media Library /wp-admin/upload.php1,815 ▲55.00 ▼0.00153.42 ▲1.06112.84 ▼6.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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 fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/blaze-retail-woocommerce/includes/class-pickup-shipping.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/blaze-retail-woocommerce/blaze-woo.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/blaze-retail-woocommerce/includes/class-delivery-shipping.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/blaze-retail-woocommerce/includes/class-Blaze-shipping.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% 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
3 plugin tags: ecommerce, blaze, woocommerce

blaze-retail-woocommerce/blaze-woo.php 77% from 13 tests

This is the main PHP file of "BLAZE Retail WooCommerce" version 2.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages/")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("blaze-retail-woocommerce.php" instead of "blaze-woo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected10,261 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity49.36
▷ Minimum class complexity1.00
▷ Maximum class complexity222.00
Average method complexity3.84
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
▷ Static methods146.48%
▷ Public methods16174.54%
▷ Protected methods146.48%
▷ Private methods4118.98%
▷ Named functions444.44%
▷ Anonymous functions555.56%
▷ Global constants111.11%
▷ Class constants888.89%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_0073ea_256x240.png6.84KB4.18KB▼ 38.88%