10% breezing-forms

Code Review | Breezing Forms

WordPress plugin Breezing Forms scored10%from 54 tests.

About plugin

  • Plugin page: breezing-forms
  • Plugin version: 1.2.8.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Sep 28, 2012
  • Latest release: Aug 27, 2020
  • Number of updates: 191
  • Update frequency: every 15.1 days
  • Top authors: crosstec (100%)

Code review

54 tests

User reviews

42 reviews

Install metrics

800+ active /98,970 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/breezing-forms/breezingforms.php+499
    Function create_function() is deprecated

Server metrics [RAM: ▼1.80MB] [CPU: ▼55.96ms] Passed 4 tests

An overview of server-side resources used by Breezing Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.19 ▼1.285.68 ▼40.81
Dashboard /wp-admin2.21 ▼1.107.58 ▼41.89
Posts /wp-admin/edit.php2.21 ▼1.158.73 ▼42.50
Add New Post /wp-admin/post-new.php2.21 ▼3.687.36 ▼98.63
Media Library /wp-admin/upload.php2.21 ▼1.026.24 ▼30.48
Configuration /wp-admin/admin.php?page=breezingforms&act=configuration2.216.94
Records /wp-admin/admin.php?page=breezingforms&act=recordmanagement2.219.47
BreezingForms /wp-admin/admin.php?page=breezingforms2.216.34
Scripts /wp-admin/admin.php?page=breezingforms&act=managescripts2.217.24
Forms /wp-admin/admin.php?page=breezingforms&act=manageforms2.216.88
Pieces /wp-admin/admin.php?page=breezingforms&act=managepieces2.219.16

