84% big-fish-payment-gateway-for-woocommerce

Code Review | BIG FISH Payment Gateway for WooCommerce

WordPress plugin BIG FISH Payment Gateway for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: big-fish-payment-...
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7
  • WordPress version: 6.3.1
  • First release: Jun 1, 2015
  • Latest release: Sep 28, 2023
  • Number of updates: 51
  • Update frequency: every 59.7 days
  • Top authors: BIG FISH Kft. (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /5,433 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼8.47ms] Passed 4 tests

A check of server-side resources used by BIG FISH Payment Gateway for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1334.89 ▼2.11
Dashboard /wp-admin3.44 ▲0.0944.53 ▼17.35
Posts /wp-admin/edit.php3.55 ▲0.1944.52 ▼6.73
Add New Post /wp-admin/post-new.php6.02 ▲0.1389.17 ▼4.85
Media Library /wp-admin/upload.php3.36 ▲0.1333.68 ▼4.95

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 95 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by BIG FISH Payment Gateway for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.131.65 ▲0.1041.28 ▲0.82
Dashboard /wp-admin2,209 ▲235.83 ▲0.8897.76 ▼20.3440.48 ▼3.32
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0040.22 ▲2.8537.45 ▲5.76
Add New Post /wp-admin/post-new.php1,533 ▲1423.04 ▲0.00649.81 ▼1.0854.63 ▼8.02
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0393.36 ▼7.8541.21 ▼2.55

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 78× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'BigFishPaymentGatewayProvider' not found in wp-content/plugins/big-fish-payment-gateway-for-woocommerce/classes/providers/barion2.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'BigFish\\PaymentGateway\\Data\\Info\\InfoAbstract' not found in wp-content/plugins/big-fish-payment-gateway-for-woocommerce/api/BigFish/PaymentGateway/Data/Info/InfoCustomerGeneral.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'BigFishPaymentGatewayProvider' not found in wp-content/plugins/big-fish-payment-gateway-for-woocommerce/classes/providers/borgun.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'BigFishPaymentGatewayProvider' not found in wp-content/plugins/big-fish-payment-gateway-for-woocommerce/classes/providers/mkbszep.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'BigFishPaymentGatewayProvider' not found in wp-content/plugins/big-fish-payment-gateway-for-woocommerce/classes/providers/otpay.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'BigFishPaymentGatewayProvider' not found in wp-content/plugins/big-fish-payment-gateway-for-woocommerce/classes/providers/otpmultipont.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'BigFish\\PaymentGateway\\Request\\CancelPaymentRegistration' not found in wp-content/plugins/big-fish-payment-gateway-for-woocommerce/api/BigFish/PaymentGateway/Request/OneClickTokenCancel.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'BigFish\\PaymentGateway\\Request\\RequestAbstract' not found in wp-content/plugins/big-fish-payment-gateway-for-woocommerce/api/BigFish/PaymentGateway/Request/Init.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'BigFishPaymentGatewayProvider' not found in wp-content/plugins/big-fish-payment-gateway-for-woocommerce/classes/providers/otpsimple.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'BigFishPaymentGatewayProvider' not found in wp-content/plugins/big-fish-payment-gateway-for-woocommerce/classes/providers/bbaruhitel.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: credit card, internet payment, payment, online payment

big-fish-payment-gateway-for-woocommerce/big_fish_payment_gateway.php 85% from 13 tests

Analyzing the main PHP file in "BIG FISH Payment Gateway for WooCommerce" version 2.2.0
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 161 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("big-fish-payment-gateway-for-woocommerce.php" instead of "big_fish_payment_gateway.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin6,408 lines of code in 91 files:
LanguageFilesBlank linesComment linesLines of code
PHP871,2424,4515,063
PO File35464031,209
JSON100136

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.07
▷ Minimum class complexity1.00
▷ Maximum class complexity96.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces5
Interfaces1
Traits0
Classes86
▷ Abstract classes33.49%
▷ Concrete classes8396.51%
▷ Final classes00.00%
Methods409
▷ Static methods5312.96%
▷ Public methods32779.95%
▷ Protected methods7317.85%
▷ Private methods92.20%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants115
▷ Global constants43.48%
▷ Class constants11196.52%
▷ Public constants111100.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
PNG images were not found in this plugin