84% mvx-cointopay-gateway

Code Review | MultiVendorX Cointopay Gateway

WordPress plugin MultiVendorX Cointopay Gateway scored84%from 54 tests.

About plugin

  • Plugin page: mvx-cointopay-gat...
  • Plugin version: 1.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 17, 2023
  • Latest release: Jan 17, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: cointopay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /134 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

A check of server-side resources used by MultiVendorX Cointopay Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.56 ▼3.62
Dashboard /wp-admin3.34 ▲0.0347.44 ▼0.21
Posts /wp-admin/edit.php3.39 ▲0.0348.77 ▲0.16
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.99 ▼15.27
Media Library /wp-admin/upload.php3.26 ▲0.0334.47 ▲2.49

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

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

Browser metrics Passed 4 tests

Checking browser requirements for MultiVendorX Cointopay Gateway
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9514.50 ▼0.181.84 ▼0.1741.22 ▼3.91
Dashboard /wp-admin2,216 ▲285.90 ▲1.05107.22 ▲3.2046.26 ▲0.31
Posts /wp-admin/edit.php2,102 ▲132.00 ▼0.0139.70 ▲3.5939.97 ▲4.11
Add New Post /wp-admin/post-new.php1,558 ▲3018.20 ▼0.03622.17 ▲7.2355.26 ▲0.50
Media Library /wp-admin/upload.php1,404 ▲194.27 ▲0.0296.62 ▼8.7343.36 ▼1.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 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 50% from 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/mvx-cointopay-gateway/classes/class-mvx-cointopay-gateway-payment-method.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: cointopay gateway, commission, vendor, multivendorx, wc marketplace...

mvx-cointopay-gateway/mvx-cointopay-gateway.php Passed 13 tests

This is the main PHP file of "MultiVendorX Cointopay Gateway" version 1.2.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
114 characters long description:
MVX Cointopay Gateway is a payment gateway for woocommerce shopping plateform also compatible with WC Marketplace.

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 detected635 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP69582596
JavaScript15839

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.40
Average class complexity13.75
▷ Minimum class complexity2.00
▷ Maximum class complexity31.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods313.04%
▷ Public methods2191.30%
▷ Protected methods28.70%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/check.png2.47KB2.29KB▼ 7.17%
assets/images/fail.png2.15KB1.72KB▼ 19.99%
assets/images/cointopay.png6.90KB2.94KB▼ 57.45%