Server storage [IO: ▲14.07MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • You have illegally modified 163 files (205.03KB) outside of "wp-content/plugins/breezing-forms/" and "wp-content/uploads/"
    • (new file) wp-content/breezingforms/downloadtpl/sofort_success.php
    • (new file) wp-content/breezingforms/downloadtpl/index.html
    • (new file) wp-content/breezingforms/mailtpl/mailtpl.txt.php
    • (new file) wp-content/breezingforms/downloadtpl/error.php
    • (new file) wp-content/breezingforms/downloadtpl/sofort_download.php
    • (new file) wp-content/breezingforms/downloadtpl/download.php
    • (new file) wp-content/breezingforms/WPISNEW
    • (new file) wp-content/breezingforms/index.html
    • (new file) wp-content/breezingforms/mailtpl/index.html
    • (new file) wp-content/breezingforms/mailtpl/mailbacktpl.txt.php
    • ...
Filesystem: 1,385 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_breezingformswidget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Breezing Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,990 ▲22913.43 ▼1.107.77 ▲5.9440.65 ▼5.80
Dashboard /wp-admin2,305 ▲1255.58 ▼0.0889.04 ▼2.4172.44 ▲30.94
Posts /wp-admin/edit.php2,228 ▲1281.98 ▲0.0335.05 ▼6.4632.29 ▼2.48
Add New Post /wp-admin/post-new.php1,636 ▲10823.53 ▲0.41672.15 ▲29.8585.68 ▲32.89
Media Library /wp-admin/upload.php1,519 ▲1194.21 ▼0.08106.82 ▲1.2677.94 ▲32.42
Configuration /wp-admin/admin.php?page=breezingforms&act=configuration1,2804.4466.36120.04
Records /wp-admin/admin.php?page=breezingforms&act=recordmanagement1,3914.4764.5063.28
BreezingForms /wp-admin/admin.php?page=breezingforms1,3884.2749.1662.42
Scripts /wp-admin/admin.php?page=breezingforms&act=managescripts1,3064.2146.4259.78
Forms /wp-admin/admin.php?page=breezingforms&act=manageforms1,3384.2851.5846.72
Pieces /wp-admin/admin.php?page=breezingforms&act=managepieces1,2874.2749.9847.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/breezing-forms/breezingforms.php+499
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_breezingformswidget
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Deprecated in wp-content/plugins/breezing-forms/breezingforms.php+499
    Function create_function() is deprecated
  • 48 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Deprecated in wp-content/plugins/breezing-forms/platform/components/com_breezingforms/facileforms.class.php+148
    Array and string offset access syntax with curly braces is deprecated
  • 18 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Warning in wp-content/plugins/breezing-forms/platform/libraries/joomla/session/session.php+801
    ini_set(): A session is active. You cannot change the session module's ini settings at this time
  • 24 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Notice in wp-content/plugins/breezing-forms/platform/libraries/joomla/language/language.php+1033
    Trying to access array offset on value of type null
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Notice in wp-content/plugins/breezing-forms/platform/libraries/joomla/application/component/helper.php+54
    Undefined index: com_breezingforms
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Notice in wp-content/plugins/breezing-forms/platform/administrator/includes/application.php+196
    Trying to get property 'params' of non-object
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Notice in wp-content/plugins/breezing-forms/platform/libraries/joomla/application/component/helper.php+85
    Trying to get property 'enabled' of non-object
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Deprecated in wp-content/plugins/breezing-forms/platform/libraries/joomla/environment/request.php+153
    Function get_magic_quotes_gpc() is deprecated
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Deprecated in wp-content/plugins/breezing-forms/platform/components/com_breezingforms/facileforms.class.php+135
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Deprecated in wp-content/plugins/breezing-forms/platform/components/com_breezingforms/facileforms.class.php+265
    The each() function is deprecated. This message will be suppressed on further calls
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Warning in wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/admin/install.class.php+103
    rmdir(wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/exports): No such file or directory
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Warning in wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/admin/install.class.php+104
    rmdir(wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/images/pizzashop): No such file or directory
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Warning in wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/admin/install.class.php+105
    rmdir(wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/uploads): No such file or directory
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Warning in wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/admin/install.class.php+106
    rmdir(wp-content/plugins/breezing-forms/platform/components/com_breezingforms/admin): No such file or directory
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Warning in wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/admin/install.class.php+107
    rmdir(wp-content/plugins/breezing-forms/platform/components/com_breezingforms/images/icons): Directory not empty
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Warning in wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/admin/install.class.php+108
    rmdir(wp-content/plugins/breezing-forms/platform/components/com_breezingforms/packages): No such file or directory
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Warning in wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/admin/install.class.php+109
    rmdir(wp-content/plugins/breezing-forms/platform/components/com_breezingforms/sql): No such file or directory
  • 24 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Warning in wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/admin/install.class.php+80
    chmod(): No such file or directory

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
  • 106× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/libraries/crosstec/classes/BFTableElements.php
    • > /wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/libraries/tcpdf/include/tcpdf_fonts.php
    • > /wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/admin/install.class.php
    • > /wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/admin/element.class.php
    • > /wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/libraries/salesforce/SforceFieldTypes.php
    • > /wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/admin/quickmode-elements-js.php
    • > /wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/admin/piece.php
    • > /wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/admin/form.html.php
    • > /wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/libraries/crosstec/classes/BFQuickModeMobile.php
    • > /wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/libraries/salesforce/ProxySettings.php
  • 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined index: filename in wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/admin/download.php on line 16
    • > PHP Notice
      Undefined index: HTTP_REFERER in wp-content/plugins/breezing-forms/platform/administrator/components/com_breezingforms/admin/download.php on line 56
    • > PHP Warning
      Use of undefined constant DB_USER - assumed 'DB_USER' (this will throw an Error in a future version of PHP) in wp-content/plugins/breezing-forms/platform/includes/framework.php on line 56
    • > PHP Warning
      Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP) in wp-content/plugins/breezing-forms/platform/configuration.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/breezing-forms/breezingforms.php:14
    • > PHP Warning
      Use of undefined constant DB_PASSWORD - assumed 'DB_PASSWORD' (this will throw an Error in a future version of PHP) in wp-content/plugins/breezing-forms/platform/includes/framework.php on line 56
    • > PHP Warning
      Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP) in wp-content/plugins/breezing-forms/platform/configuration.php on line 3
    • > PHP Warning
      Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/breezing-forms/platform/includes/framework.php on line 56
    • > PHP Warning
      Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/breezing-forms/platform/includes/framework.php on line 56
    • > PHP Warning
      Use of undefined constant DB_HOST - assumed 'DB_HOST' (this will throw an Error in a future version of PHP) in wp-content/plugins/breezing-forms/platform/includes/framework.php on line 56

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Javascript (severe) in unknown
    /wp-content/plugins/breezing-forms/platform/media/system/js/mootools-more.js?ver=6.3.1 4:10939 Uncaught TypeError: Function.prototype.toString requires that 'this' be a Function
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Javascript (severe) in unknown
    /wp-includes/js/dist/i18n.min.js?ver=7701b0c3857f914212ef 1:9103 Uncaught TypeError: Cannot read properties of undefined (reading 'hooks')
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=configuration
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=breezingforms&act=configuration 407:0 Uncaught ReferenceError: wp is not defined
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Javascript (severe) in unknown
    /wp-admin/js/common.min.js?ver=6.3.1 1:61 Uncaught ReferenceError: wp is not defined
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=recordmanagement
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=breezingforms&act=recordmanagement 407:0 Uncaught ReferenceError: wp is not defined
    • > GET request to /wp-admin/admin.php?page=breezingforms
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=breezingforms 407:0 Uncaught ReferenceError: wp is not defined
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managescripts
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=breezingforms&act=managescripts 407:0 Uncaught ReferenceError: wp is not defined
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=manageforms
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=breezingforms&act=manageforms 407:0 Uncaught ReferenceError: wp is not defined
    • > GET request to /wp-admin/admin.php?page=breezingforms&act=managepieces
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=breezingforms&act=managepieces 407:0 Uncaught ReferenceError: wp is not defined

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Job application form with "Aqua" form-theme), #2 (Example job application form with "Glossy Blue" form-theme), #3 (Form settings admin), #4 (Sample record with image previews)
You can take inspiration from this readme.txt

