74% paymendo-bank-transfer

Code Review | paymendo - Bank Transfer (Lite)

WordPress plugin paymendo - Bank Transfer (Lite) scored 74% from 54 tests.

About plugin

  • Plugin page: paymendo-bank-tra...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8
  • WordPress version: 6.3.1
  • First release: Sep 10, 2021
  • Latest release: Dec 28, 2021
  • Number of updates: 7
  • Update frequency: every 15.6 days
  • Top authors: grilabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 399 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by paymendo - Bank Transfer (Lite)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.09 ▼3.79
Dashboard /wp-admin3.32 ▲0.0144.98 ▼6.58
Posts /wp-admin/edit.php3.37 ▲0.0146.39 ▲0.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.47 ▼16.65
Media Library /wp-admin/upload.php3.24 ▲0.0136.59 ▲1.94

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

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

Browser metrics Passed 4 tests

A check of browser resources used by paymendo - Bank Transfer (Lite)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.21 ▼1.181.71 ▲0.1344.27 ▲2.19
Dashboard /wp-admin2,215 ▲294.85 ▼0.10105.63 ▼5.4442.62 ▲4.25
Posts /wp-admin/edit.php2,097 ▲82.00 ▲0.0235.79 ▼4.7233.58 ▲2.11
Add New Post /wp-admin/post-new.php1,530 ▼323.37 ▼0.09641.30 ▼5.0566.54 ▲1.48
Media Library /wp-admin/upload.php1,391 ▲34.25 ▲0.0497.71 ▼3.7241.59 ▼6.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_paymendo_transfer_notifications
    • wp_paymendo_bank_accounts
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Grilabs\\Paymendo\\BankTransfer\\wp_remote_get() in wp-content/plugins/paymendo-bank-transfer/lib/Grilabs_promotions.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Gateway_Paymendo_Bank_Transfer' not found in wp-content/plugins/paymendo-bank-transfer/inc/WC_Gateway_Paymendo_Bank_Transfer.php:125
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/paymendo-bank-transfer/views/site/order-received-page.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paymendo-bank-transfer/views/site/order-details-page.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Grilabs\\Paymendo\\BankTransfer\\add_action() in wp-content/plugins/paymendo-bank-transfer/PaymendoBankTransfer.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/paymendo-bank-transfer/views/blocks/header.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Gateway_Paymendo_Bank_Transfer' not found in wp-content/plugins/paymendo-bank-transfer/inc/WC_Gateway_Paymendo_Bank_Transfer.php:125
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/paymendo-bank-transfer/inc/emails/payment-completed.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Grilabs\\Paymendo\\BankTransfer\\wp_remote_get() in wp-content/plugins/paymendo-bank-transfer/lib/Grilabs_promotions.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: havale ile deme, havale bildirim formu, offline payment, havale entegrasyonu, havale bildirimi

paymendo-bank-transfer/paymendo-bank-transfer.php 92% from 13 tests

The principal PHP file in "paymendo - Bank Transfer (Lite)" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected61,151 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
CSS228,14517745,241
JavaScript133,8431,71613,724
PHP192661071,777
PO File1148179329
SVG20280

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity17.20
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods42
▷ Static methods37.14%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions38
▷ Named functions3797.37%
▷ Anonymous functions12.63%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
20 PNG files occupy 0.35MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo/turkiye-finans.png25.23KB8.18KB▼ 67.59%
assets/images/paymendo-logo.png16.29KB8.39KB▼ 48.48%
assets/images/logo/albaraka-turk.png18.97KB4.77KB▼ 74.85%
assets/images/logo/sekerbank.png25.48KB5.29KB▼ 79.25%
assets/images/logo/denizbank.png23.23KB5.20KB▼ 77.60%