89% blocks-product-editor-for-woocommerce

Code Review | Blocks Product Editor for WooCommerce

WordPress plugin Blocks Product Editor for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: blocks-product-ed...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 7, 2022
  • Latest release: Jul 8, 2023
  • Number of updates: 11
  • Update frequency: every 33.3 days
  • Top authors: ethereumicoio (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /1,310 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

This is a short check of server-side resources used by Blocks Product Editor for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.46 ▲0.49
Dashboard /wp-admin3.31 ▲0.0049.14 ▼0.45
Posts /wp-admin/edit.php3.36 ▲0.0049.22 ▲1.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.09 ▼26.82
Media Library /wp-admin/upload.php3.23 ▲0.0034.08 ▼0.74

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 361 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Blocks Product Editor for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▼0.092.02 ▲0.1243.30 ▲4.58
Dashboard /wp-admin2,198 ▲245.63 ▲0.0185.75 ▼2.1138.98 ▼3.07
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0134.64 ▼0.0135.10 ▼0.21
Add New Post /wp-admin/post-new.php1,526 ▼023.40 ▲0.37687.19 ▲8.4858.65 ▼0.05
Media Library /wp-admin/upload.php1,400 ▲34.18 ▲0.09101.38 ▼13.5445.80 ▼0.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: editor, gutenberg, woocommerce, e-commerce

blocks-product-editor-for-woocommerce/blocks-product-editor-for-woocommerce.php 92% from 13 tests

The main PHP script in "Blocks Product Editor for WooCommerce" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "5.5.0")

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin40,600 lines of code in 228 files:
LanguageFilesBlank linesComment linesLines of code
PHP1288,23717,40133,889
PO File821,8091,9746,043
SVG121443
JavaScript33459194
JSON10018
CSS130013

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity87.50
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.55
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes52
▷ Abstract classes23.85%
▷ Concrete classes5096.15%
▷ Final classes00.00%
Methods1,296
▷ Static methods21216.36%
▷ Public methods90569.83%
▷ Protected methods171.31%
▷ Private methods37428.86%
Functions112
▷ Named functions11199.11%
▷ Anonymous functions10.89%
Constants146
▷ Global constants9967.81%
▷ Class constants4732.19%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.32MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/icon-128x128.png18.41KB11.21KB▼ 39.09%
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
assets/screenshot-2.png24.29KB8.15KB▼ 66.44%
assets/icon-256x256.png54.68KB26.31KB▼ 51.88%