84% payoneer-checkout

Code Review | Payoneer Checkout

WordPress plugin Payoneer Checkout scored84%from 54 tests.

About plugin

  • Plugin page: payoneer-checkout
  • Plugin version: 1.5.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 19, 2022
  • Latest release: Nov 29, 2023
  • Number of updates: 47
  • Update frequency: every 8.8 days
  • Top authors: Biont (48.94%)kbraslavskyi (44.68%)payoneercheckout (10.64%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /28,340 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲2.77MB] [CPU: ▲14.03ms] Passed 4 tests

Analyzing server-side resources used by Payoneer Checkout
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /6.24 ▲2.7862.24 ▲19.21
Dashboard /wp-admin6.12 ▲2.8163.21 ▲8.86
Posts /wp-admin/edit.php6.17 ▲2.8161.57 ▲14.07
Add New Post /wp-admin/post-new.php8.64 ▲2.75104.76 ▲15.32
Media Library /wp-admin/upload.php5.96 ▲2.7354.64 ▲17.86

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,468 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
payoneer-checkout_plugin_activated
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Payoneer Checkout
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6014.72 ▲0.381.87 ▲0.1343.60 ▼1.73
Dashboard /wp-admin2,199 ▲305.62 ▼0.1092.14 ▼14.1140.66 ▼7.17
Posts /wp-admin/edit.php2,107 ▲72.09 ▲0.1340.24 ▲3.9435.25 ▼0.65
Add New Post /wp-admin/post-new.php1,533 ▲723.21 ▲0.04607.38 ▼29.6452.85 ▲2.23
Media Library /wp-admin/upload.php1,404 ▲14.22 ▼0.0097.96 ▼2.0841.73 ▼0.96

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 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • payoneer-checkout_plugin_activated
    • widget_recent-comments
    • widget_recent-posts

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 | 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
Almost there! Just fix the following items
  • 717× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Inpsyde\\PayoneerForWoocommerce\\PaymentGateway\\Merchant\\AbstractMerchantDecorator' not found in wp-content/plugins/payoneer-checkout/modules.local/payment-gateway/src/Merchant/CheckoutMerchantAwareUrlTemplateProvidingMerchant.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/payoneer-checkout/vendor/dhii/services/tests/unit/Factories/StringServiceTest.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Inpsyde\\PayoneerForWoocommerce\\Webhooks\\OrderPaymentWebhookHandler\\OrderPaymentWebhookHandlerInterface' not found in wp-content/plugins/payoneer-checkout/modules/inpsyde/payoneer-webhooks/src/OrderPaymentWebhookHandler/CustomerRegistrationHandler.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Inpsyde\\PayoneerSdk\\Api\\Entities\\ListSession\\ListSerializerInterface' not found in wp-content/plugins/payoneer-checkout/modules/inpsyde/payoneer-sdk/src/Api/Entities/ListSession/ListSerializer.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Inpsyde\\PayoneerSdk\\Api\\Entities\\Status\\StatusInterface' not found in wp-content/plugins/payoneer-checkout/modules/inpsyde/payoneer-sdk/src/Api/Entities/Status/Status.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Inpsyde\\PayoneerSdk\\Api\\Entities\\Callback\\CallbackInterface' not found in wp-content/plugins/payoneer-checkout/modules/inpsyde/payoneer-sdk/src/Api/Entities/Callback/Callback.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Inpsyde\\PayoneerSdk\\Api\\Command\\Exception\\CommandException' not found in wp-content/plugins/payoneer-checkout/modules/inpsyde/payoneer-sdk/src/Api/Command/Exception/InteractionException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/payoneer-checkout/vendor/dhii/collections-interface/tests/unit/ContainerInterfaceTest.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/payoneer-checkout/vendor/dhii/containers/tests/functional/CompositeCachingServiceProviderTest.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Inpsyde\\PayoneerSdk\\Api\\Entities\\ListSession\\ListDeserializerInterface' not found in wp-content/plugins/payoneer-checkout/modules/inpsyde/payoneer-sdk/src/Api/Entities/ListSession/ListDeserializer.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: payment, woocommerce, checkout

payoneer-checkout/payoneer-checkout.php 92% from 13 tests

The main PHP file in "Payoneer Checkout" ver. 1.5.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Requires at least: Required version must match the one declared in readme.txt ("5.3" instead of "5.4")

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 detected60,639 lines of code in 1,061 files:
LanguageFilesBlank linesComment linesLines of code
PHP8969,70119,86442,660
JSON47304,660
JavaScript82,3753,3244,021
CSS135071223,637
Markdown441,08402,797
XML2654141,386
SVG8001,009
YAML1610210414
Dockerfile226448
Sass1107

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.25
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces170
Interfaces330
Traits27
Classes692
▷ Abstract classes192.75%
▷ Concrete classes67397.25%
▷ Final classes40.59%
Methods3,073
▷ Static methods782.54%
▷ Public methods2,46080.05%
▷ Protected methods54517.74%
▷ Private methods682.21%
Functions886
▷ Named functions182.03%
▷ Anonymous functions86897.97%
Constants146
▷ Global constants21.37%
▷ Class constants14498.63%
▷ Public constants10774.31%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
60 PNG files occupy 0.23MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) modules.local/embedded-payment/assets/css/img/ic-x-default-14p@2x.png0.29KB0.00KB▼ 100.00%
modules.local/websdk/assets/css/img/ic-info.png0.39KB0.45KB0.00%
(invalid) modules.local/embedded-payment/assets/css/img/ic-delete-default-14p.png0.23KB0.00KB▼ 100.00%
modules.local/websdk/assets/css/img/ic-info@2x.png1.38KB0.61KB▼ 56.15%
modules/inpsyde/payoneer-admin-banner/assets/img/logotype.png4.44KB2.86KB▼ 35.69%