83% blaze-retail-woocommerce

Code Review | BLAZE Retail WooCommerce

WordPress plugin BLAZE Retail WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: blaze-retail-wooc...
  • Plugin version: 2.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: Jul 24, 2018
  • Latest release: Nov 16, 2022
  • Number of updates: 137
  • Update frequency: every 11.5 days
  • Top authors: blazeretail (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /4,599 total downloads

Benchmarks

Plugin footprint 83% from 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.19MB] [CPU: ▼6.10ms] 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.67 ▲0.2139.46 ▲1.38
Dashboard /wp-admin3.51 ▲0.1648.09 ▼14.18
Posts /wp-admin/edit.php3.62 ▲0.2749.90 ▼0.89
Add New Post /wp-admin/post-new.php6.09 ▲0.2093.08 ▼10.71
Media Library /wp-admin/upload.php3.43 ▲0.2034.76 ▲1.91

Server storage [IO: ▲1.84MB] [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, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

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 /2,793 ▲4714.35 ▼0.011.64 ▼0.4438.36 ▼1.00
Dashboard /wp-admin2,202 ▲255.54 ▼0.0282.45 ▼4.6437.52 ▼7.76
Posts /wp-admin/edit.php2,083 ▼172.02 ▲0.0836.49 ▼0.1233.68 ▲0.78
Add New Post /wp-admin/post-new.php1,531 ▼223.10 ▼0.07599.62 ▼55.8366.61 ▲8.24
Media Library /wp-admin/upload.php1,401 ▼24.18 ▼0.0399.02 ▲4.9342.31 ▲0.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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: 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
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/blaze-retail-woocommerce/includes/class-pickup-shipping.php:3

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

Optimizations

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.5.2, 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:
  • 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
  • Domain Path: The domain path folder was not found ("/languages/")
  • 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,379 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP159995406,725
JavaScript122873432,405
CSS244491,248
Markdown1101

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 complexity50.57
▷ Minimum class complexity1.00
▷ Maximum class complexity222.00
Average method complexity3.84
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods222
▷ Static methods146.31%
▷ Public methods16272.97%
▷ Protected methods146.31%
▷ Private methods4620.72%
Functions9
▷ Named functions444.44%
▷ Anonymous functions555.56%
Constants11
▷ Global constants19.09%
▷ Class constants1090.91%
▷ Public constants10100.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%