Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.12MB] [CPU: ▲4.90ms] Passed 4 tests
Server-side resources used by Contact Form by BestWebSoft - Advanced Contact Us Form Builder for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.57 ▲1.11 | 51.46 ▲4.68 |
Dashboard /wp-admin | 4.47 ▲1.16 | 61.37 ▲3.97 |
Posts /wp-admin/edit.php | 4.52 ▲1.16 | 58.92 ▲9.02 |
Add New Post /wp-admin/post-new.php | 7.00 ▲1.12 | 95.43 ▲1.93 |
Media Library /wp-admin/upload.php | 4.33 ▲1.10 | 46.84 ▲12.26 |
Server storage [IO: ▲9.00MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 179 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_cntctfrm_field |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
bstwbsftwppdtplgns_options |
widget_recent-comments |
cntctfrm_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Contact Form by BestWebSoft - Advanced Contact Us Form Builder for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 14.84 ▲0.46 | 2.24 ▲0.23 | 42.55 ▼0.94 |
Dashboard /wp-admin | 2,245 ▲54 | 4.91 ▼0.02 | 110.30 ▲8.48 | 43.07 ▲0.11 |
Posts /wp-admin/edit.php | 2,211 ▲119 | 2.23 ▲0.22 | 35.83 ▼3.10 | 33.49 ▼3.48 |
Add New Post /wp-admin/post-new.php | 1,634 ▲98 | 23.13 ▼0.21 | 701.47 ▲110.56 | 56.92 ▲3.24 |
Media Library /wp-admin/upload.php | 1,427 ▲36 | 4.21 ▲0.03 | 98.22 ▲0.21 | 42.64 ▼1.77 |
Settings /wp-admin/contact_form.php | 26 | 0.44 | 0.10 | 14.36 |
BWS Panel /wp-admin/contact_form.php?page=cntctfrm-bws-panel | 26 | 0.44 | 0.07 | 6.73 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-plugin/bws_menu/class-bws-settings.php:1453
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/contact-form-plugin/contact_form.php:2428
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/contact-form-plugin/bws_menu/product_list.php:9
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/contact-form-plugin/includes/class-cntctfrm-settings.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/contact_form.php
- > Network (severe)
wp-admin/contact_form.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/contact_form.php?page=cntctfrm-bws-panel
- > Network (severe)
wp-admin/contact_form.php?page=cntctfrm-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Contact Form displaying.), #2 (Contact Form displaying with additional fields.), #3 (Contact Form displaying with 2 columns.), #4 (Contact Form settings page.), #5 (Contact Form additional settings page.), #6 (Contact Form appearance settings page.), #7 (Widget settings for using shortcode in the sidebar.), #8 (Add or remove additional fields easily and label any contact form fields you want.), #9 (Choose additional information about sender you would like to see.), #10 (Enable the file attachement option to get important files from senders via contact form.), #11 (Make any of the standard form fields required or not.), #12 (Translate your contact form to any language with a simple language customizer.), #13 (Receive a copy of the email sent via the contact form.), #14 (Divide your contact form fields into columns and change 'Submit' button position.), #15 (Re-order contact form fields using drag & drop interface.), #16 (Enable the file multiattachment option to get important files from senders via contact form.)
- Tags: There are too many tags (12 tag instead of maximum 10)
contact-form-plugin/contact_form.php 92% from 13 tests
"Contact Form by BestWebSoft - Advanced Contact Us Form Builder for WordPress" version 4.2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("contact-form-plugin.php" instead of "contact_form.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected38,558 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 30 | 11,134 | 22,565 | 23,613 |
PHP | 9 | 688 | 653 | 8,208 |
CSS | 10 | 155 | 261 | 5,809 |
JavaScript | 7 | 48 | 113 | 761 |
SVG | 4 | 0 | 0 | 167 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 182.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 315.00 |
Average method complexity | 21.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 22.22% |
Functions | 80 | |
▷ Named functions | 80 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
83 PNG files occupy 5.64MB with 2.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-6.png | 116.62KB | 45.64KB | ▼ 60.86% |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-icons_2e83ff_256x240.png | 4.49KB | 4.20KB | ▼ 6.46% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.32KB | 0.21KB | ▼ 34.34% |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |