83% tiger-form

Code Review | Tiger Forms - Drag and Drop Form Builder

WordPress plugin Tiger Forms - Drag and Drop Form Builder scored83%from 54 tests.

About plugin

  • Plugin page: tiger-form
  • Plugin version: 2.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.1
  • WordPress version: 6.3.1
  • First release: May 22, 2020
  • Latest release: Sep 14, 2023
  • Number of updates: 17
  • Update frequency: every 71.2 days
  • Top authors: jakir0010 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

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

Server metrics [RAM: ▲0.61MB] [CPU: ▲0.64ms] Passed 4 tests

Analyzing server-side resources used by Tiger Forms - Drag and Drop Form Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.13 ▲0.6347.25 ▼1.45
Dashboard /wp-admin3.99 ▲0.6555.81 ▲1.43
Posts /wp-admin/edit.php4.05 ▲0.6553.01 ▲1.07
Add New Post /wp-admin/post-new.php6.51 ▲0.5999.53 ▲1.52
Media Library /wp-admin/upload.php3.86 ▲0.5843.32 ▲8.32
Export Data Table /wp-admin/admin.php?page=tiger-forms-export-table3.8236.29
All Inserted Data /wp-admin/admin.php?page=tiger-forms-all-inserted-data3.8443.47
All Forms /wp-admin/admin.php?page=tiger-forms3.8439.33
Add New Form /wp-admin/admin.php?page=tiger-forms-add-new3.8337.18

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 57 new files
Database: 2 new tables, 6 new options
New tables
wp_tiger_form_10
wp_tiger_forms_main
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Tiger Forms - Drag and Drop Form Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14113.51 ▼0.849.15 ▲7.4842.47 ▲2.36
Dashboard /wp-admin2,222 ▲485.59 ▲0.0693.18 ▲7.7944.21 ▲1.82
Posts /wp-admin/edit.php2,124 ▲242.01 ▲0.0432.71 ▼6.7735.61 ▼5.70
Add New Post /wp-admin/post-new.php1,559 ▲3318.55 ▼4.56622.83 ▼96.4066.56 ▲11.83
Media Library /wp-admin/upload.php1,427 ▲274.24 ▼0.0198.00 ▼3.7744.54 ▼3.23
Export Data Table /wp-admin/admin.php?page=tiger-forms-export-table1,8332.3729.2344.94
All Inserted Data /wp-admin/admin.php?page=tiger-forms-all-inserted-data1,3031.6728.3334.50
All Forms /wp-admin/admin.php?page=tiger-forms1,1721.6626.7535.78
Add New Form /wp-admin/admin.php?page=tiger-forms-add-new2,4902.7044.1635.88

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 37× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tiger-form/inc/content/admin/data-form-ultimate-shortcode.php:142
    • > PHP Fatal error
      Uncaught Error: Call to a member function tiger_form_plugin_dir_path() on null in wp-content/plugins/tiger-form/inc/options/extended-file.php:8
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tiger-form/inc/content/difu-actions/difu-all-data.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tiger-form/inc/content/asset/select.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tiger-form/inc/content/asset/radio.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tiger-form/inc/content/asset/date.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tiger-form/inc/js/js.php:98
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/tiger-form/inc/content/edit-form.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tiger-form/inc/content/form-supply/js.php:32
    • > PHP Fatal error
      Uncaught Error: Call to a member function textField() on null in wp-content/plugins/tiger-form/inc/content/admin/userend.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (All forms.), #2 (Add new form.), #3 (All inserted data.), #4 (Manage table and table columns.)
You can look at the official readme.txt

tiger-form/tiger-forms-main.php 77% from 13 tests

The main file in "Tiger Forms - Drag and Drop Form Builder" v. 2.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tiger-form.php" instead of "tiger-forms-main.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 151 characters long)

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 plugin7,644 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP41444275,059
JavaScript7184251,764
CSS21330821

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.24
Average class complexity17.80
▷ Minimum class complexity3.00
▷ Maximum class complexity40.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods4489.80%
▷ Protected methods510.20%
▷ Private methods00.00%
Functions44
▷ Named functions44100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.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
5 PNG files occupy 0.46MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png102.93KB31.00KB▼ 69.88%
inc/image/info-icon.png23.68KB18.35KB▼ 22.50%
screenshot-1.png87.02KB26.48KB▼ 69.57%
screenshot-4.png126.31KB37.57KB▼ 70.26%
screenshot-2.png127.45KB32.56KB▼ 74.45%