83% qonnex-finance-spread-payment-option-for-woocommerce

Code Review | Qonnex Finance spread payment option for WooCommerce

WordPress plugin Qonnex Finance spread payment option for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: qonnex-finance-sp...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 22, 2016
  • Latest release: Oct 22, 2016
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: qonnexfinance (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /665 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.12ms] Passed 4 tests

An overview of server-side resources used by Qonnex Finance spread payment option for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.38 ▼30.64
Dashboard /wp-admin3.33 ▲0.0350.13 ▲0.36
Posts /wp-admin/edit.php3.38 ▲0.0351.58 ▼0.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.88 ▼9.96
Media Library /wp-admin/upload.php3.26 ▲0.0340.33 ▲1.55

Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
These are issues you should consider
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/qonnex-finance-spread-payment-option-for-woocommerce/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Qonnex Finance spread payment option for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.30 ▼1.071.92 ▼0.7643.36 ▼2.35
Dashboard /wp-admin2,218 ▲154.88 ▼0.06144.25 ▲31.5243.91 ▲2.72
Posts /wp-admin/edit.php2,100 ▼02.05 ▼0.0139.06 ▲4.6235.12 ▼1.72
Add New Post /wp-admin/post-new.php1,526 ▼517.85 ▼5.18673.18 ▲27.2955.22 ▼7.82
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.07104.30 ▼10.4545.59 ▼6.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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
Good news, no errors were detected

SRP 50% 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qonnex-finance-spread-payment-option-for-woocommerce/woocommerce-gateway-gespreid-betalen.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can take inspiration from this readme.txt

qonnex-finance-spread-payment-option-for-woocommerce/woocommerce-gateway-gespreid-betalen.php 92% from 13 tests

The main PHP file in "Qonnex Finance spread payment option for WooCommerce" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("qonnex-finance-spread-payment-option-for-woocommerce.php" instead of "woocommerce-gateway-gespreid-betalen.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected223 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21773223

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity4.88
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin