89% coinqvest-for-woocommerce

Code Review | COINQVEST for WooCommerce - Cryptocurrency Payment Gateway

WordPress plugin COINQVEST for WooCommerce - Cryptocurrency Payment Gateway scored89%from 54 tests.

About plugin

  • Plugin page: coinqvest-for-woo...
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.4
  • WordPress version: 6.3.1
  • First release: Jun 15, 2020
  • Latest release: Nov 27, 2023
  • Number of updates: 22
  • Update frequency: every 57.3 days
  • Top authors: coinqvest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,006 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.27ms] Passed 4 tests

Server-side resources used by COINQVEST for WooCommerce - Cryptocurrency Payment Gateway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.09 ▼3.89
Dashboard /wp-admin3.36 ▲0.0246.47 ▼15.53
Posts /wp-admin/edit.php3.48 ▲0.1247.10 ▲0.03
Add New Post /wp-admin/post-new.php5.94 ▲0.0691.05 ▼3.96
Media Library /wp-admin/upload.php3.29 ▲0.0633.32 ▼1.69

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for COINQVEST for WooCommerce - Cryptocurrency Payment Gateway
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3514.70 ▼0.031.59 ▼0.1436.66 ▼6.35
Dashboard /wp-admin2,199 ▲215.61 ▲0.0491.70 ▼23.3043.52 ▲1.15
Posts /wp-admin/edit.php2,107 ▲71.95 ▼0.0639.57 ▲0.5638.24 ▲4.01
Add New Post /wp-admin/post-new.php1,533 ▲723.16 ▼0.11599.24 ▼44.5947.71 ▼9.90
Media Library /wp-admin/upload.php1,407 ▲104.21 ▼0.0797.03 ▼1.5844.26 ▼0.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
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 shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
Please take inspiration from this readme.txt

coinqvest-for-woocommerce/coinqvest-for-woocommerce.php 92% from 13 tests

"COINQVEST for WooCommerce - Cryptocurrency Payment Gateway" version 1.1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected995 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP20384467991
CSS1004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity7.88
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods71
▷ Static methods45.63%
▷ Public methods6185.92%
▷ Protected methods11.41%
▷ Private methods912.68%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/wc-cq-logo.png8.56KB3.36KB▼ 60.75%
assets/images/ajax-close-icon@2x.png0.96KB0.11KB▼ 88.56%