73% woo-multicaixa

Code Review | Payment Multicaixa (ProxyPay gateway) for WooCommerce

WordPress plugin Payment Multicaixa (ProxyPay gateway) for WooCommerce scored 73% from 54 tests.

About plugin

  • Plugin page: woo-multicaixa
  • Plugin version: 2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 19, 2018
  • Latest release: Aug 28, 2023
  • Number of updates: 47
  • Update frequency: every 37.1 days
  • Top authors: webdados (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,819 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.87MB] [CPU: ▼49.18ms] Passed 4 tests

This is a short check of server-side resources used by Payment Multicaixa (ProxyPay gateway) for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.51 ▼37.63
Dashboard /wp-admin2.14 ▼1.169.01 ▼38.91
Posts /wp-admin/edit.php2.15 ▼1.2110.70 ▼34.00
Add New Post /wp-admin/post-new.php2.14 ▼3.759.27 ▼86.19
Media Library /wp-admin/upload.php2.14 ▼1.087.29 ▼27.54

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Payment Multicaixa (ProxyPay gateway) for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲8513.27 ▼1.034.46 ▲2.3443.51 ▼6.92
Dashboard /wp-admin2,229 ▲414.98 ▲0.03105.05 ▲1.1642.54 ▲0.09
Posts /wp-admin/edit.php2,112 ▲232.07 ▲0.0435.82 ▼11.9432.77 ▼1.76
Add New Post /wp-admin/post-new.php1,557 ▲2118.13 ▼4.96617.56 ▼15.4660.11 ▲12.37
Media Library /wp-admin/upload.php1,402 ▲144.18 ▼0.0794.86 ▼9.9342.60 ▼1.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/woo-multicaixa/multicaixa-woocommerce.php+30
    Undefined index: WC requires at least
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/woo-multicaixa/includes/woocommerce-blocks/MulticaixaProxyPay.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: You are using too many tags: 22 tag instead of maximum 10
Please take inspiration from this readme.txt

woo-multicaixa/multicaixa-woocommerce.php 85% from 13 tests

"Payment Multicaixa (ProxyPay gateway) for WooCommerce" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-multicaixa.php" instead of "multicaixa-woocommerce.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 179 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,336 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP6952051,142
SVG512164
JavaScript10030

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity36.00
▷ Minimum class complexity4.00
▷ Maximum class complexity68.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes375.00%
Methods61
▷ Static methods34.92%
▷ Public methods6098.36%
▷ Protected methods00.00%
▷ Private methods11.64%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants3
▷ Global constants3100.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 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon_multicaixa_48.png1.17KB1.03KB▼ 11.65%
images/banner_multicaixa.png2.07KB1.84KB▼ 11.08%