84% mautic-for-fluent-forms

Code Review | Mautic Integration For Fluent Forms

WordPress plugin Mautic Integration For Fluent Forms scored84%from 54 tests.

About plugin

  • Plugin page: mautic-for-fluent...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Mar 10, 2020
  • Latest release: Nov 2, 2023
  • Number of updates: 8
  • Update frequency: every 167.3 days
  • Top authors: adreastrian (62.5%)techjewel (50%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /4,628 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.44ms] Passed 4 tests

An overview of server-side resources used by Mautic Integration For Fluent Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.94 ▲0.11
Dashboard /wp-admin3.33 ▲0.0249.28 ▼1.48
Posts /wp-admin/edit.php3.38 ▲0.0250.53 ▲3.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.12 ▼12.12
Media Library /wp-admin/upload.php3.25 ▲0.0235.44 ▼0.28

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
fluentform_global_modules_status
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Mautic Integration For Fluent Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.24 ▼0.111.91 ▲0.2341.36 ▼5.59
Dashboard /wp-admin2,198 ▲205.65 ▼0.0996.26 ▼18.2246.50 ▲2.58
Posts /wp-admin/edit.php2,106 ▲62.03 ▲0.0640.25 ▲3.0137.62 ▲4.99
Add New Post /wp-admin/post-new.php1,532 ▲423.66 ▲0.65649.25 ▲28.6155.67 ▲9.68
Media Library /wp-admin/upload.php1,406 ▲34.23 ▲0.0894.67 ▼8.9943.04 ▼0.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • fluentform_global_modules_status
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'FluentForm\\App\\Services\\Integrations\\IntegrationManager' not found in wp-content/plugins/mautic-for-fluent-forms/Integrations/Bootstrap.php: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 93% 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
3 plugin tags: form, mautic, integration

mautic-for-fluent-forms/mautic-for-fluentforms.php 85% from 13 tests

The primary PHP file in "Mautic Integration For Fluent Forms" version 1.0.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("mautic-for-fluent-forms.php" instead of "mautic-for-fluentforms.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin595 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP410941595

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.67
▷ Minimum class complexity5.00
▷ Maximum class complexity21.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods1869.23%
▷ Protected methods830.77%
▷ Private methods00.00%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected