89% wc-gateway-gonano

Code Review | Payment Gateway for Gonano on WooCommerce

WordPress plugin Payment Gateway for Gonano on WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wc-gateway-gonano
  • Plugin version: 0.1.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Feb 18, 2021
  • Latest release: Mar 3, 2021
  • Number of updates: 13
  • Update frequency: every 1.0 days
  • Top authors: hectorchu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /559 total downloads


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.03MB] [CPU: ▼6.05ms] Passed 4 tests

This is a short check of server-side resources used by Payment Gateway for Gonano on WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.65 ▼1.67
Dashboard /wp-admin3.35 ▲0.0044.10 ▼15.57
Posts /wp-admin/edit.php3.40 ▲0.0446.66 ▼3.64
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.09 ▼3.30
Media Library /wp-admin/upload.php3.27 ▲0.0436.28 ▲0.93

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Payment Gateway for Gonano on WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.35 ▼0.081.93 ▲0.3644.35 ▲3.39
Dashboard /wp-admin2,198 ▲215.62 ▲0.0492.05 ▲2.3441.13 ▲1.48
Posts /wp-admin/edit.php2,097 ▼31.96 ▼0.0737.22 ▼2.4334.49 ▼3.65
Add New Post /wp-admin/post-new.php1,528 ▲223.18 ▲0.08666.52 ▼13.2158.87 ▲0.90
Media Library /wp-admin/upload.php1,394 ▼64.19 ▲0.0597.31 ▼19.9843.79 ▼5.10

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Invalid url: "nano:nano_3gonano8jnse4zm65jaiki9tk8ry4jtgc1smarinukho6fmbc45k3icsh6en"
The official readme.txt might help

wc-gateway-gonano/wc-gateway-gonano.php 92% from 13 tests

The main file in "Payment Gateway for Gonano on WooCommerce" v. 0.1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin194 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
▷ Named functions00.00%
▷ Anonymous functions5100.00%
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon.png1.34KB1.07KB▼ 20.13%