84% woo-custom-erc20

Code Review | WooCommerce Customize ERC20 Currency

WordPress plugin WooCommerce Customize ERC20 Currency scored84%from 54 tests.

About plugin

  • Plugin page: woo-custom-erc20
  • Plugin version: 0.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 1, 2018
  • Latest release: Nov 3, 2018
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: bestony (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /863 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by WooCommerce Customize ERC20 Currency
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.56 ▲0.81
Dashboard /wp-admin3.33 ▼0.0243.78 ▼20.08
Posts /wp-admin/edit.php3.38 ▲0.0246.37 ▲3.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.99 ▼21.49
Media Library /wp-admin/upload.php3.25 ▲0.0233.75 ▲2.92
WooCommerce Customize ERC20 Currency /wp-admin/options-general.php?page=woocommerce_customize_erc20_currency3.2029.18

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

WooCommerce Customize ERC20 Currency: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.41 ▲0.061.74 ▼0.0644.24 ▼0.45
Dashboard /wp-admin2,199 ▲195.57 ▼0.0884.26 ▼14.8937.99 ▼5.25
Posts /wp-admin/edit.php2,107 ▲71.95 ▼0.0233.09 ▼0.8933.22 ▲1.56
Add New Post /wp-admin/post-new.php1,531 ▲323.10 ▼0.07668.63 ▲81.5950.71 ▼5.76
Media Library /wp-admin/upload.php1,407 ▲44.15 ▼0.0095.08 ▼4.1244.66 ▲0.00
WooCommerce Customize ERC20 Currency /wp-admin/options-general.php?page=woocommerce_customize_erc20_currency7952.0222.5327.47

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=woocommerce_customize_erc20_currency
    • > Notice in wp-content/plugins/woo-custom-erc20/woocommerce-custom-erc20-currencies.php+105
    Trying to access array offset on value of type bool

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: erc20, woocommerce, currency

woo-custom-erc20/woocommerce-custom-erc20-currencies.php 92% from 13 tests

The main PHP file in "WooCommerce Customize ERC20 Currency" ver. 0.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-custom-erc20.php" instead of "woocommerce-custom-erc20-currencies.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
Everything looks great! No dangerous files found in this plugin161 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1302082
PO File1132343
Markdown326036

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin