Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲5.05MB] [CPU: ▲22.50ms] 50% from 4 tests
A check of server-side resources used by Live Drag and Drop Builder for Contact Form 7
Please take the time to fix the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,219.81ms on /wp-admin/options-general.php?page=wpvsfb_welcome_page)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.05MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.93 ▲5.47 | 60.87 ▲19.96 |
Dashboard /wp-admin | 8.96 ▲5.65 | 73.98 ▲26.85 |
Posts /wp-admin/edit.php | 8.96 ▲5.60 | 82.35 ▲34.15 |
Add New Post /wp-admin/post-new.php | 9.36 ▲3.47 | 105.87 ▲12.07 |
Media Library /wp-admin/upload.php | 8.96 ▲5.72 | 64.26 ▲31.11 |
CF7 Form Builder /wp-admin/options-general.php?page=wpvsfb_welcome_page | 8.96 | 1,219.81 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.95 | 58.92 |
Server storage [IO: ▲7.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 255 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
fs_accounts |
fs_active_plugins |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
wpvsfb_welcome_redirect |
fs_debug_mode |
Browser metrics Passed 4 tests
Live Drag and Drop Builder for Contact Form 7: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲87 | 13.24 ▼1.14 | 4.47 ▲2.42 | 28.95 ▼17.28 |
Dashboard /wp-admin | 2,228 ▲40 | 5.83 ▲0.94 | 111.03 ▼0.75 | 45.33 ▼2.16 |
Posts /wp-admin/edit.php | 2,114 ▲22 | 2.05 ▼0.12 | 43.13 ▲6.13 | 38.01 ▲4.28 |
Add New Post /wp-admin/post-new.php | 1,523 ▼10 | 22.50 ▼0.54 | 653.13 ▼4.54 | 58.90 ▼3.91 |
Media Library /wp-admin/upload.php | 1,410 ▲25 | 4.21 ▼0.01 | 99.67 ▼0.88 | 47.15 ▲4.82 |
CF7 Form Builder /wp-admin/options-general.php?page=wpvsfb_welcome_page | 979 | 1.71 | 26.47 | 55.14 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,072 | 2.21 | 26.98 | 33.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/drag-and-drop-form-builder-for-contact-form-7/vendor/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 10 options in the database
- fs_debug_mode
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- fs_active_plugins
- widget_theysaidso_widget
- fs_accounts
- wpvsfb_welcome_redirect
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function fs_dynamic_init() in wp-content/plugins/drag-and-drop-form-builder-for-contact-form-7/inc/freemius.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/drag-and-drop-form-builder-for-contact-form-7/vendor/vg-plugin-sdk/samples/email-optin-form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/drag-and-drop-form-builder-for-contact-form-7/core/views/metabox.php:113
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/drag-and-drop-form-builder-for-contact-form-7/core/index.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/drag-and-drop-form-builder-for-contact-form-7/views/welcome-page-content.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/drag-and-drop-form-builder-for-contact-form-7/vendor/vg-plugin-sdk/views/page-template.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: cf7, wpcf7, contact form 7, contact form 7 db
drag-and-drop-form-builder-for-contact-form-7/index.php 85% from 13 tests
The main file in "Live Drag and Drop Builder for Contact Form 7" v. 1.2.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("drag-and-drop-form-builder-for-contact-form-7.php" instead of "index.php")
Code Analysis 97% from 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 plugin55,158 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 125 | 8,119 | 17,271 | 33,788 |
JSON | 1 | 0 | 0 | 10,040 |
SVG | 3 | 0 | 12 | 8,891 |
JavaScript | 9 | 324 | 330 | 1,614 |
CSS | 18 | 18 | 58 | 706 |
PO File | 1 | 41 | 50 | 119 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 88.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,298 | |
▷ Static methods | 199 | 15.33% |
▷ Public methods | 907 | 69.88% |
▷ Protected methods | 17 | 1.31% |
▷ Private methods | 374 | 28.81% |
Functions | 101 | |
▷ Named functions | 101 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.44MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/assets/imgs/previews-forms/form-green-cf7.png | 62.30KB | 18.52KB | ▼ 70.27% |
core/assets/imgs/previews-forms/form-plain-cf7.png | 111.69KB | 30.33KB | ▼ 72.85% |
core/assets/imgs/previews-forms/form-red-cf7.png | 61.67KB | 18.51KB | ▼ 69.99% |
vendor/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
vendor/freemius/assets/img/drag-and-drop-form-builder-for-contact-form-7.png | 3.12KB | 2.85KB | ▼ 8.43% |