84% formidable-gravity-forms-importer

Code Review | Contact Form Migrator from Gravity Forms to Formidable

WordPress plugin Contact Form Migrator from Gravity Forms to Formidable scored84%from 54 tests.

About plugin

  • Plugin page: formidable-gravit...
  • Plugin version: 1.02
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: May 15, 2020
  • Latest release: Mar 27, 2021
  • Number of updates: 7
  • Update frequency: every 45.4 days
  • Top authors: formidableforms (85.71%)sswells (28.57%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /3,360 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.02ms] Passed 4 tests

Server-side resources used by Contact Form Migrator from Gravity Forms to Formidable
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.93 ▼0.57
Dashboard /wp-admin3.31 ▲0.0045.90 ▼2.61
Posts /wp-admin/edit.php3.36 ▲0.0045.41 ▲0.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.99 ▼0.02
Media Library /wp-admin/upload.php3.23 ▲0.0034.13 ▼0.89

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Contact Form Migrator from Gravity Forms to Formidable
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.12 ▼1.631.74 ▼0.0543.89 ▲1.26
Dashboard /wp-admin2,218 ▲305.86 ▼0.0194.59 ▼19.5238.45 ▼3.45
Posts /wp-admin/edit.php2,101 ▲122.00 ▲0.0140.16 ▲4.9935.71 ▼3.07
Add New Post /wp-admin/post-new.php1,551 ▲1818.50 ▼4.74604.53 ▼93.1453.58 ▼5.15
Media Library /wp-admin/upload.php1,400 ▲124.17 ▼0.0795.21 ▼9.8342.37 ▼0.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'FrmFormMigrator' not found in wp-content/plugins/formidable-gravity-forms-importer/classes/FrmGravityImporter.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/formidable-gravity-forms-importer/formidable-gravity-forms-importer.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: gravity forms, gravity form, gravityview, forms, contact form

formidable-gravity-forms-importer/formidable-gravity-forms-importer.php Passed 13 tests

The main PHP script in "Contact Form Migrator from Gravity Forms to Formidable" version 1.02 is automatically included on every request by WordPress
51 characters long description:
Import forms from Gravity Forms to Formidable Forms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,213 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25802232,213

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity607.00
▷ Minimum class complexity607.00
▷ Maximum class complexity607.00
Average method complexity6.61
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods104
▷ Static methods10.96%
▷ Public methods32.88%
▷ Protected methods1413.46%
▷ Private methods8783.65%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin