83% woo-halkbank-payment-gateway

Code Review | Halk Bank Payment Gateway For Woocommerce

WordPress plugin Halk Bank Payment Gateway For Woocommerce scored83%from 54 tests.

About plugin

  • Plugin page: woo-halkbank-paym...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 6, 2018
  • Latest release: Apr 16, 2019
  • Number of updates: 11
  • Update frequency: every 23.0 days
  • Top authors: m1tk00 (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

300+ active /2,006 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.70ms] Passed 4 tests

A check of server-side resources used by Halk Bank Payment Gateway For Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.92 ▼8.42
Dashboard /wp-admin3.31 ▼0.0441.08 ▼21.79
Posts /wp-admin/edit.php3.36 ▲0.0046.15 ▲3.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.00 ▼7.14
Media Library /wp-admin/upload.php3.24 ▲0.0033.30 ▼1.45

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Halk Bank Payment Gateway For Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.55 ▼0.2335.60 ▼7.88
Dashboard /wp-admin2,195 ▲215.65 ▲0.0092.68 ▲8.5243.14 ▲4.19
Posts /wp-admin/edit.php2,103 ▼02.00 ▼0.0240.17 ▲0.6434.10 ▼2.43
Add New Post /wp-admin/post-new.php1,536 ▲1022.73 ▼0.81649.01 ▲15.0755.35 ▲5.84
Media Library /wp-admin/upload.php1,400 ▲34.19 ▼0.0195.61 ▼5.3739.37 ▼3.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-halkbank-payment-gateway/classes/class-wc-halk-payment-gateway.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
The official readme.txt might help

woo-halkbank-payment-gateway/halk-bank-payment-woocommerce.php 77% from 13 tests

The main PHP script in "Halk Bank Payment Gateway For Woocommerce" version 1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/i18n/languages/" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-halkbank-payment-gateway.php" instead of "halk-bank-payment-woocommerce.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected310 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33096276
Markdown19034

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods222.22%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
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
PNG images were not found in this plugin