Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.59ms] Passed 4 tests
Server-side resources used by Caldera Forms CiviCRM
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 44.09 ▲2.47 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.73 ▼4.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.42 ▼2.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.36 ▼7.15 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.04 ▼0.36 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 100 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Caldera Forms CiviCRM
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.26 ▼0.11 | 1.70 ▼0.02 | 43.88 ▲3.53 |
Dashboard /wp-admin | 2,204 ▲27 | 5.66 ▲0.01 | 86.19 ▼4.95 | 40.73 ▼7.00 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.01 | 36.81 ▼1.13 | 36.36 ▼0.26 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.16 ▲5.64 | 622.61 ▼65.52 | 66.84 ▲12.98 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.19 ▼0.01 | 109.05 ▲1.50 | 45.57 ▼0.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cf-civicrm/fields/civicrm_country/preview.php
- > /wp-content/plugins/cf-civicrm/fields/discount/preview.php
- > /wp-content/plugins/cf-civicrm/fields/civicrm_premium/preview.php
- > /wp-content/plugins/cf-civicrm/panels/civicrm.php
- > /wp-content/plugins/cf-civicrm/fields/civicrm_contact_reference/preview.php
- > /wp-content/plugins/cf-civicrm/fields/civicrm_state/preview.php
- > /wp-content/plugins/cf-civicrm/templates/thank-you.php
- > /wp-content/plugins/cf-civicrm/processors/dummy/dummy_meta.php
- 55× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: field in wp-content/plugins/cf-civicrm/fields/civicrm_premium/field.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cf-civicrm/cf-civicrm.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function caldera_forms_civicrm() in wp-content/plugins/cf-civicrm/fields/civicrm_state/field.php:2
- > PHP Notice
Undefined variable: field_before in wp-content/plugins/cf-civicrm/fields/civicrm_premium/field.php on line 7
- > PHP Notice
Undefined variable: field_before in wp-content/plugins/cf-civicrm/fields/discount/field.php on line 3
- > PHP Notice
Undefined variable: wrapper_before in wp-content/plugins/cf-civicrm/fields/civicrm_premium/field.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function caldera_forms_civicrm() in wp-content/plugins/cf-civicrm/fields/civicrm_state/config.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cf-civicrm/fields/civicrm_contact_reference/field.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cf-civicrm/form-templates/civicrm-organisation-contact.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cf-civicrm/fields/civicrm_premium/field.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: caldera, integration, forms, civicrm
cf-civicrm/cf-civicrm.php Passed 13 tests
The principal PHP file in "Caldera Forms CiviCRM" v. 1.0.5 is loaded by WordPress automatically on each request
38 characters long description:
CiviCRM integration for Caldera Forms.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected14,853 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 2,520 | 4,379 | 9,811 |
JavaScript | 7 | 1,190 | 286 | 4,582 |
CSS | 2 | 57 | 0 | 428 |
Markdown | 1 | 14 | 0 | 32 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 25.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 41 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 41 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 305 | |
▷ Static methods | 1 | 0.33% |
▷ Public methods | 296 | 97.05% |
▷ Protected methods | 1 | 0.33% |
▷ Private methods | 8 | 2.62% |
Functions | 76 | |
▷ Named functions | 1 | 1.32% |
▷ Anonymous functions | 75 | 98.68% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin