84% forms-3rdparty-migrate

Code Review | Forms: 3rd-Party Migration

WordPress plugin Forms: 3rd-Party Migration scored84%from 54 tests.

About plugin

  • Plugin page: forms-3rdparty-mi...
  • Plugin version: 0.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2014
  • Latest release: Sep 29, 2016
  • Number of updates: 6
  • Update frequency: every 124.7 days
  • Top authors: zaus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,416 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.88ms] Passed 4 tests

An overview of server-side resources used by Forms: 3rd-Party Migration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0443.29 ▲2.66
Dashboard /wp-admin3.39 ▲0.0448.61 ▼2.75
Posts /wp-admin/edit.php3.50 ▲0.1047.08 ▼0.51
Add New Post /wp-admin/post-new.php5.97 ▲0.0493.10 ▼5.43
Media Library /wp-admin/upload.php3.31 ▲0.0436.65 ▼2.84
Forms-3rdparty Migrate /wp-admin/tools.php?page=forms-3rdparty-migrate_config3.2833.05

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
forms-3rdparty-migrate_settings
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Forms: 3rd-Party Migration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▲0.242.00 ▲0.4743.65 ▲3.18
Dashboard /wp-admin2,202 ▲255.58 ▼0.1292.76 ▲5.9642.66 ▼1.71
Posts /wp-admin/edit.php2,104 ▲41.97 ▲0.0039.89 ▲4.7935.94 ▼2.37
Add New Post /wp-admin/post-new.php1,531 ▲323.00 ▼0.00636.79 ▼44.7144.93 ▼7.60
Media Library /wp-admin/upload.php1,404 ▲74.24 ▲0.0499.56 ▼31.7945.47 ▼3.23
Forms-3rdparty Migrate /wp-admin/tools.php?page=forms-3rdparty-migrate_config9612.0122.5527.52

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • forms-3rdparty-migrate_settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 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/forms-3rdparty-migrate/forms-3rdparty-migrate.php:59

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt is a good inspiration

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

The entry point to "Forms: 3rd-Party Migration" version 0.3.3 is a PHP file that has certain tags in its header comment area
74 characters long description:
Export/Import settings for Forms-3rdparty, or migrate to/from CF7-3rdparty

Code Analysis Passed 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
No dangerous file extensions were detected224 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17350224

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.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
No PNG images were found in this plugin