89% bakrypt-blockchain-extension

Code Review | Bakrypt Blockchain Tokenization Extension for WooCommerce

WordPress plugin Bakrypt Blockchain Tokenization Extension for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: bakrypt-blockchai...
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 7.1-6.3.2
  • WordPress version: 6.3.1
  • First release: Feb 9, 2023
  • Latest release: Oct 20, 2023
  • Number of updates: 18
  • Update frequency: every 14.1 days
  • Top authors: bakrypt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /736 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼10.37ms] Passed 4 tests

Analyzing server-side resources used by Bakrypt Blockchain Tokenization Extension for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0934.93 ▼3.18
Dashboard /wp-admin3.41 ▲0.0743.93 ▼17.68
Posts /wp-admin/edit.php3.53 ▲0.1748.49 ▲3.50
Add New Post /wp-admin/post-new.php5.99 ▲0.1179.85 ▼22.21
Media Library /wp-admin/upload.php3.34 ▲0.1135.05 ▲1.61

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Bakrypt Blockchain Tokenization Extension for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.24 ▼0.131.83 ▲0.2737.73 ▼2.63
Dashboard /wp-admin2,199 ▲225.51 ▼0.0594.73 ▲3.5143.12 ▼0.61
Posts /wp-admin/edit.php2,107 ▲102.01 ▼0.0139.45 ▲3.7838.22 ▲6.40
Add New Post /wp-admin/post-new.php1,543 ▲1723.05 ▼0.14665.97 ▲19.8452.27 ▼2.11
Media Library /wp-admin/upload.php1,407 ▲74.17 ▼0.0594.44 ▼1.8541.35 ▼5.63

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected 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 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
6 plugin tags: blockchain, nft, cardano, tokenization, woocommerce...

bakrypt-blockchain-extension/bakrypt-wc-extension.php 77% from 13 tests

The primary PHP file in "Bakrypt Blockchain Tokenization Extension for WooCommerce" version 1.2.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("6.0" instead of "7.1")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bakrypt-blockchain-extension.php" instead of "bakrypt-wc-extension.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin13,242 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12,6872,19411,265
PHP194125921,943
CSS13129
JSON1005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity17.50
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods95
▷ Static methods6366.32%
▷ Public methods8892.63%
▷ Protected methods33.16%
▷ Private methods44.21%
Functions9
▷ Named functions555.56%
▷ Anonymous functions444.44%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 1.10MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png76.14KB28.83KB▼ 62.14%
assets/screenshot-9.png171.53KB62.88KB▼ 63.34%
assets/screenshot-2.png92.06KB35.19KB▼ 61.78%
assets/icon-256x256.png6.25KB2.86KB▼ 54.24%
assets/screenshot-12.PNG95.09KB99.97KB0.00%