68% wp-mautic-form-integrator

Code Review | WP Mautic Form Integrator

WordPress plugin WP Mautic Form Integrator scored 68% from 54 tests.

About plugin

  • Plugin page: wp-mautic-form-in...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 5.8.1
  • First release: Jul 6, 2016
  • Latest release: Aug 4, 2017
  • Number of updates: 8
  • Update frequency: every 49.3 days
  • Top authors: hireawiz (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

500+ active / 7,889 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼146.34ms] Passed 4 tests

An overview of server-side resources used by WP Mautic Form Integrator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.08 ▲0.2537.32 ▼1.78
Dashboard /wp-admin3.38 ▲0.3255.54 ▲2.74
Posts /wp-admin/edit.php3.43 ▲0.3239.71 ▼16.74
Add New Post /wp-admin/post-new.php5.67 ▲0.2491.88 ▼569.56
Media Library /wp-admin/upload.php3.26 ▲0.2639.64 ▲3.80
Add New /wp-admin/admin.php?page=haw-mautic-integration-add-new3.2637.52
Settings /wp-admin/admin.php?page=haw-mautic-integration-setting3.2637.25
WP Mautic Form Integrator /wp-admin/admin.php?page=haw-mautic-integration3.2740.46

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 52 new files
Database: 3 new tables, 1 new option
New tables
wp_haw_mautic_integration_form
wp_haw_mautic_forms
wp_haw_mautic_form_fields
New WordPress options
haw_mautic_integration_do_activation_redirect

Browser metrics Passed 4 tests

A check of browser resources used by WP Mautic Form Integrator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,721 ▲14916.17 ▲0.2410.93 ▼0.7151.01 ▲1.82
Dashboard /wp-admin3,015 ▲815.89 ▼0.11147.05 ▼18.88117.37 ▼2.11
Posts /wp-admin/edit.php2,781 ▲422.73 ▲0.0175.65 ▼4.5297.73 ▲6.76
Add New Post /wp-admin/post-new.php1,622 ▲4118.72 ▲0.63420.69 ▼10.45109.12 ▼6.44
Media Library /wp-admin/upload.php1,848 ▲385.04 ▼0.01173.70 ▲31.82126.13 ▲5.18
Add New /wp-admin/admin.php?page=haw-mautic-integration-add-new1,3022.4056.7581.54
Settings /wp-admin/admin.php?page=haw-mautic-integration-setting1,2652.2464.9383.49
WP Mautic Form Integrator /wp-admin/admin.php?page=haw-mautic-integration1,2962.2165.6766.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_haw_mautic_form_fields
    • wp_haw_mautic_forms
    • wp_haw_mautic_integration_form
  • Zombie WordPress options detected upon uninstall: 1 option
    • haw_mautic_integration_do_activation_redirect

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-mautic-form-integrator/wp-mautic-form-integrator.php
  • 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-mautic-form-integrator/modules/haw-mautic-integration-si-contact-form.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Mautic\\Api\\Api' not found in wp-content/plugins/wp-mautic-form-integrator/lib/Api/Leads.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-mautic-form-integrator/modules/haw-mautic-integration-gravity-forms.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Mautic\\Api\\Api' not found in wp-content/plugins/wp-mautic-form-integrator/lib/Api/Points.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/wp-mautic-form-integrator/vendor/psr/log/Psr/Log/NullLogger.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-mautic-form-integrator/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Mautic\\Api\\Api' not found in wp-content/plugins/wp-mautic-form-integrator/lib/Api/Emails.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-mautic-form-integrator/modules/haw-mautic-integration-cf-7.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Mautic\\Api\\Api' not found in wp-content/plugins/wp-mautic-form-integrator/lib/Api/PointTriggers.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/wp-mautic-form-integrator/lib/Api/Api.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: ninja forms, fast secure forms, contact from 7, gravity forms, formidable forms...

wp-mautic-form-integrator/wp-mautic-form-integrator.php Passed 13 tests

"WP Mautic Form Integrator" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
103 characters long description:
WP Mautic Form Integrator plugin is a bridge between Mautic & several highly used form builder plugins.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,104 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP436251,6212,870
JavaScript150131
JSON20059
Markdown112033
CSS10011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity6.29
▷ Minimum class complexity1.00
▷ Maximum class complexity98.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces7
Interfaces3
Traits2
Classes29
▷ Abstract classes26.90%
▷ Concrete classes2793.10%
▷ Final classes00.00%
Methods157
▷ Static methods85.10%
▷ Public methods14391.08%
▷ Protected methods63.82%
▷ Private methods85.10%
Functions47
▷ Named functions4697.87%
▷ Anonymous functions12.13%
Constants13
▷ Global constants538.46%
▷ Class constants861.54%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected