63% forms-to-zapier

Code Review | Forms to Zapier, Integromat, IFTTT, Workato, Automate.io, elastic.io, Built.io, APIANT, Webhook

WordPress plugin Forms to Zapier, Integromat, IFTTT, Workato, Automate.io, elastic.io, Built.io, APIANT, Webhook scored63%from 54 tests.

About plugin

  • Plugin page: forms-to-zapier
  • Plugin version: 1.1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: May 19, 2019
  • Latest release: Jul 15, 2023
  • Number of updates: 22
  • Update frequency: every 69.0 days
  • Top authors: nasirahmed (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /14,061 total downloads

Benchmarks

Plugin footprint 48% 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: ▲4.99MB] [CPU: ▲20.34ms] Passed 4 tests

A check of server-side resources used by Forms to Zapier, Integromat, IFTTT, Workato, Automate.io, elastic.io, Built.io, APIANT, Webhook
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /8.85 ▲5.3969.57 ▲31.19
Dashboard /wp-admin8.87 ▲5.5767.84 ▲12.91
Posts /wp-admin/edit.php8.87 ▲5.5276.53 ▲31.42
Add New Post /wp-admin/post-new.php9.35 ▲3.47104.19 ▲5.85
Media Library /wp-admin/upload.php8.87 ▲5.6567.97 ▲33.78
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius8.8756.69

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 210 new files
Database: 1 new table, 9 new options
New tables
wp_forms_to_zapier
New WordPress options
widget_recent-comments
fs_active_plugins
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
fs_debug_mode
fs_accounts
can_compress_scripts

Browser metrics Passed 4 tests

Forms to Zapier, Integromat, IFTTT, Workato, Automate.io, elastic.io, Built.io, APIANT, Webhook: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8814.46 ▼0.201.76 ▼0.1130.16 ▼17.95
Dashboard /wp-admin2,237 ▲495.83 ▲0.9298.68 ▼12.7140.44 ▼4.83
Posts /wp-admin/edit.php2,123 ▲342.04 ▲0.0439.45 ▲4.2733.42 ▼4.69
Add New Post /wp-admin/post-new.php1,532 ▲1522.52 ▲4.87692.46 ▲37.2855.80 ▼7.91
Media Library /wp-admin/upload.php1,419 ▲284.31 ▲0.0894.47 ▼0.3248.83 ▲7.14
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0841.6928.0227.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/forms-to-zapier/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie tables were found after uninstall: 1 table
    • wp_forms_to_zapier
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • fs_accounts
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • fs_debug_mode
    • theysaidso_admin_options
    • fs_active_plugins

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/forms-to-zapier/includes/functions-cf7.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/forms-to-zapier/views/new_relation.php:14
    • > 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-to-zapier/includes/class-ftoz-list-table.php on line 2
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/forms-to-zapier/views/edit_relation.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/forms-to-zapier/views/edit_relation.php:5
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/forms-to-zapier/includes/class-ftoz-list-table.php on line 2
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/forms-to-zapier/includes/class-ftoz-list-table.php on line 2

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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Screenshot #1 (screenshot-1.png) image missing
You can look at the official readme.txt

forms-to-zapier/forms-to-zapier.php 85% from 13 tests

"Forms to Zapier, Integromat, IFTTT, Workato, Automate.io, elastic.io, Built.io, APIANT, Webhook" version 1.1.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin34,047 lines of code in 144 files:
LanguageFilesBlank linesComment linesLines of code
PHP1258,17317,42633,749
JavaScript54865279
CSS141019

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity87.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.51
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes52
▷ Abstract classes23.85%
▷ Concrete classes5096.15%
▷ Final classes00.00%
Methods1,301
▷ Static methods19815.22%
▷ Public methods91170.02%
▷ Protected methods171.31%
▷ Private methods37328.67%
Functions107
▷ Named functions107100.00%
▷ Anonymous functions00.00%
Constants151
▷ Global constants10468.87%
▷ Class constants4731.13%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
schreenshot-1.png59.68KB14.20KB▼ 76.20%