78% migrate-wufoo-to-gravity-forms

Code Review | Migrate Wufoo To Gravity Forms

WordPress plugin Migrate Wufoo To Gravity Forms scored 78% from 54 tests.

About plugin

  • Plugin page: migrate-wufoo-to-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 19, 2016
  • Latest release: Jan 19, 2016
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: rtcamp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,260 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
Install script ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▲0.34ms] Passed 4 tests

This is a short check of server-side resources used by Migrate Wufoo To Gravity Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2942.87 ▼0.23
Dashboard /wp-admin3.59 ▲0.2848.50 ▼0.52
Posts /wp-admin/edit.php3.64 ▲0.2846.52 ▼2.05
Add New Post /wp-admin/post-new.php6.11 ▲0.2298.53 ▲4.16
Media Library /wp-admin/upload.php3.45 ▲0.2237.36 ▲5.85
Wufoo Importer /wp-admin/admin.php?page=mapper_wufoo3.4234.81

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Migrate Wufoo To Gravity Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.24 ▼1.071.80 ▼0.3339.84 ▼13.10
Dashboard /wp-admin2,200 ▲94.86 ▼0.04102.30 ▲2.6442.90 ▼4.28
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0538.39 ▲0.1332.91 ▼2.35
Add New Post /wp-admin/post-new.php1,542 ▲2218.45 ▼4.66626.31 ▼17.8253.41 ▼10.04
Media Library /wp-admin/upload.php1,391 ▼04.18 ▼0.01100.33 ▼2.2740.60 ▼4.29
Wufoo Importer /wp-admin/admin.php?page=mapper_wufoo8261.8428.7125.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined index: domain in wp-content/plugins/migrate-wufoo-to-gravity-forms/lib/Wufoo-API/index.php on line 12
    • > PHP Notice
      Array to string conversion in wp-content/plugins/migrate-wufoo-to-gravity-forms/lib/Wufoo-API/index.php on line 13
    • > PHP Fatal error
      Uncaught Error: Function name must be a string in wp-content/plugins/migrate-wufoo-to-gravity-forms/lib/Wufoo-API/index.php:13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/migrate-wufoo-to-gravity-forms/lib/Wufoo-API/index.php on line 13
    • > PHP Notice
      Undefined property: WufooApiExamples::$Array in wp-content/plugins/migrate-wufoo-to-gravity-forms/lib/Wufoo-API/index.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'WufooApiWrapper' not found in wp-content/plugins/migrate-wufoo-to-gravity-forms/rtWufooAPI.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/migrate-wufoo-to-gravity-forms/rtWufoo.php:38
    • > PHP Notice
      Undefined index: apiKey in wp-content/plugins/migrate-wufoo-to-gravity-forms/lib/Wufoo-API/index.php on line 12
    • > PHP Notice
      Undefined index: subdomain in wp-content/plugins/migrate-wufoo-to-gravity-forms/lib/Wufoo-API/index.php on line 12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=mapper_wufoo
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/migrate-wufoo-to-gravity-forms/js/mapper.js?ver=6.3.1:294:43)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=mapper_wufoo
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Requires at least: Version not formatted correctly
You can look at the official readme.txt

migrate-wufoo-to-gravity-forms/index.php 92% from 13 tests

Analyzing the main PHP file in "Migrate Wufoo To Gravity Forms" version 1.0
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("migrate-wufoo-to-gravity-forms.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,703 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP102874621,364
JavaScript15575215
Markdown155085
CSS15039

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.75
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods126
▷ Static methods00.00%
▷ Public methods11188.10%
▷ Protected methods43.17%
▷ Private methods118.73%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin