Benchmarks
Plugin footprint 65% 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.30MB] [CPU: ▼4.54ms] 75% from 4 tests
This is a short check of server-side resources used by Contact Form by Supsystic
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 676.21ms on /wp-admin/admin.php?page=contact-form-supsystic&tab=forms_add_new)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 43.75 ▲2.96 |
Dashboard /wp-admin | 3.65 ▲0.30 | 51.57 ▼6.94 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 48.37 ▲4.43 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 80.40 ▼15.37 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 37.71 ▲1.20 |
Settings /wp-admin/admin.php?page=contact-form-supsystic&tab=settings | 3.79 | 969.03 |
Contacts /wp-admin/admin.php?page=contact-form-supsystic&tab=forms_contacts | 4.45 | 53.76 |
Contact Form by Supsystic /wp-admin/admin.php?page=contact-form-supsystic | 3.67 | 680.28 |
Overview /wp-admin/admin.php?page=contact-form-supsystic&tab=overview | 3.92 | 969.48 |
Show All Forms /wp-admin/admin.php?page=contact-form-supsystic&tab=forms | 3.64 | 1,009.61 |
Add New Form /wp-admin/admin.php?page=contact-form-supsystic&tab=forms_add_new | 4.23 | 676.21 |
Server storage [IO: ▲8.67MB] [DB: ▲0.21MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 464 new files
Database: 8 new tables, 11 new options
New tables |
---|
wp_cfs_usage_stat |
wp_cfs_statistics |
wp_cfs_forms |
wp_cfs_contacts |
wp_cfs_membership_presets |
wp_cfs_modules_type |
wp_cfs_countries |
wp_cfs_modules |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_formswidgetwpcfs |
widget_recent-posts |
wp_cfs_db_installed |
cfs_last_check_love_link |
db_upgraded |
widget_theysaidso_widget |
wp_cfs_db_version |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Form by Supsystic
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲53 | 14.18 ▼0.21 | 1.72 ▼0.07 | 43.47 ▲2.05 |
Dashboard /wp-admin | 2,245 ▲71 | 5.58 ▼0.02 | 96.22 ▲7.74 | 41.96 ▲0.12 |
Posts /wp-admin/edit.php | 2,144 ▲41 | 2.03 ▲0.09 | 37.50 ▲1.31 | 35.67 ▲2.66 |
Add New Post /wp-admin/post-new.php | 1,565 ▲37 | 23.51 ▲0.32 | 671.14 ▲22.91 | 68.81 ▲18.84 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.27 ▲0.10 | 98.50 ▲0.48 | 41.67 ▼1.38 |
Settings /wp-admin/admin.php?page=contact-form-supsystic&tab=settings | 1,826 | 4.31 | 74.35 | 88.38 |
Contacts /wp-admin/admin.php?page=contact-form-supsystic&tab=forms_contacts | 1,951 | 5.09 | 88.40 | 103.96 |
Contact Form by Supsystic /wp-admin/admin.php?page=contact-form-supsystic | 1,805 | 5.01 | 77.15 | 93.60 |
Overview /wp-admin/admin.php?page=contact-form-supsystic&tab=overview | 2,929 | 25.32 | 517.73 | 98.65 |
Show All Forms /wp-admin/admin.php?page=contact-form-supsystic&tab=forms | 1,805 | 4.97 | 78.39 | 86.72 |
Add New Form /wp-admin/admin.php?page=contact-form-supsystic&tab=forms_add_new | 1,529 | 3.68 | 59.35 | 95.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.21MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall successfully, leaving 5 tables in the database
- wp_cfs_statistics
- wp_cfs_countries
- wp_cfs_membership_presets
- wp_cfs_contacts
- wp_cfs_forms
- This plugin did not uninstall successfully, leaving 9 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- cfs_plugin_activation_errors
- theysaidso_admin_options
- widget_formswidgetwpcfs
- cfs_last_check_love_link
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/contact-form-by-supsystic/modules/supsystic_promo/views/tpl/adminFooter.php
- 229× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Error' not found in wp-content/plugins/contact-form-by-supsystic/classes/Twig/Error/Syntax.php:18
- > PHP Fatal error
Uncaught Error: Class 'controllerCfs' not found in wp-content/plugins/contact-form-by-supsystic/modules/pages/controller.php:2
- > PHP Fatal error
Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/contact-form-by-supsystic/classes/Twig/Extension/Sandbox.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/contact-form-by-supsystic/modules/pages/views/tpl/deactivatePage.php:6
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/contact-form-by-supsystic/classes/Twig/Node/Expression/Binary/And.php:12
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/contact-form-by-supsystic/modules/forms/views/tpl/formsEditAdmin.php:5
- > PHP Fatal error
Uncaught Error: Class 'Twig_Filter' not found in wp-content/plugins/contact-form-by-supsystic/classes/Twig/Filter/Function.php:20
- > PHP Fatal error
Uncaught Error: Class 'modelCfs' not found in wp-content/plugins/contact-form-by-supsystic/classes/modelSubscribe.php:3
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/contact-form-by-supsystic/classes/Twig/Node/Expression/Binary/In.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/contact-form-by-supsystic/classes/Twig/Node/Macro.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=contact-form-supsystic&tab=forms_contacts
- > Network (severe)
wp-content/plugins/contact-form-by-supsystic/js/lib/chosen/chosen-sprite.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
contact-form-by-supsystic/cfs.php 85% from 13 tests
This is the main PHP file of "Contact Form by Supsystic" version 1.7.27, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("contact-form-by-supsystic.php" instead of "cfs.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin41,758 lines of code in 367 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 283 | 2,724 | 7,485 | 24,430 |
JavaScript | 52 | 409 | 1,800 | 7,153 |
CSS | 29 | 260 | 277 | 3,758 |
PO File | 2 | 1,546 | 2,599 | 3,746 |
SVG | 1 | 0 | 0 | 2,671 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 137)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 16.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 415.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 137.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 19 | |
Traits | 0 | |
Classes | 234 | |
▷ Abstract classes | 19 | 8.12% |
▷ Concrete classes | 215 | 91.88% |
▷ Final classes | 0 | 0.00% |
Methods | 1,741 | |
▷ Static methods | 278 | 15.97% |
▷ Public methods | 1,477 | 84.84% |
▷ Protected methods | 176 | 10.11% |
▷ Private methods | 88 | 5.05% |
Functions | 80 | |
▷ Named functions | 79 | 98.75% |
▷ Anonymous functions | 1 | 1.25% |
Constants | 152 | |
▷ Global constants | 76 | 50.00% |
▷ Class constants | 76 | 50.00% |
▷ Public constants | 76 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
77 PNG files occupy 3.48MB with 0.96MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/forms/img/images/2016_ht_1_snow3.png | 3.04KB | 1.68KB | ▼ 44.75% |
js/bx-slider/images/arrows/rewind44.png | 0.35KB | 0.28KB | ▼ 20.11% |
assets/forms/img/preview/Ho-ho-ho-template-prev.png | 160.13KB | 56.12KB | ▼ 64.95% |
js/bx-slider/images/arrows/previous11.png | 0.81KB | 0.74KB | ▼ 7.99% |
js/bx-slider/images/arrows/arrow454.png | 0.14KB | 0.17KB | 0.00% |