100% woo-cse-wallet-qr-gateway

Code Review | WooCommerce cse payment gateway

WordPress plugin WooCommerce cse payment gateway scored 100% from 54 tests.

About plugin

  • Plugin page: woo-cse-wallet-qr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Feb 23, 2019
  • Latest release: Mar 5, 2019
  • Number of updates: 7
  • Update frequency: every 1.9 days
  • Top authors: hieungocdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 273 total downloads

Benchmarks

Plugin footprint Passed 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼140.77ms] Passed 4 tests

Server-side resources used by WooCommerce cse payment gateway
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1540.73 ▲18.01
Dashboard /wp-admin3.09 ▲0.0352.84 ▲5.35
Posts /wp-admin/edit.php3.14 ▲0.0345.55 ▼2.98
Add New Post /wp-admin/post-new.php5.45 ▲0.0192.27 ▼562.38
Media Library /wp-admin/upload.php3.03 ▲0.0331.66 ▼3.07

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce cse payment gateway
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.31 ▲0.549.40 ▼2.3049.21 ▼0.07
Dashboard /wp-admin2,973 ▲365.85 ▼0.16147.35 ▼6.79111.46 ▲5.15
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0174.89 ▲10.5784.89 ▲0.74
Add New Post /wp-admin/post-new.php1,683 ▼018.76 ▲0.00398.88 ▲8.73114.13 ▲3.27
Media Library /wp-admin/upload.php1,810 ▲35.01 ▼0.01155.41 ▼4.26118.52 ▼2.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (CSE PAYMENT admin panel settings.), #2 (Pay with CSE PAYMENT option on checkout page.)
The official readme.txt might help

woo-cse-wallet-qr-gateway/woo-cse-wallet-qr-gateway.php Passed 13 tests

The main PHP file in "WooCommerce cse payment gateway" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
Add a payment method to WooCommerce using CSE Gateway.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin180 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14638180

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected