73% tripetto

Code Review | WordPress form builder plugin for contact forms, surveys and quizzes - Tripetto

WordPress plugin WordPress form builder plugin for contact forms, surveys and quizzes - Tripetto scored73%from 54 tests.

About plugin

  • Plugin page: tripetto
  • Plugin version: 7.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Jun 18, 2019
  • Latest release: Nov 14, 2023
  • Number of updates: 187
  • Update frequency: every 8.6 days
  • Top authors: tripetto (100%)

Code review

54 tests

User reviews

112 reviews

Install metrics

2,000+ active /73,557 total downloads

Benchmarks

Plugin footprint 65% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.66MB] [CPU: ▲2.03ms] Passed 4 tests

Server-side resources used by WordPress form builder plugin for contact forms, surveys and quizzes - Tripetto
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.11 ▲0.6540.70 ▼0.49
Dashboard /wp-admin3.98 ▲0.6851.58 ▲6.06
Posts /wp-admin/edit.php4.04 ▲0.6853.56 ▲8.69
Add New Post /wp-admin/post-new.php6.52 ▲0.6489.36 ▼6.14
Media Library /wp-admin/upload.php3.91 ▲0.6844.60 ▲8.96
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius4.0738.48
Tripetto /wp-admin/options-general.php?page=tripetto-settings3.7335.28

Server storage [IO: ▲20.05MB] [DB: ▲0.01MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • The plugin illegally modified 1 file (0.91KB) outside of "wp-content/plugins/tripetto/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 1,048 new files
Database: 5 new tables, 9 new options
New tables
wp_tripetto_attachments
wp_tripetto_entries
wp_tripetto_announcements
wp_tripetto_snapshots
wp_tripetto_forms
New WordPress options
fs_debug_mode
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
fs_active_plugins
fs_accounts

Browser metrics Passed 4 tests

A check of browser resources used by WordPress form builder plugin for contact forms, surveys and quizzes - Tripetto
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17014.71 ▲0.061.84 ▲0.2029.20 ▼12.87
Dashboard /wp-admin2,334 ▲1545.56 ▼0.1189.29 ▲2.7042.81 ▼2.89
Posts /wp-admin/edit.php2,250 ▲1502.00 ▲0.0641.57 ▲5.4034.74 ▲0.76
Add New Post /wp-admin/post-new.php6,400 ▲4,87435.38 ▲12.071,123.89 ▲437.6438.21 ▼14.24
Media Library /wp-admin/upload.php1,543 ▲1404.30 ▲0.1398.22 ▼5.2046.04 ▲1.47
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1941.6826.1830.25
Tripetto /wp-admin/options-general.php?page=tripetto-settings1,0281.7027.4246.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/tripetto/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 9 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • fs_debug_mode
    • widget_recent-posts
    • can_compress_scripts
    • fs_accounts
    • fs_active_plugins
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Tripetto\\ListFactory' not found in wp-content/plugins/tripetto/admin/results/list.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/tripetto/elementor/widget.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Tripetto\\ListFactory' not found in wp-content/plugins/tripetto/admin/forms/list.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Tripetto\\ListFactory' not found in wp-content/plugins/tripetto/admin/forms/list.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Tripetto\\ListFactory' not found in wp-content/plugins/tripetto/admin/results/list.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Tripetto\\ListFactory' not found in wp-content/plugins/tripetto/admin/forms/list.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: form, form plugin, form builder, forms, contact form

tripetto/plugin.php 92% from 13 tests

The main file in "WordPress form builder plugin for contact forms, surveys and quizzes - Tripetto" v. 7.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("tripetto.php" instead of "plugin.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected163,660 lines of code in 940 files:
LanguageFilesBlank linesComment linesLines of code
JSON74700119,588
PHP1579,55317,99440,375
PO File41,4251,3283,490
SVG100168
CSS160024
JavaScript1501515

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
It is recommended to fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity71.53
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.93
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes84
▷ Abstract classes22.38%
▷ Concrete classes8297.62%
▷ Final classes33.66%
Methods1,551
▷ Static methods38925.08%
▷ Public methods1,12872.73%
▷ Protected methods402.58%
▷ Private methods38324.69%
Functions108
▷ Named functions10395.37%
▷ Anonymous functions54.63%
Constants148
▷ Global constants10168.24%
▷ Class constants4731.76%
▷ Public constants47100.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
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/tripetto.png5.51KB1.94KB▼ 64.87%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
assets/preview.png36.68KB16.27KB▼ 55.65%