10% coinwaypay-gateway-for-woocommerce

Code Review | CoinwayPAY Gateway for Woocommerce

WordPress plugin CoinwayPAY Gateway for Woocommerce scored10%from 54 tests.

About plugin

  • Plugin page: coinwaypay-gatewa...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.5
  • WordPress version: 6.3.1
  • First release: Sep 22, 2020
  • Latest release: Oct 8, 2020
  • Number of updates: 19
  • Update frequency: every 0.8 days
  • Top authors: doscoinway (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /605 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/coinwaypay-gateway-for-woocommerce/class-wc-gateway-coinway.php+239
    The (real) cast is deprecated, use (float) instead

Server metrics [RAM: ▼1.91MB] [CPU: ▼58.70ms] Passed 4 tests

A check of server-side resources used by CoinwayPAY Gateway for Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.19 ▼39.54
Dashboard /wp-admin2.10 ▼1.206.87 ▼46.13
Posts /wp-admin/edit.php2.10 ▼1.256.52 ▼48.34
Add New Post /wp-admin/post-new.php2.10 ▼3.786.30 ▼100.79
Media Library /wp-admin/upload.php2.10 ▼1.137.10 ▼25.16

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for CoinwayPAY Gateway for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.33 ▼0.031.72 ▼0.3545.01 ▲1.59
Dashboard /wp-admin2,192 ▲155.55 ▼0.0388.96 ▲1.2042.33 ▲0.80
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0438.69 ▼1.6738.36 ▲1.73
Add New Post /wp-admin/post-new.php1,526 ▼023.54 ▲0.68681.11 ▼14.7558.20 ▲4.86
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.0395.14 ▼9.8144.29 ▼0.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/coinwaypay-gateway-for-woocommerce/class-wc-gateway-coinway.php+239
    The (real) cast is deprecated, use (float) instead
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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 your attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

coinwaypay-gateway-for-woocommerce/index.php 85% from 13 tests

The entry point to "CoinwayPAY Gateway for Woocommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 161 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("coinwaypay-gateway-for-woocommerce.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin319 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27214319

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.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 images were found in this plugin