93% zitengine-payoneer-manual-payment

Code Review | Payoneer Manual Payment Gateway

WordPress plugin Payoneer Manual Payment Gateway scored 93% from 54 tests.

About plugin

  • Plugin page: zitengine-payonee...
  • Plugin version: 1.2
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.8.1
  • WordPress version: 5.9.2
  • First release: Nov 5, 2020
  • Latest release: Oct 14, 2021
  • Number of updates: 13
  • Update frequency: every 26.4 days
  • Top authors: zitengine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 2,166 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼300.65ms] Passed 4 tests

An overview of server-side resources used by Payoneer Manual Payment Gateway
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.25 ▲2.12
Dashboard /wp-admin3.41 ▲0.0035.03 ▼3.20
Posts /wp-admin/edit.php3.65 ▲0.0068.95 ▲28.87
Add New Post /wp-admin/post-new.php6.88 ▼0.0992.97 ▼1,198.60
Media Library /wp-admin/upload.php3.30 ▲0.0024.34 ▼2.90

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Payoneer Manual Payment Gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4116.26 ▲0.626.01 ▼0.362.81 ▼0.27
Dashboard /wp-admin2,895 ▲376.09 ▼0.17116.07 ▼20.79169.49 ▲11.85
Posts /wp-admin/edit.php2,685 ▼63.24 ▲0.0164.34 ▲0.41147.03 ▲1.74
Add New Post /wp-admin/post-new.php1,661 ▼9716.21 ▼5.33469.10 ▲5.51166.58 ▼24.86
Media Library /wp-admin/upload.php1,695 ▼35.50 ▼0.04156.59 ▲10.02224.70 ▲37.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/zitengine-payoneer-manual-payment/payoneer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

zitengine-payoneer-manual-payment/payoneer.php 69% from 13 tests

The main PHP script in "Payoneer Manual Payment Gateway" version 1.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zitengine-payoneer-manual-payment.php" instead of "payoneer.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 362 characters long)
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
There were no executable files found in this plugin301 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP28063296
JavaScript1005

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/payoneer.png2.49KB1.94KB▼ 22.30%