Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.53MB] [CPU: ▼3.08ms] Passed 4 tests
Analyzing server-side resources used by Calculated Fields Form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 43.15 ▲3.07 |
Dashboard /wp-admin | 3.87 ▲0.53 | 49.57 ▼12.05 |
Posts /wp-admin/edit.php | 3.92 ▲0.57 | 50.00 ▼2.63 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.53 | 95.86 ▼0.69 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 45.65 ▲11.61 |
Add New /wp-admin/admin.php?page=cp_calculated_fields_form_sub_new | 3.98 | 43.87 |
All Forms /wp-admin/admin.php?page=cp_calculated_fields_form | 3.98 | 41.75 |
Upgrade /wp-admin/admin.php?page=cp_calculated_fields_form_sub_upgrade | 3.68 | 34.69 |
Calculated Fields Form /wp-admin/options-general.php?page=cp_calculated_fields_form | 3.98 | 42.37 |
Documentation /wp-admin/admin.php?page=cp_calculated_fields_form_sub_documentation | 3.68 | 33.82 |
Online Help /wp-admin/admin.php?page=cp_calculated_fields_form_sub_forum | 3.68 | 45.76 |
Troubleshoot Area & General Settings /wp-admin/admin.php?page=cp_calculated_fields_form_sub_troubleshoots_settings | 3.98 | 54.22 |
Marketplace /wp-admin/admin.php?page=cp_calculated_fields_form_sub_marketplace | 3.68 | 35.07 |
Server storage [IO: ▲3.01MB] [DB: ▲0.09MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 282 new files
Database: 4 new tables, 9 new options
New tables |
---|
wp_cp_calculated_fields_form_posts |
wp_cp_calculated_fields_form_revision |
wp_cp_calculated_fields_form_settings |
wp_cp_calculated_fields_form_discount_codes |
New WordPress options |
---|
theysaidso_admin_options |
wp_cp_calculated_fields_form_settings_ROW_FORMAT |
installed_calculated-fields-form |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
CP_CALCULATEDFIELDSF_VERSION |
Browser metrics Passed 4 tests
A check of browser resources used by Calculated Fields Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲92 | 14.22 ▼0.05 | 1.62 ▼0.07 | 38.63 ▼9.40 |
Dashboard /wp-admin | 2,248 ▲71 | 5.57 ▼0.25 | 91.19 ▼5.34 | 40.06 ▼1.27 |
Posts /wp-admin/edit.php | 2,153 ▲50 | 2.03 ▲0.06 | 40.95 ▼0.68 | 36.00 ▼0.42 |
Add New Post /wp-admin/post-new.php | 6,240 ▲4,714 | 19.15 ▼4.13 | 881.26 ▲198.31 | 66.43 ▲8.89 |
Media Library /wp-admin/upload.php | 1,456 ▲56 | 4.23 ▼0.03 | 95.49 ▲1.34 | 42.14 ▼0.66 |
Add New /wp-admin/admin.php?page=cp_calculated_fields_form_sub_new | 1,799 | 2.31 | 50.84 | 57.44 |
All Forms /wp-admin/admin.php?page=cp_calculated_fields_form | 1,802 | 2.32 | 47.88 | 39.59 |
Upgrade /wp-admin/admin.php?page=cp_calculated_fields_form_sub_upgrade | 2,767 | 3.80 | 83.65 | 128.62 |
Calculated Fields Form /wp-admin/options-general.php?page=cp_calculated_fields_form | 1,805 | 2.26 | 42.40 | 46.12 |
Documentation /wp-admin/admin.php?page=cp_calculated_fields_form_sub_documentation | 15,328 | 25.40 | 804.82 | 29.59 |
Online Help /wp-admin/admin.php?page=cp_calculated_fields_form_sub_forum | 2,964 | 4.80 | 122.39 | 143.92 |
Troubleshoot Area & General Settings /wp-admin/admin.php?page=cp_calculated_fields_form_sub_troubleshoots_settings | 1,808 | 2.30 | 34.40 | 42.66 |
Marketplace /wp-admin/admin.php?page=cp_calculated_fields_form_sub_marketplace | 1,412 | 4.09 | 80.47 | 41.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables detected upon uninstall: 4 tables
- wp_cp_calculated_fields_form_discount_codes
- wp_cp_calculated_fields_form_posts
- wp_cp_calculated_fields_form_revision
- wp_cp_calculated_fields_form_settings
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-posts
- installed_calculated-fields-form
- widget_recent-comments
- CP_CALCULATEDFIELDSF_VERSION
- wp_cp_calculated_fields_form_settings_ROW_FORMAT
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cp_calculated_fields_form_sub_marketplace
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
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 items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/calculated-fields-form/inc/cpcff_openai.inc.php
- > /wp-content/plugins/calculated-fields-form/inc/cpcff_public_int.inc.php
- > /wp-content/plugins/calculated-fields-form/captcha/captcha.php
- 25× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/calculated-fields-form/pagebuilders/beaverbuilder/cff/cff/cff.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/calculated-fields-form/pagebuilders/siteorigin/siteorigin-cpcff-variable/tpl/siteorigin-cff-variable-shortcode.php:2
- > PHP Warning
Use of undefined constant CP_CALCULATEDFIELDSF_BASE_PATH - assumed 'CP_CALCULATEDFIELDSF_BASE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/calculated-fields-form/pagebuilders/beaverbuilder/cffvar/cffvar.inc.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/calculated-fields-form/cp_calculatedfieldsf_free.php:21
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/calculated-fields-form/pagebuilders/divi/cff.pb.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/calculated-fields-form/pagebuilders/siteorigin/siteorigin-cpcff/tpl/siteorigin-cff-shortcode.php on line 2
- > PHP Notice
Undefined variable: instance in wp-content/plugins/calculated-fields-form/pagebuilders/siteorigin/siteorigin-cpcff/tpl/siteorigin-cff-shortcode.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/calculated-fields-form/pagebuilders/beaverbuilder/cffvar/cffvar/cffvar.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_ssl() in wp-content/plugins/calculated-fields-form/config/cpcff_config.cfg.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/calculated-fields-form/inc/cpcff_admin_int.inc.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
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
Please fix the following attributes:
- Tags: There are too many tags (44 tag instead of maximum 10)
calculated-fields-form/cp_calculatedfieldsf_free.php 92% from 13 tests
The main PHP script in "Calculated Fields Form" version 1.2.40 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("calculated-fields-form.php" instead of "cp_calculatedfieldsf_free.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin22,608 lines of code in 205 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 116 | 1,042 | 299 | 12,484 |
PHP | 38 | 766 | 1,168 | 5,405 |
CSS | 29 | 323 | 169 | 3,770 |
PO File | 1 | 267 | 291 | 653 |
HTML | 1 | 1 | 0 | 167 |
INI | 14 | 0 | 0 | 73 |
SVG | 5 | 0 | 0 | 37 |
JSON | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 22.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 189 | |
▷ Static methods | 48 | 25.40% |
▷ Public methods | 138 | 73.02% |
▷ Protected methods | 19 | 10.05% |
▷ Private methods | 32 | 16.93% |
Functions | 16 | |
▷ Named functions | 11 | 68.75% |
▷ Anonymous functions | 5 | 31.25% |
Constants | 93 | |
▷ Global constants | 88 | 94.62% |
▷ Class constants | 5 | 5.38% |
▷ Public constants | 5 | 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
31 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendors/jquery-ui/images/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |
vendors/jquery-ui/images/ui-bg_glass_80_d7ebf9_1x400.png | 0.39KB | 0.16KB | ▼ 60.40% |
pagebuilders/visualcomposer/CFFForm/CFFForm/public/cff-thumbnail.png | 7.98KB | 4.25KB | ▼ 46.73% |
vendors/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
templates/02/thumbnail.png | 2.27KB | 1.96KB | ▼ 13.80% |