84% formidable-import-pirate-forms

Code Review | Contact Form Migrator from Pirate Forms to Formidable

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

About plugin

  • Plugin page: formidable-import...
  • Plugin version: 1.01
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Sep 24, 2018
  • Latest release: Mar 27, 2021
  • Number of updates: 8
  • Update frequency: every 114.5 days
  • Top authors: sswells (62.5%)formidableforms (50%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,058 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 gracefully, with no errors

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

Analyzing server-side resources used by Contact Form Migrator from Pirate Forms to Formidable
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.27 ▲0.38
Dashboard /wp-admin3.31 ▲0.0045.35 ▼0.58
Posts /wp-admin/edit.php3.36 ▲0.0045.09 ▼0.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.45 ▼1.68
Media Library /wp-admin/upload.php3.23 ▲0.0034.83 ▼3.42

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form Migrator from Pirate Forms to Formidable
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.31 ▼1.081.77 ▼0.2144.52 ▲7.72
Dashboard /wp-admin2,206 ▲145.85 ▲0.94116.14 ▲9.3741.64 ▼2.15
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0338.62 ▼1.5438.55 ▼4.90
Add New Post /wp-admin/post-new.php1,534 ▼123.17 ▼0.08648.49 ▼32.8446.03 ▼25.43
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0293.36 ▼5.2142.25 ▲0.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/formidable-import-pirate-forms/pf-to-frm.php:642

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wordpress contact form, contact form, custom form, forms, contact form plugin

formidable-import-pirate-forms/pf-to-frm.php 92% from 13 tests

The primary PHP file in "Contact Form Migrator from Pirate Forms to Formidable" version 1.01 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("formidable-import-pirate-forms.php" instead of "pf-to-frm.php")

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
Good job! No executable or dangerous file extensions detected513 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP195101446
JavaScript1261967

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity67.00
▷ Minimum class complexity67.00
▷ Maximum class complexity67.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods733.33%
▷ Protected methods00.00%
▷ Private methods1466.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin