84% wc-payoneer-payment-gateway

Code Review | Payment Gateway Payoneer For WooCommerce

WordPress plugin Payment Gateway Payoneer For WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: wc-payoneer-payme...
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0.3
  • WordPress version: 6.3.1
  • First release: Jun 19, 2020
  • Latest release: Oct 29, 2022
  • Number of updates: 33
  • Update frequency: every 26.1 days
  • Top authors: themebing (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

3,000+ active /37,714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.08ms] Passed 4 tests

A check of server-side resources used by Payment Gateway Payoneer For WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.42 ▼2.02
Dashboard /wp-admin3.38 ▲0.0850.79 ▼2.32
Posts /wp-admin/edit.php3.49 ▲0.1351.17 ▼0.95
Add New Post /wp-admin/post-new.php5.98 ▲0.0988.54 ▼23.02
Media Library /wp-admin/upload.php3.30 ▲0.0739.76 ▲2.17

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Payment Gateway Payoneer For WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲11913.48 ▼0.955.17 ▲3.4439.22 ▼6.57
Dashboard /wp-admin2,271 ▲684.87 ▼0.00106.35 ▼3.2890.36 ▲48.62
Posts /wp-admin/edit.php2,129 ▲292.01 ▼0.0337.54 ▲1.2439.02 ▲4.30
Add New Post /wp-admin/post-new.php1,551 ▲2523.28 ▲5.72677.39 ▲24.5878.90 ▼24.22
Media Library /wp-admin/upload.php1,428 ▲284.19 ▲0.02104.64 ▼7.6845.11 ▼5.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-payoneer-payment-gateway/inc/payoneer-payment-gateway.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-payoneer-payment-gateway/inc/demo-importer/dashboard-widgets.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-payoneer-payment-gateway/inc/payoneer-payment-gateway.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: payoneer, payoneer payment gateway, woocommerce gateway, woocommerce payment, payment gateway

wc-payoneer-payment-gateway/payoneer-payment-gateway.php 92% from 13 tests

The main PHP script in "Payment Gateway Payoneer For WooCommerce" version 1.1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wc-payoneer-payment-gateway.php" instead of "payoneer-payment-gateway.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin443 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP411389305
CSS212083
JSON10047
JavaScript1428

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity5.00
▷ Minimum class complexity4.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png7.06KB2.79KB▼ 60.54%