77% globe-gateway-e4

Code Review | Global Gateway e4 | Payeezy Gateway |

WordPress plugin Global Gateway e4 | Payeezy Gateway | scored77%from 54 tests.

About plugin

  • Plugin page: globe-gateway-e4
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.3
  • WordPress version: 6.3.1
  • First release: Aug 26, 2013
  • Latest release: Nov 20, 2019
  • Number of updates: 70
  • Update frequency: every 41.3 days
  • Top authors: DonnellC (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /8,046 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▲6.40ms] Passed 4 tests

Analyzing server-side resources used by Global Gateway e4 | Payeezy Gateway |
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1652.24 ▲11.26
Dashboard /wp-admin3.47 ▲0.1761.98 ▲11.98
Posts /wp-admin/edit.php3.52 ▲0.1657.37 ▲10.47
Add New Post /wp-admin/post-new.php6.05 ▲0.1696.14 ▲1.34
Media Library /wp-admin/upload.php3.40 ▲0.1636.03 ▲2.54
Payeezy Gateway /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway3.3433.51
Current HTML /wp-admin/admin.php?page=HTML3.3635.65

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Global Gateway e4 | Payeezy Gateway |
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲9113.26 ▼1.021.97 ▲0.1843.90 ▼3.01
Dashboard /wp-admin2,235 ▲465.11 ▲0.06118.30 ▼6.2191.00 ▲44.31
Posts /wp-admin/edit.php2,124 ▲532.00 ▼0.0641.13 ▲3.4137.41 ▲3.11
Add New Post /wp-admin/post-new.php1,536 ▲322.80 ▼0.27687.43 ▼41.8349.70 ▼5.23
Media Library /wp-admin/upload.php1,417 ▲264.25 ▲0.07116.01 ▲9.3646.55 ▲1.71
Payeezy Gateway /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway2,4291.7531.9346.66
Current HTML /wp-admin/admin.php?page=HTML7852.0223.6322.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+230
    Undefined variable: x_login
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+236
    Undefined variable: transaction_key
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+303
    Undefined variable: user_1
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+312
    Undefined variable: user_2
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+321
    Undefined variable: user_3
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+335
    Undefined variable: x_tax
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+345
    Undefined variable: x_logo_url
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+359
    Undefined variable: once
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+368
    Undefined variable: daily
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+377
    Undefined variable: weekly
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+386
    Undefined variable: bi_weekly
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+395
    Undefined variable: semi_monthly
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+404
    Undefined variable: monthly
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+413
    Undefined variable: bi_monthly
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+422
    Undefined variable: quarterly
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+431
    Undefined variable: four_months
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+440
    Undefined variable: semi_annually
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+449
    Undefined variable: annually
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+457
    Undefined variable: recurring_auto_or_customer_select
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+470
    Undefined variable: x_color_background
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+479
    Undefined variable: x_merchant_email
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+488
    Undefined variable: wait_or_auto
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+500
    Undefined variable: live_demo
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+509
    Undefined variable: x_type
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+706
    Undefined variable: hmac_calculation
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+739
    Undefined variable: time_stamp
    • > GET request to /wp-admin/admin.php?page=Global-Gateway-e4-Payeezy-Gateway
    • > Notice in wp-content/plugins/globe-gateway-e4/Globe Gateway e4.php+767
    Undefined variable: custom_files

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined index: download_current_backup in wp-content/plugins/globe-gateway-e4/downloadBackup.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #4 (screenshot4.png), #5 (screenshot5.png)
  • Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

globe-gateway-e4/Globe Gateway e4.php 85% from 13 tests

This is the main PHP file of "Global Gateway e4 | Payeezy Gateway |" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("globe-gateway-e4.php" instead of "Globe Gateway e4.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 217 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,861 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP4791011,583
JavaScript4201571,100
CSS2712178

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/jscolor/hv.png2.80KB7.32KB0.00%
images/dashicon.png3.89KB1.19KB▼ 69.45%
js/jscolor/hs.png2.62KB7.54KB0.00%
images/payeezy_favicon.png3.31KB1.54KB▼ 53.59%