10% flaming-forms

Code Review | Flaming Forms

WordPress plugin Flaming Forms scored10%from 54 tests.

About plugin

  • Plugin page: flaming-forms
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 20, 2015
  • Latest release: Aug 15, 2017
  • Number of updates: 18
  • Update frequency: every 40.3 days
  • Top authors: jcaruso001 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,106 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/flaming-forms/flaming_forms.php+170
    Trying to get property 'Id' of non-object

Server metrics [RAM: ▲0.53MB] [CPU: ▼5.90ms] Passed 4 tests

Server-side resources used by Flaming Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4640.88 ▲3.07
Dashboard /wp-admin3.86 ▲0.5647.26 ▼3.26
Posts /wp-admin/edit.php3.90 ▲0.5445.10 ▼3.31
Add New Post /wp-admin/post-new.php6.55 ▲0.6774.30 ▼19.94
Media Library /wp-admin/upload.php3.80 ▲0.5735.43 ▲2.92
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_field3.6437.44
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_submissions3.6435.22
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_manager3.6432.74
Flaming Forms /wp-admin/admin.php?page=flaming_form3.7031.67
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_submission3.6433.42

Server storage [IO: ▲0.28MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 70 new files
Database: 4 new tables, 7 new options
New tables
wp_flaming_form_submission_values
wp_flaming_form_submission
wp_flaming_form_fields
wp_flaming_forms
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
flaming_form_1_options

Browser metrics Passed 4 tests

A check of browser resources used by Flaming Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.23 ▼0.121.67 ▲0.0546.89 ▲6.39
Dashboard /wp-admin2,205 ▲345.55 ▼0.0484.73 ▼4.9440.82 ▼4.55
Posts /wp-admin/edit.php2,116 ▲161.97 ▼0.0434.48 ▼1.7532.89 ▼5.55
Add New Post /wp-admin/post-new.php1,548 ▲2218.53 ▼4.52619.95 ▼53.0469.74 ▲16.66
Media Library /wp-admin/upload.php1,416 ▲134.22 ▼0.02103.21 ▲0.3140.94 ▼5.84
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_field8752.1826.4533.04
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_submissions8752.0524.4230.81
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_manager8752.0524.9034.15
Flaming Forms /wp-admin/admin.php?page=flaming_form1,3965.3999.6364.33
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_submission8782.1728.8637.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • flaming_form_1_options
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=flaming_form_submission
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

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
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/flaming-forms/views/templates/DefaultThankYou.php
    • > /wp-content/plugins/flaming-forms/views/templates/DefaultForm.php
    • > /wp-content/plugins/flaming-forms/views/templates/FlamingSubmit.php
    • > /wp-content/plugins/flaming-forms/views/templates/DefaultField.php
    • > /wp-content/plugins/flaming-forms/views/templates/FlamingRecaptcha.php
  • 29× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/flaming-forms/views/FieldEdit.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'FlamingInputBase' not found in wp-content/plugins/flaming-forms/classes/inputs/FlamingRadio.php:3
    • > PHP Warning
      Use of undefined constant FLAMING_FORMS_VERSION - assumed 'FLAMING_FORMS_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/flaming-forms/views/FormsList.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'FlamingInputBase' not found in wp-content/plugins/flaming-forms/classes/inputs/FlamingSubmit.php:10
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/flaming-forms/schema.php on line 4
    • > PHP Warning
      Use of undefined constant FLAMING_FORMS_VERSION - assumed 'FLAMING_FORMS_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/flaming-forms/views/FieldEdit.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'FlamingInputBase' not found in wp-content/plugins/flaming-forms/classes/inputs/FlamingEmail.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'FlamingInputBase' not found in wp-content/plugins/flaming-forms/classes/inputs/FlamingRecaptcha.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'FlamingInputBase' not found in wp-content/plugins/flaming-forms/classes/inputs/FlamingDate.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'FlamingInputBase' not found in wp-content/plugins/flaming-forms/classes/inputs/FlamingTags.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === flaming-forms === )
You can look at the official readme.txt

flaming-forms/flaming_forms.php 92% from 13 tests

"Flaming Forms" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("flaming-forms.php" instead of "flaming_forms.php")

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
There were no executable files found in this plugin4,075 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
PHP416601,0663,332
JavaScript58367470
CSS5425273

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity15.50
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity3.99
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes27
▷ Abstract classes13.70%
▷ Concrete classes2696.30%
▷ Final classes00.00%
Methods148
▷ Static methods53.38%
▷ Public methods14094.59%
▷ Protected methods85.41%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants55
▷ Global constants3665.45%
▷ Class constants1934.55%
▷ Public constants19100.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
18 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/styles/images/ui-bg_flat_25_000_40x100.png0.20KB0.08KB▼ 57.56%
includes/styles/images/ui-bg_highlight-hard_30_f58400_1x100.png0.31KB0.16KB▼ 50.00%
includes/styles/images/ui-bg_glass_20_555555_1x400.png0.25KB0.15KB▼ 40.38%
includes/styles/images/ui-bg_glass_40_ffc73d_1x400.png0.31KB0.16KB▼ 49.37%
includes/styles/images/ui-icons_000_256x240.png5.21KB4.17KB▼ 19.81%