breezing-forms/breezingforms.php 92% from 13 tests

"Breezing Forms" version 1.2.8.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("breezing-forms.php" instead of "breezingforms.php")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin210,365 lines of code in 720 files:
LanguageFilesBlank linesComment linesLines of code
PHP52219,34063,350136,865
JavaScript669,0348,83236,493
INI4567218815,227
XML1667611113,522
CSS651,6035988,079
XSLT2110163
HTML40416

PHP code 0% from 2 tests

A short review of cyclomatic complexity and code structure
Please fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,343)
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 498)
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity37.68
▷ Minimum class complexity1.00
▷ Maximum class complexity4,343.00
Average method complexity5.62
▷ Minimum method complexity1.00
▷ Maximum method complexity498.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes483
▷ Abstract classes6313.04%
▷ Concrete classes42086.96%
▷ Final classes40.95%
Methods3,896
▷ Static methods77319.84%
▷ Public methods3,16181.13%
▷ Protected methods69617.86%
▷ Private methods391.00%
Functions210
▷ Named functions20899.05%
▷ Anonymous functions20.95%
Constants349
▷ Global constants27378.22%
▷ Class constants7621.78%
▷ Public constants76100.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
382 PNG files occupy 1.76MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
platform/administrator/components/com_breezingforms/images/js/ThemeOffice/config.png0.70KB0.52KB▼ 25.98%
platform/administrator/components/com_breezingforms/libraries/jquery/themes/easymode/i/icon_static-text.png0.34KB0.25KB▼ 25.79%
platform/administrator/components/com_breezingforms/libraries/jquery/themes/easymode/i/icon_text-field.png0.21KB0.14KB▼ 34.10%
platform/components/com_breezingforms/themes/quickmode/glossy_gray/img/bg_fieldset-bl.png0.55KB0.56KB0.00%
platform/administrator/components/com_breezingforms/libraries/jquery/themes/quickmode/i/icon_calendar.png0.25KB0.16KB▼ 36.78%