62% pie-forms-for-wp

Code Review | Drag & Drop Builder, Human Face Detector, Pre-built Templates, Spam Protection, User Email Notifications & more!

WordPress plugin Drag & Drop Builder, Human Face Detector, Pre-built Templates, Spam Protection, User Email Notifications & more! scored62%from 54 tests.

About plugin

  • Plugin page: pie-forms-for-wp
  • Plugin version: 1.4.17
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 5, 2020
  • Latest release: Aug 29, 2023
  • Number of updates: 105
  • Update frequency: every 10.7 days
  • Top authors: genetech (77.14%)pieforms (23.81%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /9,028 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.86MB] [CPU: ▲2.85ms] Passed 4 tests

A check of server-side resources used by Drag & Drop Builder, Human Face Detector, Pre-built Templates, Spam Protection, User Email Notifications & more!
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.29 ▲0.8344.34 ▲5.18
Dashboard /wp-admin4.19 ▲0.8856.40 ▲7.93
Posts /wp-admin/edit.php4.24 ▲0.8864.54 ▲17.59
Add New Post /wp-admin/post-new.php6.77 ▲0.8889.47 ▼6.02
Media Library /wp-admin/upload.php4.09 ▲0.8639.18 ▲4.31
Smart Auto Translation /wp-admin/admin.php?page=pf-smarttranslation4.1442.74
/wp-admin/admin.php?page=pie-forms4.2444.88
Global Settings /wp-admin/admin.php?page=pf-settings4.6948.96
Block User /wp-admin/admin.php?page=pf-blockuser4.1241.58
About Us /wp-admin/admin.php?page=pf-aboutus4.1245.20
Marketing /wp-admin/admin.php?page=pf-marketing4.1343.01
Drip Campaign /wp-admin/admin.php?page=pf-drip-campaign4.1140.34
Welcome to pieform /wp-admin/index.php?page=pieforms-getting-started4.0841.81
Tools /wp-admin/admin.php?page=pf-tools4.1855.82
Broadcast Email /wp-admin/admin.php?page=pf-broadcast-email4.1241.29

Server storage [IO: ▲5.68MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 363 new files
Database: 4 new tables, 8 new options
New tables
wp_pf_entrymeta
wp_pf_forms
wp_pf_fields
wp_pf_entries
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
pie_forms_version
widget_theysaidso_widget
pie_forms_db_version
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Drag & Drop Builder, Human Face Detector, Pre-built Templates, Spam Protection, User Email Notifications & more!
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,123 ▲36214.75 ▲0.031.98 ▲0.0334.46 ▼8.80
Dashboard /wp-admin2,497 ▲3206.50 ▲0.90112.53 ▲17.5242.41 ▼1.73
Posts /wp-admin/edit.php2,434 ▲3343.74 ▲1.7157.38 ▲15.6737.39 ▼2.45
Add New Post /wp-admin/post-new.php6,296 ▲4,77019.04 ▼3.88880.64 ▲281.7138.85 ▼15.44
Media Library /wp-admin/upload.php1,568 ▲1684.50 ▲0.3191.51 ▼4.9644.90 ▲3.53
Smart Auto Translation /wp-admin/admin.php?page=pf-smarttranslation1,3553.5254.5787.36
/wp-admin/admin.php?page=pie-forms1,5963.6253.5185.29
Global Settings /wp-admin/admin.php?page=pf-settings1,4013.6351.1682.81
Block User /wp-admin/admin.php?page=pf-blockuser1,3663.3951.4280.88
About Us /wp-admin/admin.php?page=pf-aboutus1,3963.4751.78100.76
Marketing /wp-admin/admin.php?page=pf-marketing1,3563.4250.5586.68
Drip Campaign /wp-admin/admin.php?page=pf-drip-campaign1,3393.4047.6673.72
Welcome to pieform /wp-admin/index.php?page=pieforms-getting-started1,81910.34292.19122.00
Tools /wp-admin/admin.php?page=pf-tools1,4123.4149.1273.77
Broadcast Email /wp-admin/admin.php?page=pf-broadcast-email1,3563.4149.0577.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_pf_entries
    • wp_pf_forms
    • wp_pf_entrymeta
    • wp_pf_fields
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-posts
    • pie_forms_version
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • pie_forms_db_version

Smoke tests 25% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pie-forms-for-wp/includes/templates/settings.php
    • > /wp-content/plugins/pie-forms-for-wp/includes/templates/marketing.php
    • > /wp-content/plugins/pie-forms-for-wp/includes/templates/smarttranslation.php
    • > /wp-content/plugins/pie-forms-for-wp/includes/templates/blockuser.php
    • > /wp-content/plugins/pie-forms-for-wp/includes/templates/tools.php
  • 29× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/pie-forms-for-wp/includes/templates/recommended-docx.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/pie-forms-for-wp/includes/integration/elementor/widget.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pie-forms-for-wp/pie-forms-for-wp.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'PFORM_Abstracts_Blockuser' not found in wp-content/plugins/pie-forms-for-wp/includes/blockuser/emailaddress.php:3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-upgrader-skin.php): failed to open stream: No such file or directory in wp-content/plugins/pie-forms-for-wp/includes/core/helper/plugin-silent-upgrader-skin.php on line 4
    • > PHP Fatal error
      Uncaught Error: Interface 'PFORM_Admin_Importers_Interface' not found in wp-content/plugins/pie-forms-for-wp/includes/abstracts/importer.php:6
    • > PHP Warning
      The use statement with non-compound name 'WP_Error' has no effect in wp-content/plugins/pie-forms-for-wp/includes/core/helper/plugin-silent-upgrader.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'WPBakeryShortCode' not found in wp-content/plugins/pie-forms-for-wp/includes/integration/wpbakery/register.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pie-forms-for-wp/includes/templates/entries-search.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pie-forms-for-wp/includes/templates/search.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=pf-marketing
    • > Network (severe)
    wp-content/plugins/pie-forms-for-wp/assets/js/marketing.js?ver=1.4.17 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% 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 builder, contact form, custom form, email form, contact form plugin

pie-forms-for-wp/pie-forms-for-wp.php 85% from 13 tests

The primary PHP file in "Drag & Drop Builder, Human Face Detector, Pre-built Templates, Spam Protection, User Email Notifications & more!" version 1.4.17 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin38,978 lines of code in 213 files:
LanguageFilesBlank linesComment linesLines of code
PHP1454,0284,29417,073
SVG8009,564
JavaScript258773855,632
CSS314061484,618
JSON4202,091

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 102)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity20.22
▷ Minimum class complexity1.00
▷ Maximum class complexity286.00
Average method complexity4.15
▷ Minimum method complexity1.00
▷ Maximum method complexity102.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes116
▷ Abstract classes119.48%
▷ Concrete classes10590.52%
▷ Final classes1716.19%
Methods725
▷ Static methods7310.07%
▷ Public methods67993.66%
▷ Protected methods314.28%
▷ Private methods152.07%
Functions15
▷ Named functions213.33%
▷ Anonymous functions1386.67%
Constants5
▷ Global constants120.00%
▷ Class constants480.00%
▷ Public constants4100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
113 PNG files occupy 0.74MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/tools/environment-icon.png1.00KB0.99KB▼ 0.59%
assets/images/recommended/schedule-form.png1.81KB0.84KB▼ 53.40%
assets/images/pieforms-notice-logo.png0.96KB0.41KB▼ 57.00%
assets/images/notices/plus.png0.17KB0.16KB▼ 9.50%
assets/images/settings/captcha_icon_setting.png0.53KB0.64KB0.00%