10% qenta-checkout-seamless

Code Review | Qenta Checkout Seamless

WordPress plugin Qenta Checkout Seamless scored10%from 54 tests.

About plugin

  • Plugin page: qenta-checkout-se...
  • Plugin version: 2.0.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.1-5.9
  • WordPress version: 6.3.1
  • First release: Nov 5, 2021
  • Latest release: Feb 10, 2022
  • Number of updates: 5
  • Update frequency: every 19.8 days
  • Top authors: qentaplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,861 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Error in wp-content/plugins/qenta-checkout-seamless/classes/includes/form_fields.php+43
    Uncaught Error: Class 'WC_Countries' not found in wp-content/plugins/qenta-checkout-seamless/classes/includes/form_fields.php:43
    Stack trace:
    #0 wp-content/plugins/qenta-checkout-seamless/woocommerce-qenta-checkout-seamless.php(209): require_once()
    #1 wp-content/plugins/qenta-checkout-seamless/woocommerce-qenta-checkout-seamless.php(145): init_config_values()
    #2 wp-includes/class-wp-hook.php(310): woocommerce_install_qenta_checkout_seamless()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/includes/plugin.php(693): do_action()

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.54ms] Passed 4 tests

A check of server-side resources used by Qenta Checkout Seamless
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.54 ▲1.23
Dashboard /wp-admin3.31 ▲0.0048.60 ▼0.18
Posts /wp-admin/edit.php3.36 ▲0.0048.07 ▲3.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.09 ▼5.98
Media Library /wp-admin/upload.php3.23 ▲0.0035.07 ▲2.77

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 467 new files
Database: 1 new table, 6 new options
New tables
wp_qenta_checkout_seamless_tx
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Qenta Checkout Seamless
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.141.80 ▼0.0342.69 ▼2.22
Dashboard /wp-admin2,206 ▲185.91 ▲0.85106.18 ▼10.8038.85 ▼4.66
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0538.09 ▲2.6832.98 ▼1.10
Add New Post /wp-admin/post-new.php1,534 ▼323.07 ▼0.27650.75 ▼22.4457.58 ▼4.44
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0195.90 ▼6.2042.56 ▼2.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_qenta_checkout_seamless_tx
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/qenta-checkout-seamless/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
  • 257× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/qenta-checkout-seamless/vendor/guzzlehttp/psr7/src/Uri.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/qenta-checkout-seamless/vendor/guzzlehttp/promises/src/Promise.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/qenta-checkout-seamless/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/qenta-checkout-seamless/vendor/qenta/checkout-client-library/tests/QentaCEE/QPay/Response/Toolkit/OrderTest1.php:40
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/qenta-checkout-seamless/vendor/qenta/checkout-client-library/tests/QentaCEE/QPay/Return/Success/PaypalTest.php:39
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/qenta-checkout-seamless/vendor/qenta/checkout-client-library/tests/QentaCEE/QPay/Response/Toolkit/OrderTest.php:40
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/qenta-checkout-seamless/vendor/qenta/checkout-client-library/tests/QentaCEE/Stdlib/PaymentTypeAbstractTest.php:40
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/qenta-checkout-seamless/vendor/qenta/checkout-client-library/tests/QentaCEE/QMore/DataStorage/Exception/InvalidArgumentExceptionTest.php:40
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/qenta-checkout-seamless/vendor/qenta/checkout-client-library/tests/QentaCEE/QMore/Response/Backend/GetOrderDetailsTest.php:38
    • > PHP Fatal error
      require_once(): Failed opening required 'WOOCOMMERCE_GATEWAY_QMORE_BASEDIRclasses/class-qenta-admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/qenta-checkout-seamless/classes/class-qenta-gateway.php on line 33

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: There were no tags found
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
  • Contributors: Plugin contributors not specified
The official readme.txt is a good inspiration

qenta-checkout-seamless/woocommerce-qenta-checkout-seamless.php 92% from 13 tests

"Qenta Checkout Seamless" version 2.0.5.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("qenta-checkout-seamless.php" instead of "woocommerce-qenta-checkout-seamless.php")

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
There were no executable files found in this plugin30,753 lines of code in 422 files:
LanguageFilesBlank linesComment linesLines of code
PHP3826,15424,17124,851
Markdown181,26703,756
JSON1000813
PO File2391391806
JavaScript23861281
CSS23461152
XML323251
YAML25034
make1409

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.92
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces45
Interfaces27
Traits3
Classes337
▷ Abstract classes257.42%
▷ Concrete classes31292.58%
▷ Final classes206.41%
Methods2,358
▷ Static methods1887.97%
▷ Public methods2,01785.54%
▷ Protected methods2028.57%
▷ Private methods1395.89%
Functions154
▷ Named functions6240.26%
▷ Anonymous functions9259.74%
Constants239
▷ Global constants41.67%
▷ Class constants23598.33%
▷ Public constants235100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
28 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/eps-Ueberweisung_h32.png2.68KB1.67KB▼ 37.63%
assets/images/TrustPay_h32.png2.88KB2.09KB▼ 27.34%
assets/images/paypal_h32.png2.76KB2.02KB▼ 26.80%
assets/images/TatraPay_h32.png6.47KB2.24KB▼ 65.36%
assets/images/Installments_h32.png3.42KB1.57KB▼ 54.05%