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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 40.88 ▲3.07 |
Dashboard /wp-admin | 3.86 ▲0.56 | 47.26 ▼3.26 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 45.10 ▼3.31 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.67 | 74.30 ▼19.94 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 35.43 ▲2.92 |
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_field | 3.64 | 37.44 |
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_submissions | 3.64 | 35.22 |
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_manager | 3.64 | 32.74 |
Flaming Forms /wp-admin/admin.php?page=flaming_form | 3.70 | 31.67 |
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_submission | 3.64 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.23 ▼0.12 | 1.67 ▲0.05 | 46.89 ▲6.39 |
Dashboard /wp-admin | 2,205 ▲34 | 5.55 ▼0.04 | 84.73 ▼4.94 | 40.82 ▼4.55 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.97 ▼0.04 | 34.48 ▼1.75 | 32.89 ▼5.55 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 18.53 ▼4.52 | 619.95 ▼53.04 | 69.74 ▲16.66 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.22 ▼0.02 | 103.21 ▲0.31 | 40.94 ▼5.84 |
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_field | 875 | 2.18 | 26.45 | 33.04 |
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_submissions | 875 | 2.05 | 24.42 | 30.81 |
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_manager | 875 | 2.05 | 24.90 | 34.15 |
Flaming Forms /wp-admin/admin.php?page=flaming_form | 1,396 | 5.39 | 99.63 | 64.33 |
Flaming Form Manager /wp-admin/admin.php?page=flaming_form_submission | 878 | 2.17 | 28.86 | 37.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 660 | 1,066 | 3,332 |
JavaScript | 5 | 83 | 67 | 470 |
CSS | 5 | 42 | 5 | 273 |
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 code | 0.44 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 1 | 3.70% |
▷ Concrete classes | 26 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 5 | 3.38% |
▷ Public methods | 140 | 94.59% |
▷ Protected methods | 8 | 5.41% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 55 | |
▷ Global constants | 36 | 65.45% |
▷ Class constants | 19 | 34.55% |
▷ Public constants | 19 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/styles/images/ui-bg_flat_25_000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
includes/styles/images/ui-bg_highlight-hard_30_f58400_1x100.png | 0.31KB | 0.16KB | ▼ 50.00% |
includes/styles/images/ui-bg_glass_20_555555_1x400.png | 0.25KB | 0.15KB | ▼ 40.38% |
includes/styles/images/ui-bg_glass_40_ffc73d_1x400.png | 0.31KB | 0.16KB | ▼ 49.37% |
includes/styles/images/ui-icons_000_256x240.png | 5.21KB | 4.17KB | ▼ 19.81% |