88% qinvoice-mollie-ideal-for-gravity-forms

Code Review | q-invoice Mollie iDeal for Gravity Forms

WordPress plugin q-invoice Mollie iDeal for Gravity Forms scored 88% from 53 tests.

About plugin

  • Plugin page: qinvoice-mollie-i...
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 5.8.1
  • First release: Feb 24, 2020
  • Latest release: Apr 3, 2020
  • Number of updates: 9
  • Update frequency: every 5.1 days
  • Top authors: q-invoice (100%)

Code review

53 tests

User reviews

1 review

Install metrics

70+ active / 1,207 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼278.06ms] Passed 4 tests

A check of server-side resources used by q-invoice Mollie iDeal for Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1240.57 ▲20.40
Dashboard /wp-admin3.06 ▲0.0137.48 ▼10.89
Posts /wp-admin/edit.php3.11 ▲0.0142.01 ▼2.59
Add New Post /wp-admin/post-new.php5.42 ▼0.0187.34 ▼1,094.16
Media Library /wp-admin/upload.php3.00 ▼0.0032.21 ▼4.61

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 267 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by q-invoice Mollie iDeal for Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲9716.43 ▲0.507.62 ▼1.5351.66 ▼5.81
Dashboard /wp-admin2,956 ▲1065.97 ▲0.16140.88 ▲5.21117.19 ▲19.98
Posts /wp-admin/edit.php2,706 ▼02.68 ▼0.0165.15 ▲0.8992.07 ▼0.69
Add New Post /wp-admin/post-new.php1,853 ▲20019.05 ▲0.22355.07 ▼9.25105.50 ▼2.74
Media Library /wp-admin/upload.php1,772 ▼05.01 ▲0.01159.94 ▲13.37114.14 ▲3.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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

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
  • 43× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/customers/create-customer-recurring-payment.php
    • > /wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/initialize_with_oauth.php
    • > /wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/payments/list-payments.php
    • > /wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/shipments/update-shipment.php
    • > /wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/payments/return.php
    • > /wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/mandates/list-mandates.php
    • > /wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/shipments/list-shipments.php
    • > /wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/customers/create-customer-payment.php
    • > /wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/customers/update-customer.php
    • > /wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/subscriptions/cancel-subscription.php
  • 197× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/guzzlehttp/guzzle/src/Pool.php:20
    • > PHP Warning
      require_once(wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/initialize_with_oauth.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/qinvoice-mollie-ideal-for-gravity-forms.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie\\Api\\Endpoints\\CollectionEndpointAbstract' not found in wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/src/Endpoints/ShipmentEndpoint.php:9
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/initialize.php on line 9
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/initialize.php on line 9
    • > PHP Warning
      require_once(wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/initialize.php on line 9
    • > PHP Warning
      require_once(wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/mollie/mollie-api-php/examples/initialize.php on line 9
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/qinvoice-mollie-ideal-for-gravity-forms/vendor/guzzlehttp/psr7/src/CachingStream.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: You can look at the official readme.txt

qinvoice-mollie-ideal-for-gravity-forms/qinvoice-mollie-ideal-for-gravity-forms.php Passed 13 tests

The main PHP script in "q-invoice Mollie iDeal for Gravity Forms" version 0.0.6 is automatically included on every request by WordPress
56 characters long description:
Accept iDeal (and other) payments for your Gravity Forms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin17,030 lines of code in 252 files:
LanguageFilesBlank linesComment linesLines of code
PHP2273,0639,29612,731
Markdown131,11803,478
JSON900771
PO File17731
Dockerfile18010
make1409

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity8.07
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces14
Interfaces15
Traits2
Classes153
▷ Abstract classes53.27%
▷ Concrete classes14896.73%
▷ Final classes96.08%
Methods1,016
▷ Static methods868.46%
▷ Public methods81079.72%
▷ Protected methods757.38%
▷ Private methods13112.89%
Functions151
▷ Named functions6241.06%
▷ Anonymous functions8958.94%
Constants161
▷ Global constants00.00%
▷ Class constants161100.00%
▷ Public constants161100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin