84% gf-mollie-by-indigo

Code Review | GF Mollie by Indigo

WordPress plugin GF Mollie by Indigo scored84%from 54 tests.

About plugin

  • Plugin page: gf-mollie-by-indigo
  • Plugin version: 1.11.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.7-6.3
  • WordPress version: 6.3.1
  • First release: Jan 5, 2018
  • Latest release: Aug 2, 2023
  • Number of updates: 49
  • Update frequency: every 42.4 days
  • Top authors: indigonl (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

1,000+ active /19,438 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

This is a short check of server-side resources used by GF Mollie by Indigo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.38 ▲0.61
Dashboard /wp-admin3.31 ▲0.0148.64 ▼3.10
Posts /wp-admin/edit.php3.36 ▲0.0149.82 ▼0.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.77 ▼9.62
Media Library /wp-admin/upload.php3.23 ▲0.0140.89 ▲1.87

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by GF Mollie by Indigo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.32 ▼1.035.22 ▲2.9343.41 ▲0.30
Dashboard /wp-admin2,221 ▲185.86 ▼0.02111.08 ▲7.5143.67 ▼2.95
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0634.99 ▼5.6832.70 ▼2.97
Add New Post /wp-admin/post-new.php1,548 ▲2223.45 ▲5.79643.36 ▼40.7757.65 ▲0.48
Media Library /wp-admin/upload.php1,397 ▼34.29 ▲0.06102.50 ▼0.6845.65 ▼1.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 19× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie_API_Resource_Base' not found in wp-content/plugins/gf-mollie-by-indigo/Mollie/API/Resource/Refunds.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie_API_Resource_Base' not found in wp-content/plugins/gf-mollie-by-indigo/Mollie/API/Resource/Organizations.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie_API_Resource_Base' not found in wp-content/plugins/gf-mollie-by-indigo/Mollie/API/Resource/Settlements.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-mollie-by-indigo/class-gf-mollie.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie_API_Resource_Base' not found in wp-content/plugins/gf-mollie-by-indigo/Mollie/API/Resource/Customers/Mandates.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie_API_Exception' not found in wp-content/plugins/gf-mollie-by-indigo/Mollie/API/Exception/IncompatiblePlatform.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie_API_Resource_Base' not found in wp-content/plugins/gf-mollie-by-indigo/Mollie/API/Resource/Profiles.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie_API_Resource_Base' not found in wp-content/plugins/gf-mollie-by-indigo/Mollie/API/Resource/Methods.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie_API_Resource_Base' not found in wp-content/plugins/gf-mollie-by-indigo/Mollie/API/Resource/Profiles/APIKeys.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie_API_Resource_Base' not found in wp-content/plugins/gf-mollie-by-indigo/Mollie/API/Resource/Customers.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: You can take inspiration from this readme.txt

gf-mollie-by-indigo/gf-mollie-by-indigo.php Passed 13 tests

"GF Mollie by Indigo" version 1.11.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
110 characters long description:
Integrates Gravity Forms with Mollie, enabling end users to purchase goods and services through Gravity Forms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,575 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP375462,4181,544
PO File16631

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.72
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes36
▷ Abstract classes12.78%
▷ Concrete classes3597.22%
▷ Final classes00.00%
Methods120
▷ Static methods65.00%
▷ Public methods9377.50%
▷ Protected methods1915.83%
▷ Private methods86.67%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants60
▷ Global constants11.67%
▷ Class constants5998.33%
▷ Public constants59100.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