74% girocheckout

Code Review | GiroCheckout Plug-in for WooCommerce

WordPress plugin GiroCheckout Plug-in for WooCommerce scored74%from 54 tests.

About plugin

  • Plugin page: girocheckout
  • Plugin version: 4.1.9
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0.2
  • WordPress version: 6.3.1
  • First release: Dec 21, 2017
  • Latest release: Jul 26, 2023
  • Number of updates: 75
  • Update frequency: every 27.2 days
  • Top authors: girosolution (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /6,464 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼32.40ms] Passed 4 tests

Server-side resources used by GiroCheckout Plug-in for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.08 ▲3.27
Dashboard /wp-admin3.04 ▼0.2625.98 ▼28.85
Posts /wp-admin/edit.php3.04 ▼0.3224.76 ▼29.12
Add New Post /wp-admin/post-new.php3.04 ▼2.8526.74 ▼63.35
Media Library /wp-admin/upload.php3.04 ▼0.1926.03 ▼8.28

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 118 new files
Database: 1 new table, 6 new options
New tables
wp_girocheckout_orders_status
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for GiroCheckout Plug-in for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.031.80 ▲0.1744.69 ▲2.14
Dashboard /wp-admin2,192 ▲215.50 ▼0.1088.50 ▼3.5639.08 ▼4.89
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0638.49 ▼2.1333.98 ▼3.14
Add New Post /wp-admin/post-new.php1,526 ▼023.07 ▲0.03673.51 ▲51.8251.52 ▲6.56
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.00104.88 ▼0.3146.84 ▲1.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'girocheckout_update_admin_options' not found or invalid function name
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
  • 66× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'GiroCheckout_SDK_AbstractApi' not found in wp-content/plugins/girocheckout/library/api/bluecode/GiroCheckout_SDK_BlueCodeTransaction.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/girocheckout/payments/gc_bluecode.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'GiroCheckout_SDK_AbstractApi' not found in wp-content/plugins/girocheckout/library/api/paydirekt/GiroCheckout_SDK_PaydirektTransaction.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/girocheckout/payments/gc_paydirekt.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'GiroCheckout_SDK_AbstractApi' not found in wp-content/plugins/girocheckout/library/api/paydirekt/GiroCheckout_SDK_PaydirektVoid.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'GiroCheckout_SDK_AbstractApi' not found in wp-content/plugins/girocheckout/library/api/paypage/GiroCheckout_SDK_PaypageRefund.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'GiroCheckout_SDK_AbstractApi' not found in wp-content/plugins/girocheckout/library/api/giropay/GiroCheckout_SDK_GiropayTransactionWithGiropayID.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'GiroCheckout_SDK_AbstractApi' not found in wp-content/plugins/girocheckout/library/api/creditcard/GiroCheckout_SDK_CreditCardVoid.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/girocheckout/payments/gc_eps.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'GiroCheckout_SDK_AbstractApi' not found in wp-content/plugins/girocheckout/library/api/creditcard/GiroCheckout_SDK_CreditCardInitform.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
2 plugin tags: payment, woocommerce

girocheckout/girocheckout.php Passed 13 tests

The entry point to "GiroCheckout Plug-in for WooCommerce" version 4.1.9 is a PHP file that has certain tags in its header comment area
70 characters long description:
Plugin to integrate the GiroCheckout payment methods into WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin8,315 lines of code in 83 files:
LanguageFilesBlank linesComment linesLines of code
PHP801,6183,6227,680
PO File3242381635

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.76
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity4.93
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes78
▷ Abstract classes00.00%
▷ Concrete classes78100.00%
▷ Final classes00.00%
Methods207
▷ Static methods2713.04%
▷ Public methods20096.62%
▷ Protected methods00.00%
▷ Private methods73.38%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants97
▷ Global constants55.15%
▷ Class constants9294.85%
▷ Public constants92100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/visa_msc_40px.png17.21KB1.71KB▼ 90.04%
img/visa_msc_jcb_40px.png4.93KB2.46KB▼ 50.08%
img/gc_sofortuw.png8.75KB1.82KB▼ 79.23%
img/gc_paydirekt.png14.50KB3.33KB▼ 77.06%
img/visa_msc_amex_jcb_40px.png6.60KB2.89KB▼ 56.25%