Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼1.43ms] Passed 4 tests
Analyzing server-side resources used by Contact Form Generator : Creative form builder for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 44.62 ▲1.78 |
Dashboard /wp-admin | 3.48 ▲0.18 | 49.00 ▼7.50 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 58.62 ▲7.65 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 95.01 ▼4.12 |
Media Library /wp-admin/upload.php | 3.40 ▲0.18 | 41.12 ▲4.13 |
Templates /wp-admin/admin.php?page=cfg_templates | 3.41 | 38.27 |
Forms /wp-admin/admin.php?page=cfg_forms | 3.43 | 37.46 |
Fields /wp-admin/admin.php?page=cfg_fields | 3.44 | 35.35 |
Overview /wp-admin/admin.php?page=contactformgenerator | 3.39 | 35.67 |
Server storage [IO: ▲6.32MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 310 new files
Database: 5 new tables, 8 new options
New tables |
---|
wp_cfg_templates |
wp_cfg_fields |
wp_cfg_field_types |
wp_cfg_forms |
wp_cfg_form_options |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
wpcfg_db_version |
db_upgraded |
widget_contactformgenerator_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Contact Form Generator : Creative form builder for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 14.44 ▲0.07 | 1.97 ▼0.14 | 46.07 ▲3.92 |
Dashboard /wp-admin | 2,237 ▲49 | 5.93 ▲0.07 | 109.33 ▼10.20 | 71.75 ▲24.99 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 1.98 ▼0.05 | 38.14 ▲2.06 | 37.19 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,550 ▲13 | 22.01 ▼1.25 | 698.64 ▲41.02 | 57.49 ▲5.84 |
Media Library /wp-admin/upload.php | 1,425 ▲34 | 4.16 ▲0.01 | 99.85 ▼7.07 | 74.87 ▲30.66 |
Templates /wp-admin/admin.php?page=cfg_templates | 1,039 | 2.45 | 47.19 | 47.32 |
Forms /wp-admin/admin.php?page=cfg_forms | 1,049 | 2.40 | 42.18 | 32.08 |
Fields /wp-admin/admin.php?page=cfg_fields | 1,329 | 2.18 | 39.14 | 41.04 |
Overview /wp-admin/admin.php?page=contactformgenerator | 1,013 | 2.10 | 26.38 | 40.27 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_contactformgenerator_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cfg_fields
- > Notice in wp-content/plugins/contact-form-generator/includes/admin/fields.php+220
Undefined index: cfg_token
SRP 50% 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
- 24× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/contact-form-generator/includes/admin/form_submit.php
- > /wp-content/plugins/contact-form-generator/includes/admin/form.php
- > /wp-content/plugins/contact-form-generator/includes/contactformgenerator_widget.php
- > /wp-content/plugins/contact-form-generator/includes/admin-page.php
- > /wp-content/plugins/contact-form-generator/includes/generate.css.php
- > /wp-content/plugins/contact-form-generator/includes/admin/forms.php
- > /wp-content/plugins/contact-form-generator/includes/admin/cfg_ajax.php
- > /wp-content/plugins/contact-form-generator/includes/install/uninstall.sql.php
- > /wp-content/plugins/contact-form-generator/includes/sendmail.php
- > /wp-content/plugins/contact-form-generator/includes/install/install.sql.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: form builder, contact form plugin, contact form, form, contact forms
contact-form-generator/contactformgenerator.php 85% from 13 tests
This is the main PHP file of "Contact Form Generator : Creative form builder for WordPress" version 2.6.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 378 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("contact-form-generator.php" instead of "contactformgenerator.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
No dangerous file extensions were detected20,077 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 851 | 322 | 8,593 |
CSS | 19 | 912 | 387 | 8,113 |
JavaScript | 11 | 384 | 263 | 3,370 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
212 PNG files occupy 4.95MB with 2.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/images/contact_data/template_1/email.png | 1.78KB | 1.30KB | ▼ 27.07% |
includes/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.27KB | 0.14KB | ▼ 47.84% |
includes/assets/images/cfgcheckboxes/litegreen-radio-part1.png | 1.15KB | 0.30KB | ▼ 73.51% |
includes/images/forum.png | 1.06KB | 0.94KB | ▼ 11.10% |
includes/images/arrow-down.png | 1.12KB | 0.41KB | ▼ 63.26% |