84% woo-rabo-omnikassa

Code Review | Rabo Smart Pay for WooCommerce

WordPress plugin Rabo Smart Pay for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: woo-rabo-omnikassa
  • Plugin version: 2.2.9.3
  • PHP compatiblity: 7.4.30+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 22, 2020
  • Latest release: Nov 30, 2023
  • Number of updates: 54
  • Update frequency: every 27.9 days
  • Top authors: codebrainbv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /11,822 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.11ms] Passed 4 tests

This is a short check of server-side resources used by Rabo Smart Pay for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0942.45 ▼0.17
Dashboard /wp-admin3.39 ▲0.0847.91 ▼0.82
Posts /wp-admin/edit.php3.44 ▲0.0851.45 ▲1.44
Add New Post /wp-admin/post-new.php5.97 ▲0.0893.71 ▼0.94
Media Library /wp-admin/upload.php3.31 ▲0.0835.08 ▼2.49

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rabo Smart Pay for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3114.31 ▲0.151.81 ▼0.1046.57 ▲2.57
Dashboard /wp-admin2,201 ▲215.56 ▼0.0494.65 ▼2.2242.82 ▼3.02
Posts /wp-admin/edit.php2,103 ▲31.99 ▲0.0340.76 ▼0.0838.71 ▲4.56
Add New Post /wp-admin/post-new.php1,538 ▲1222.89 ▼0.52666.81 ▲20.0255.24 ▲2.70
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.1096.01 ▼5.1141.92 ▼1.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'icwoorok2_abstract' not found in wp-content/plugins/woo-rabo-omnikassa/gateways/ideal.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-rabo-omnikassa/gateways/abstract.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'icwoorok2_abstract' not found in wp-content/plugins/woo-rabo-omnikassa/gateways/creditcard.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'icwoorok2_abstract' not found in wp-content/plugins/woo-rabo-omnikassa/gateways/afterpay.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'icwoorok2_abstract' not found in wp-content/plugins/woo-rabo-omnikassa/gateways/sofort.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'icwoorok2_abstract' not found in wp-content/plugins/woo-rabo-omnikassa/gateways/paypal.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'icwoorok2_abstract' not found in wp-content/plugins/woo-rabo-omnikassa/gateways/bancontact.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% 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
7 plugin tags: payment, rabobank, smartpay, omnikassa, woocommerce...

woo-rabo-omnikassa/ic-woo-omnikassa-2.php 85% from 13 tests

This is the main PHP file of "Rabo Smart Pay for WooCommerce" version 2.2.9.3, 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:
  • 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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-rabo-omnikassa.php" instead of "ic-woo-omnikassa-2.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,404 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12265941,024
PO File2154162376
SVG4004

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity18.25
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods37
▷ Static methods513.51%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icwoorok2_sofort.png14.24KB6.10KB▼ 57.15%
images/icwoorok2_icwoorok2_afterpay.png7.63KB2.40KB▼ 68.52%
images/icwoorok2_maestro.png6.61KB2.23KB▼ 66.22%
images/icwoorok2_mastercard.png7.10KB2.24KB▼ 68.38%
images/icwoorok2_ideal.png5.89KB1.90KB▼ 67.76%