83% blaze-checkout

Code Review | Blaze Checkout for WooCommerce

WordPress plugin Blaze Checkout for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: blaze-checkout
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Feb 15, 2022
  • Latest release: Apr 29, 2022
  • Number of updates: 4
  • Update frequency: every 18.2 days
  • Top authors: goblaze (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /346 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.41ms] Passed 4 tests

An overview of server-side resources used by Blaze Checkout for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.53 ▼5.23
Dashboard /wp-admin3.31 ▲0.0145.77 ▼0.73
Posts /wp-admin/edit.php3.42 ▲0.0743.53 ▼4.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.00 ▼3.26
Media Library /wp-admin/upload.php3.23 ▲0.0133.54 ▼0.85

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Blaze Checkout for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.141.72 ▼1.0544.34 ▼4.79
Dashboard /wp-admin2,204 ▲195.83 ▲0.96100.96 ▼15.3641.89 ▼4.53
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0435.90 ▲0.6131.23 ▼6.14
Add New Post /wp-admin/post-new.php1,537 ▼523.36 ▲4.88626.30 ▼32.6657.44 ▼17.26
Media Library /wp-admin/upload.php1,395 ▲164.22 ▼0.02100.02 ▼1.3242.42 ▼3.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 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 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
Please take a closer look at the following
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'blazeCheckout' not found in wp-content/plugins/blaze-checkout/includes/frontend/frontendScript.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blaze-checkout/includes/admin/orderExport.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blaze-checkout/includes/admin/customer-settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blaze-checkout/includes/frontend/cart.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blaze-checkout/includes/frontend/singleProduct.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blaze-checkout/includes/admin/menu.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blaze-checkout/includes/admin/order.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (19 tag instead of maximum 10)
The official readme.txt is a good inspiration

blaze-checkout/blaze-Checkout.php 85% from 13 tests

Analyzing the main PHP file in "Blaze Checkout for WooCommerce" version 1.0.1
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 317 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("blaze-checkout.php" instead of "blaze-Checkout.php")

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
Everything looks great! No dangerous files found in this plugin920 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8166276871
JavaScript25034
JSON10012
CSS1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.28
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin