89% woo-payment-gateway-for-eurobank

Code Review | Eurobank WooCommerce Payment Gateway

WordPress plugin Eurobank WooCommerce Payment Gateway scored89%from 54 tests.

About plugin

  • Plugin page: woo-payment-gatew...
  • Plugin version: 1.8.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.1
  • WordPress version: 6.3.1
  • First release: Mar 22, 2017
  • Latest release: Feb 28, 2022
  • Number of updates: 38
  • Update frequency: every 47.4 days
  • Top authors: enartia (57.89%)georgekapsalakis (44.74%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active /25,906 total downloads

Benchmarks

Plugin footprint 83% 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: ▼7.25ms] Passed 4 tests

Analyzing server-side resources used by Eurobank WooCommerce Payment Gateway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.17 ▼2.80
Dashboard /wp-admin3.31 ▼0.0450.34 ▼13.05
Posts /wp-admin/edit.php3.36 ▲0.0050.05 ▼0.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.19 ▼6.66
Media Library /wp-admin/upload.php3.23 ▲0.0032.15 ▼6.49

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

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

Browser metrics Passed 4 tests

Eurobank WooCommerce Payment Gateway: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.251.77 ▼0.0239.53 ▼3.71
Dashboard /wp-admin2,195 ▲155.62 ▼0.0585.15 ▼2.8541.89 ▼1.04
Posts /wp-admin/edit.php2,100 ▼32.12 ▲0.1535.40 ▼5.2034.09 ▼10.08
Add New Post /wp-admin/post-new.php1,535 ▼118.16 ▼4.93614.86 ▼51.0368.09 ▲18.16
Media Library /wp-admin/upload.php1,397 ▼34.15 ▼0.0697.86 ▼9.1641.54 ▼11.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: woocommerce, payment gateway, ecommerce

woo-payment-gateway-for-eurobank/woocommerce-eurobank-payment-gateway.php 85% from 13 tests

The main PHP script in "Eurobank WooCommerce Payment Gateway" version 1.8.7.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-payment-gateway-for-eurobank.php" instead of "woocommerce-eurobank-payment-gateway.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)

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
No dangerous file extensions were detected958 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP29483708
PO File15574208
SVG10142

PHP code Passed 2 tests

A short review 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.31
Average class complexity35.00
▷ Minimum class complexity3.00
▷ Maximum class complexity67.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/eurobank.png5.61KB3.14KB▼ 44.02%