79% wing-forms

Code Review | Wing Forms Plugin for WordPress

WordPress plugin Wing Forms Plugin for WordPress scored79%from 54 tests.

About plugin

  • Plugin page: wing-forms
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 7, 2022
  • Latest release: Dec 7, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: chitracreation (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /429 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
Installer ran successfully

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

A check of server-side resources used by Wing Forms Plugin for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2644.45 ▼3.27
Dashboard /wp-admin3.56 ▲0.2151.44 ▼11.50
Posts /wp-admin/edit.php3.61 ▲0.2655.32 ▼1.92
Add New Post /wp-admin/post-new.php6.15 ▲0.2688.68 ▼15.13
Media Library /wp-admin/upload.php3.49 ▲0.2641.03 ▲5.28
Wing Forms 1 /wp-admin/admin.php?page=wfp3.4839.98
Add New /wp-admin/admin.php?page=wfp-new3.6440.68
Integration /wp-admin/admin.php?page=wfp-integration3.4863.42

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

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

Browser metrics Passed 4 tests

Wing Forms Plugin for WordPress: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲7413.24 ▼1.122.19 ▲0.2339.62 ▼3.53
Dashboard /wp-admin2,242 ▲544.89 ▼0.99109.86 ▲6.8440.33 ▲1.28
Posts /wp-admin/edit.php2,125 ▲361.99 ▼0.0337.38 ▼0.3938.85 ▲3.57
Add New Post /wp-admin/post-new.php6,216 ▲4,69719.01 ▼4.42932.44 ▲274.2354.59 ▲0.32
Media Library /wp-admin/upload.php1,427 ▲394.21 ▼0.01109.46 ▲4.5447.37 ▲3.04
Wing Forms 1 /wp-admin/admin.php?page=wfp1,2971.9534.7347.99
Add New /wp-admin/admin.php?page=wfp-new3,5832.7552.5751.95
Integration /wp-admin/admin.php?page=wfp-integration9682.4028.9330.31

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • wfp
    • can_compress_scripts

Smoke tests 50% 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)
Good news, no errors were detected

SRP 0% 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 return non-empty strings:
    • > /wp-content/plugins/wing-forms/admin/edit-wing-form.php
  • 68× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WFP_SWV_Rule' not found in wp-content/plugins/wing-forms/includes/swv/rules/mindate.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'WFP_PLUGIN_DIR/includes/l10n.php' (include_path='.:/usr/share/php') in wp-content/plugins/wing-forms/load.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wing-forms/modules/akismet.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wing-forms/modules/doi-helper.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WFP_SWV_Rule' not found in wp-content/plugins/wing-forms/includes/swv/rules/email.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wing-forms/admin/includes/config-validator.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WFP_SWV_Rule' not found in wp-content/plugins/wing-forms/includes/swv/rules/tel.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WFP_FormTag' not found in wp-content/plugins/wing-forms/includes/shortcodes.php:94
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wing-forms/modules/sendinblue/wing-form-properties.php:3
    • > 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/wing-forms/admin/includes/class-wing-forms-list-table.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

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
6 plugin tags: wing, wing form, form, wing forms, forms...

wing-forms/wing-forms.php Passed 13 tests

The main PHP file in "Wing Forms Plugin for WordPress" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Quick, easy, advance feature rich forms display plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin17,146 lines of code in 103 files:
LanguageFilesBlank linesComment linesLines of code
PHP874,2802,08014,439
CSS81761212,241
JavaScript81234466

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity18.33
▷ Minimum class complexity1.00
▷ Maximum class complexity116.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits2
Classes52
▷ Abstract classes47.69%
▷ Concrete classes4892.31%
▷ Final classes00.00%
Methods460
▷ Static methods326.96%
▷ Public methods35877.83%
▷ Protected methods4710.22%
▷ Private methods5511.96%
Functions316
▷ Named functions28489.87%
▷ Anonymous functions3210.13%
Constants60
▷ Global constants1830.00%
▷ Class constants4270.00%
▷ Public constants42100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/js/jquery-ui/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png0.32KB0.16KB▼ 50.46%
includes/js/jquery-ui/themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png0.38KB0.15KB▼ 61.54%
includes/js/jquery-ui/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png0.32KB0.15KB▼ 53.40%
includes/js/jquery-ui/themes/smoothness/images/ui-icons_cd0a0a_256x240.png4.57KB4.18KB▼ 8.43%
includes/js/jquery-ui/themes/smoothness/images/ui-icons_222222_256x240.png6.86KB4.18KB▼ 39.05%