89% block-editor-for-woocommerce

Code Review | Block Editor For WooCommerce

WordPress plugin Block Editor For WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: block-editor-for-...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Nov 19, 2019
  • Latest release: Nov 4, 2023
  • Number of updates: 13
  • Update frequency: every 111.2 days
  • Top authors: mhamudul_hk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /1,798 total downloads


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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.51ms] Passed 4 tests

A check of server-side resources used by Block Editor For WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.05 ▼1.12
Dashboard /wp-admin3.31 ▲0.0044.61 ▼6.58
Posts /wp-admin/edit.php3.36 ▲0.0047.46 ▼2.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.99 ▼15.34
Media Library /wp-admin/upload.php3.23 ▲0.0033.82 ▼1.94

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Block Editor For WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.26 ▲0.081.76 ▼0.0939.60 ▼7.40
Dashboard /wp-admin2,198 ▲215.58 ▼0.1088.93 ▼9.1840.21 ▼3.13
Posts /wp-admin/edit.php2,103 ▲61.94 ▼0.0139.55 ▼0.9736.13 ▲3.52
Add New Post /wp-admin/post-new.php1,526 ▼3123.31 ▼0.45587.72 ▼14.3253.74 ▲3.46
Media Library /wp-admin/upload.php1,394 ▼64.26 ▲0.1099.67 ▲4.9043.68 ▲2.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: woocommerce, block editor, block, gutenberg

block-editor-for-woocommerce/block-editor-for-woocommerce.php 85% from 13 tests

The main PHP script in "Block Editor For WooCommerce" version 1.2.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

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
No dangerous file extensions were detected170 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin