78% integration-for-elementor-forms-mollie

Code Review | Integration for Elementor forms - Mollie

WordPress plugin Integration for Elementor forms - Mollie scored 78% from 54 tests.

About plugin

  • Plugin page: integration-for-e...
  • Plugin version: 1.3.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Oct 18, 2021
  • Latest release: Jul 23, 2023
  • Number of updates: 11
  • Update frequency: every 58.8 days
  • Top authors: webtica (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,096 total downloads

Benchmarks

Plugin footprint 83% 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.09ms] Passed 4 tests

This is a short check of server-side resources used by Integration for Elementor forms - Mollie
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.62 ▼2.64
Dashboard /wp-admin3.31 ▲0.0157.37 ▼3.05
Posts /wp-admin/edit.php3.36 ▲0.0154.32 ▼7.29
Add New Post /wp-admin/post-new.php5.89 ▲0.01105.36 ▼4.38
Media Library /wp-admin/upload.php3.23 ▲0.0137.99 ▼5.64

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 217 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Integration for Elementor forms - Mollie
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲913.28 ▼1.131.95 ▼0.1542.71 ▼8.01
Dashboard /wp-admin2,212 ▲35.84 ▲1.00124.62 ▲3.5442.61 ▼4.68
Posts /wp-admin/edit.php2,097 ▲82.01 ▲0.0238.74 ▼2.1332.81 ▼0.16
Add New Post /wp-admin/post-new.php1,528 ▼522.72 ▼0.49619.43 ▼55.5453.02 ▼10.65
Media Library /wp-admin/upload.php1,394 ▲64.30 ▲0.10103.39 ▼1.9244.23 ▼1.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% 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 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 take a closer look at the following
  • 54× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/orders/list-methods.php
    • > /wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/captures/list-captures.php
    • > /wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/customers/create-customer-payment.php
    • > /wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/payments/list-payments.php
    • > /wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/orders/update-order-lines-multiple.php
    • > /wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/payments/create-payment.php
    • > /wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/mandates/list-mandates.php
    • > /wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/profiles/create-profile.php
    • > /wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/profiles/list-profiles.php
    • > /wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/subscriptions/create-subscription.php
  • 209× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined index: order_id in wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/payments/return.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie\\Api\\Resources\\CursorCollection' not found in wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/src/Resources/InvoiceCollection.php:5
    • > PHP Warning
      require_once(wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/initialize.php on line 9
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/initialize.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie\\Api\\Resources\\BaseResource' not found in wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/src/Resources/Onboarding.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie\\Api\\Resources\\CursorCollection' not found in wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/src/Resources/ChargebackCollection.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie\\Api\\Endpoints\\CollectionEndpointAbstract' not found in wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/src/Endpoints/RefundEndpoint.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie\\Api\\Resources\\CursorCollection' not found in wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/src/Resources/ClientCollection.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Mollie\\Api\\Idempotency\\IdempotencyKeyGeneratorContract' not found in wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/src/Idempotency/DefaultIdempotencyKeyGenerator.php:6
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/integration-for-elementor-forms-mollie/vendor/mollie/mollie-api-php/examples/initialize.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: integration, mollie, lists, forms, automation...

integration-for-elementor-forms-mollie/mollie-elementor-integration.php 92% from 13 tests

The primary PHP file in "Integration for Elementor forms - Mollie" version 1.3.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("integration-for-elementor-forms-mollie.php" instead of "mollie-elementor-integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin7,287 lines of code in 207 files:
LanguageFilesBlank linesComment linesLines of code
PHP2002,0086,8256,671
JSON400323
Markdown31190293

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.54
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces10
Interfaces3
Traits0
Classes131
▷ Abstract classes53.82%
▷ Concrete classes12696.18%
▷ Final classes21.59%
Methods540
▷ Static methods387.04%
▷ Public methods41576.85%
▷ Protected methods10319.07%
▷ Private methods224.07%
Functions14
▷ Named functions535.71%
▷ Anonymous functions964.29%
Constants154
▷ Global constants00.00%
▷ Class constants154100.00%
▷ Public constants154100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin