78% forms-3rdparty-integration

Code Review | Forms: 3rd-Party Integration

WordPress plugin Forms: 3rd-Party Integration scored78%from 54 tests.

About plugin

  • Plugin page: forms-3rdparty-in...
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.3
  • WordPress version: 6.3.1
  • First release: Nov 14, 2012
  • Latest release: Sep 9, 2019
  • Number of updates: 83
  • Update frequency: every 30.4 days
  • Top authors: zaus (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

9,000+ active /114,566 total downloads

Benchmarks

Plugin footprint 83% from 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.13MB] [CPU: ▼7.92ms] Passed 4 tests

An overview of server-side resources used by Forms: 3rd-Party Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1440.58 ▲2.74
Dashboard /wp-admin3.45 ▲0.1044.61 ▼14.31
Posts /wp-admin/edit.php3.56 ▲0.2150.29 ▲3.08
Add New Post /wp-admin/post-new.php6.03 ▲0.1482.06 ▼23.19
Media Library /wp-admin/upload.php3.37 ▲0.1437.11 ▲6.29

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options
Forms3rdPartyIntegration_settings
widget_theysaidso_widget
theysaidso_admin_options
Forms3rdPartyIntegration_version
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Forms: 3rd-Party Integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.37 ▲0.101.66 ▼0.0146.12 ▲5.44
Dashboard /wp-admin2,198 ▲215.62 ▼0.0583.05 ▼4.7039.19 ▼5.00
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0135.52 ▼0.3832.17 ▼1.53
Add New Post /wp-admin/post-new.php1,528 ▼722.62 ▲4.43662.82 ▲10.6248.42 ▼12.83
Media Library /wp-admin/upload.php1,403 ▲64.21 ▲0.01110.36 ▲10.9547.31 ▲3.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • Forms3rdPartyIntegration_version
    • widget_recent-comments
    • widget_theysaidso_widget
    • Forms3rdPartyIntegration_settings
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% 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 0% 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 output text when accessed directly:
    • > /wp-content/plugins/forms-3rdparty-integration/3rd-parties/service_test.php
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/forms-3rdparty-integration/includes.php on line 24
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/forms-3rdparty-integration/plugin-ui.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/forms-3rdparty-integration/3rd-parties/mailchimp/functions.mailchimp.php:17
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/forms-3rdparty-integration/includes.php on line 24
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/forms-3rdparty-integration/3rd-parties/service_test.php on line 32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/forms-3rdparty-integration/3rd-parties/listrak/functions.listrak.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Forms3rdpartyIntegration_FPLUGIN' not found in wp-content/plugins/forms-3rdparty-integration/plugins/contactform7.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Forms3rdpartyIntegration_FPLUGIN' not found in wp-content/plugins/forms-3rdparty-integration/plugins/gravityforms.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/forms-3rdparty-integration/forms-3rdparty-integration.php:125
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/forms-3rdparty-integration/includes.php on line 24

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
These attributes need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Screenshots: These screenshots require images: #1 (Admin page - create multiple services, set up debugging/notice emails, example code), #2 (Sample service - mailchimp integration, with static and mapped values), #3 (Sample service - salesforce integration, with static and mapped values)
Please take inspiration from this readme.txt

forms-3rdparty-integration/forms-3rdparty-integration.php Passed 13 tests

The entry point to "Forms: 3rd-Party Integration" version 1.8 is a PHP file that has certain tags in its header comment area
81 characters long description:
Send plugin Forms Submissions (Gravity, CF7, Ninja Forms, etc) to a 3rd-party URL

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,941 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP125049771,421
Markdown11530376
JavaScript12124116
CSS112228

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity19.80
▷ Minimum class complexity3.00
▷ Maximum class complexity98.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes220.00%
▷ Concrete classes880.00%
▷ Final classes00.00%
Methods135
▷ Static methods10.74%
▷ Public methods5943.70%
▷ Protected methods7253.33%
▷ Private methods42.96%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants00.00%
▷ Class constants16100.00%
▷ Public constants16100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.31MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png92.67KB40.53KB▼ 56.26%
screenshot-2.png73.38KB30.84KB▼ 57.97%
3rd-parties/salesforce/salesforce setup cf7 - screenshot.png92.67KB40.53KB▼ 56.26%
screenshot-1.png49.93KB24.13KB▼ 51.68%
i_plugin.png0.74KB0.81KB0.00%