68% coinqvest

Code Review | COINQVEST - Cryptocurrency Payment Gateway for Bitcoin

WordPress plugin COINQVEST - Cryptocurrency Payment Gateway for Bitcoin scored68%from 54 tests.

About plugin

  • Plugin page: coinqvest
  • Plugin version: 1.1.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.4
  • WordPress version: 6.3.1
  • First release: Jun 2, 2020
  • Latest release: Nov 25, 2023
  • Number of updates: 25
  • Update frequency: every 50.8 days
  • Top authors: coinqvest (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /4,187 total downloads


Plugin footprint 65% 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.14MB] [CPU: ▼3.29ms] Passed 4 tests

A check of server-side resources used by COINQVEST - Cryptocurrency Payment Gateway for Bitcoin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1332.58 ▼9.93
Dashboard /wp-admin3.44 ▲0.1446.24 ▼1.70
Posts /wp-admin/edit.php3.56 ▲0.2048.35 ▼0.66
Add New Post /wp-admin/post-new.php6.04 ▲0.1690.24 ▼0.86
Media Library /wp-admin/upload.php3.37 ▲0.1435.58 ▲1.33
Logs /wp-admin/admin.php?page=coinqvest-logs3.3431.79
Payment Buttons /wp-admin/admin.php?page=coinqvest-payment-buttons3.6034.69
Add Payment Button /wp-admin/admin.php?page=coinqvest-add-payment-button3.4130.62
Edit Payment Button /wp-admin/admin.php?page=coinqvest-edit-payment-button3.4128.50
Settings /wp-admin/admin.php?page=coinqvest-settings3.4628.79
COINQVEST /wp-admin/admin.php?page=coinqvest3.3628.35

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: 2 new tables, 7 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for COINQVEST - Cryptocurrency Payment Gateway for Bitcoin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲18613.43 ▼0.958.80 ▲7.0939.30 ▼4.61
Dashboard /wp-admin2,240 ▲665.69 ▲0.1591.59 ▼5.1981.55 ▲32.58
Posts /wp-admin/edit.php2,151 ▲512.02 ▲0.0239.16 ▼1.7334.72 ▼0.08
Add New Post /wp-admin/post-new.php1,718 ▲19122.31 ▼0.65707.67 ▲95.0351.09 ▼3.86
Media Library /wp-admin/upload.php1,448 ▲454.22 ▲0.0695.42 ▼2.8468.14 ▲26.65
Logs /wp-admin/admin.php?page=coinqvest-logs8352.0124.4129.22
Payment Buttons /wp-admin/admin.php?page=coinqvest-payment-buttons1,0371.8427.4325.90
Add Payment Button /wp-admin/admin.php?page=coinqvest-add-payment-button9501.7728.4730.86
Edit Payment Button /wp-admin/admin.php?page=coinqvest-edit-payment-button7071.527.3417.68
Settings /wp-admin/admin.php?page=coinqvest-settings1,0332.0224.5927.26
COINQVEST /wp-admin/admin.php?page=coinqvest9352.1425.4229.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_coinqvest_payment_buttons
    • wp_coinqvest_logs
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • coinqvest_settings
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=coinqvest-edit-payment-button
    • > Notice in wp-content/plugins/coinqvest/inc/admin/class-edit-payment-button.php+15
    Undefined index: id

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/coinqvest/inc/frontend/views/partials-wp-country-list.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'COINQVEST\\Inc\\Libraries\\WP_List_Table' not found in wp-content/plugins/coinqvest/inc/admin/class-payment-buttons-list-table.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coinqvest/inc/admin/views/partials-wp-payment-buttons-display.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (22 tag instead of maximum 10)
You can look at the official readme.txt

coinqvest/coinqvest.php 92% from 13 tests

Analyzing the main PHP file in "COINQVEST - Cryptocurrency Payment Gateway for Bitcoin" version 1.1.9
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 210 characters long)

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
Good job! No executable or dangerous file extensions detected3,299 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity15.39
▷ Minimum class complexity1.00
▷ Maximum class complexity124.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
▷ Static methods1912.58%
▷ Public methods11878.15%
▷ Protected methods2315.23%
▷ Private methods106.62%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants7100.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/coinqvest-logo.png11.10KB4.14KB▼ 62.71%
assets/images/ajax-close-icon@2x.png0.96KB0.11KB▼ 88.56%
assets/images/favicon-22x22.png1.94KB0.89KB▼ 54.30%