Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲2.08MB] [CPU: ▼131.06ms] Passed 4 tests
Analyzing server-side resources used by Contact Form by WD - responsive drag & drop contact form builder tool
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.80 ▲4.08 | 60.02 ▲37.93 |
Dashboard /wp-admin | 5.12 ▲2.06 | 57.23 ▲8.43 |
Posts /wp-admin/edit.php | 5.16 ▲2.05 | 54.33 ▲18.07 |
Add New Post /wp-admin/post-new.php | 7.64 ▲2.20 | 96.59 ▼562.17 |
Media Library /wp-admin/upload.php | 5.02 ▲2.01 | 44.84 ▲11.42 |
Options /wp-admin/admin.php?page=options_fmc | 5.06 | 43.68 |
Themes /wp-admin/admin.php?page=themes_fmc | 6.34 | 55.52 |
Submissions /wp-admin/admin.php?page=submissions_fmc | 5.76 | 49.26 |
Overview /wp-admin/admin.php?page=overview_cfm | 4.97 | 47.42 |
Add-ons /wp-admin/admin.php?page=addons_fmc | 5.00 | 47.09 |
Blocked IPs /wp-admin/admin.php?page=blocked_ips_fmc | 5.02 | 56.98 |
Premium Version /wp-admin/admin.php?page=pricing_fmc | 5.01 | 44.43 |
Uninstall /wp-admin/admin.php?page=uninstall_fmc | 4.82 | 41.53 |
Forms /wp-admin/admin.php?page=manage_fmc | 7.46 | 85.12 |
Server storage [IO: ▲12.89MB] [DB: ▲0.14MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 937 new files
Database: 10 new tables, 4 new options
New tables |
---|
wp_formmaker_display_options |
wp_formmaker_query |
wp_formmaker_sessions |
wp_formmaker_blocked |
wp_formmaker_themes |
wp_formmaker_submits |
wp_formmaker_backup |
wp_formmaker_views |
wp_formmaker_groups |
wp_formmaker |
New WordPress options |
---|
cfm_admin_notice |
contact_form_forms |
widget_form_maker_widget |
fmc_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Contact Form by WD - responsive drag & drop contact form builder tool
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,746 ▲150 | 15.69 ▲0.18 | 7.64 ▼6.95 | 46.55 ▼1.46 |
Dashboard /wp-admin | 3,028 ▲97 | 5.92 ▼0.05 | 140.26 ▼10.22 | 132.69 ▲11.35 |
Posts /wp-admin/edit.php | 2,821 ▲82 | 2.69 ▼0.01 | 66.26 ▼8.63 | 105.56 ▲7.31 |
Add New Post /wp-admin/post-new.php | 1,738 ▲238 | 18.06 ▼0.68 | 398.65 ▼16.55 | 146.76 ▲22.57 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 4.98 ▼0.02 | 132.13 ▼24.87 | 150.62 ▲21.55 |
Options /wp-admin/admin.php?page=options_fmc | 1,618 | 2.35 | 58.62 | 109.85 |
Themes /wp-admin/admin.php?page=themes_fmc | 2,529 | 2.39 | 65.30 | 102.24 |
Submissions /wp-admin/admin.php?page=submissions_fmc | 1,451 | 3.02 | 72.87 | 105.30 |
Overview /wp-admin/admin.php?page=overview_cfm | 1,933 | 7.06 | 275.83 | 210.76 |
Add-ons /wp-admin/admin.php?page=addons_fmc | 2,267 | 2.34 | 57.30 | 133.61 |
Blocked IPs /wp-admin/admin.php?page=blocked_ips_fmc | 1,400 | 2.37 | 61.08 | 104.85 |
Premium Version /wp-admin/admin.php?page=pricing_fmc | 1,724 | 2.35 | 56.33 | 100.04 |
Uninstall /wp-admin/admin.php?page=uninstall_fmc | 1,482 | 2.37 | 61.59 | 91.37 |
Forms /wp-admin/admin.php?page=manage_fmc | 1,777 | 2.46 | 60.03 | 111.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.14MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 10 tables in the database
- wp_formmaker_display_options
- wp_formmaker_blocked
- wp_formmaker_themes
- wp_formmaker_submits
- wp_formmaker_groups
- wp_formmaker_sessions
- wp_formmaker_backup
- wp_formmaker
- wp_formmaker_views
- wp_formmaker_query
- The uninstall procedure has failed, leaving 4 options in the database
- widget_form_maker_widget
- cfm_admin_notice
- fmc_settings
- contact_form_forms
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/contact-form-maker/contact-form-maker.php
- > /wp-content/plugins/contact-form-maker/admin/views/view.php
- 114× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CFMAdminController' not found in wp-content/plugins/contact-form-maker/admin/controllers/Show_matrix.php:3
- > PHP Fatal error
Uncaught Error: Class 'CFMAdminController' not found in wp-content/plugins/contact-form-maker/admin/controllers/Blocked_ips_fm.php:6
- > PHP Fatal error
Uncaught Error: Class 'CFMAdminController' not found in wp-content/plugins/contact-form-maker/admin/controllers/Select_data_from_db.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/contact-form-maker/wd/templates/display_deactivation_popup.php:8
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/contact-form-maker/wd/templates/display_deactivation_popup.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'CFMAdminController' not found in wp-content/plugins/contact-form-maker/admin/controllers/FMShortocde.php:6
- > PHP Fatal error
Uncaught Error: Class 'CFMAdminModel' not found in wp-content/plugins/contact-form-maker/admin/models/FormMakerSubmits.php:6
- > PHP Notice
Trying to get property 'plugin_wd_demo_link' of non-object in wp-content/plugins/contact-form-maker/wd/templates/display_overview_user_guide.php on line 28
- > PHP Notice
Undefined variable: wd_options in wp-content/plugins/contact-form-maker/wd/templates/display_deactivation_popup.php on line 6
- > PHP Notice
Trying to get property 'plugin_wizard_link' of non-object in wp-content/plugins/contact-form-maker/wd/templates/display_overview_welcome.php on line 17
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #8 (Select Columns) image required
- Tags: You are using too many tags: 12 tag instead of maximum 10
contact-form-maker/contact-form-maker.php 92% from 13 tests
The main PHP file in "Contact Form by WD - responsive drag & drop contact form builder tool" ver. 1.13.23 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 176 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin175,356 lines of code in 234 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 48 | 37,881 | 49,143 | 90,227 |
PHP | 90 | 1,733 | 3,235 | 35,543 |
JavaScript | 35 | 3,943 | 1,151 | 31,184 |
CSS | 24 | 1,665 | 150 | 17,614 |
SVG | 34 | 16 | 15 | 674 |
Markdown | 1 | 18 | 0 | 112 |
HTML | 2 | 0 | 0 | 2 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,600)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 654)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 69.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,600.00 |
Average method complexity | 11.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 654.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 81 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 81 | 100.00% |
▷ Final classes | 1 | 1.23% |
Methods | 545 | |
▷ Static methods | 57 | 10.46% |
▷ Public methods | 487 | 89.36% |
▷ Protected methods | 12 | 2.20% |
▷ Private methods | 46 | 8.44% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 2 | 8.70% |
▷ Class constants | 21 | 91.30% |
▷ Public constants | 21 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
543 PNG files occupy 2.59MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/05/02/submit.png | 1.29KB | 0.53KB | ▼ 59.06% |
wd/assets/img/wds_main_plugin.png | 5.66KB | 3.74KB | ▼ 34.04% |
images/flags/cz.png | 0.46KB | 0.61KB | 0.00% |
images/03/date.png | 1.40KB | 0.71KB | ▼ 48.92% |
images/info.png | 1.41KB | 1.35KB | ▼ 3.89% |