Kalpa-Services / mmg-wp-plugin

WooCommerce Gateway that uses the MMG Checkout API to process payments
https://mmg-plugin.kalpa.dev
GNU General Public License v2.0
4 stars 2 forks source link

reduce build size by optimizing vendor and removing it from repo #40

Closed carlHandy closed 3 months ago

github-actions[bot] commented 3 months ago

PHP CodeSniffer Summary

......WW.... 12 / 12 (100%)

FILE: ...r/work/mmg-wp-plugin/mmg-wp-plugin/includes/class-mmg-checkout-payment.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------
 251 | WARNING | base64_encode() can be used to obfuscate code which is
     |         | strongly discouraged. Please verify that the function is used

PHP CodeSniffer Results

Click to expand full report ``` ......WW.... 12 / 12 (100%) FILE: ...r/work/mmg-wp-plugin/mmg-wp-plugin/includes/class-mmg-checkout-payment.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 3 LINES -------------------------------------------------------------------------------- 251 | WARNING | base64_encode() can be used to obfuscate code which is | | strongly discouraged. Please verify that the function is used | | for benign reasons. 349 | WARNING | base64_decode() can be used to obfuscate code which is | | strongly discouraged. Please verify that the function is used | | for benign reasons. 405 | WARNING | Processing form data without nonce verification. 405 | WARNING | Processing form data without nonce verification. -------------------------------------------------------------------------------- FILE: /home/runner/work/mmg-wp-plugin/mmg-wp-plugin/tests/bootstrap.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------- 26 | WARNING | putenv() found. Changing configuration values at runtime is | | strongly discouraged. -------------------------------------------------------------------------------- Time: 1.4 secs; Memory: 18MB ```
github-actions[bot] commented 3 months ago

PHPUnit Test Summary

Installing...
Running as single site... To run multisite, use -c tests/phpunit/multisite.xml
Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-http.
<div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [Table &#039;wordpress_test.wptests_wc_webhooks&#039; doesn&#039;t exist]<br /><code>SELECT webhook_id
                FROM wptests_wc_webhooks
                WHERE 1=1
                AND `status` = &#039;active&#039;

PHPUnit Test Results

Click to expand full report ``` Installing... Running as single site... To run multisite, use -c tests/phpunit/multisite.xml Not running ajax tests. To execute these, use --group ajax. Not running ms-files tests. To execute these, use --group ms-files. Not running external-http tests. To execute these, use --group external-http.

WordPress database error: [Table 'wordpress_test.wptests_wc_webhooks' doesn't exist]
SELECT webhook_id FROM wptests_wc_webhooks WHERE 1=1 AND `status` = 'active' ORDER BY webhook_id DESC

PHPUnit 9.6.20 by Sebastian Bergmann and contributors. Runtime: PHP 7.4.33 Configuration: phpunit.xml Test 'Test_MMG_Checkout_Payment_Confirmation::test_handle_payment_confirmation' started Test 'Test_MMG_Checkout_Payment_Confirmation::test_handle_payment_confirmation' ended Test 'Test_MMG_Checkout_Payment::test_generate_checkout_url' started {"success":false,"data":"Error generating checkout URL: Invalid security token"} ```