Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲4.00MB] [CPU: ▼254.17ms] 75% from 4 tests
A check of server-side resources used by Widget for Contact form 7
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 2,189.89ms on /wp-admin/admin.php?page=widget-for-contact-form-7)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.90 ▲4.39 | 77.75 ▲25.35 |
Dashboard /wp-admin | 7.92 ▲4.52 | 54.34 ▲16.98 |
Posts /wp-admin/edit.php | 7.92 ▲4.28 | 65.21 ▲20.34 |
Add New Post /wp-admin/post-new.php | 9.77 ▲2.80 | 209.79 ▼1,070.81 |
Media Library /wp-admin/upload.php | 7.92 ▲4.63 | 44.90 ▲16.82 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 7.92 | 45.14 |
Widget for Contact form 7 /wp-admin/admin.php?page=widget-for-contact-form-7 | 7.92 | 2,189.89 |
Server storage [IO: ▲3.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 170 new files
Database: no new tables, 6 new options
New WordPress options |
---|
fs_gdpr |
fs_accounts |
fs_active_plugins |
fs_api_cache |
fs_debug_mode |
widget_wpc7w_contact_form |
Browser metrics Passed 4 tests
Checking browser requirements for Widget for Contact form 7
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,794 ▲50 | 16.03 ▲0.71 | 5.52 ▼0.39 | 2.23 ▲0.07 |
Dashboard /wp-admin | 2,926 ▲72 | 6.15 ▼0.02 | 115.03 ▼19.54 | 176.54 ▼38.18 |
Posts /wp-admin/edit.php | 2,719 ▲28 | 3.24 ▲0.00 | 66.21 ▼0.08 | 162.37 ▲20.06 |
Add New Post /wp-admin/post-new.php | 1,669 ▲8 | 22.79 ▲6.61 | 526.74 ▲81.83 | 208.16 ▲47.84 |
Media Library /wp-admin/upload.php | 1,720 ▲22 | 5.52 ▲0.03 | 140.18 ▼29.27 | 273.75 ▲88.49 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 1,443 | 2.69 | 53.65 | 131.53 |
Widget for Contact form 7 /wp-admin/admin.php?page=widget-for-contact-form-7 | 1,281 | 2.44 | 53.90 | 168.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- fs_api_cache
- fs_debug_mode
- fs_gdpr
- fs_accounts
- fs_active_plugins
- widget_wpc7w_contact_form
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/widget-for-contact-form-7/freemius/templates/ajax-loader.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/widget-for-contact-form-7/freemius/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/widget-for-contact-form-7/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/widget-for-contact-form-7/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/widget-for-contact-form-7/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/widget-for-contact-form-7/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/widget-for-contact-form-7/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/widget-for-contact-form-7/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/widget-for-contact-form-7/freemius/templates/account/partials/addon.php on line 7
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
widget-for-contact-form-7/wpc7w.php 85% from 13 tests
The primary PHP file in "Widget for Contact form 7" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("widget-for-contact-form-7.php" instead of "wpc7w.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected41,015 lines of code in 132 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 106 | 6,689 | 15,298 | 28,030 |
PO File | 10 | 5,710 | 6,913 | 12,558 |
JavaScript | 3 | 34 | 59 | 194 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 1 | 0 | 0 | 27 |
CSS | 10 | 0 | 0 | 13 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,609)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 81.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,609.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 2 | 4.35% |
▷ Concrete classes | 44 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 1,084 | |
▷ Static methods | 170 | 15.68% |
▷ Public methods | 753 | 69.46% |
▷ Protected methods | 15 | 1.38% |
▷ Private methods | 316 | 29.15% |
Functions | 93 | |
▷ Named functions | 92 | 98.92% |
▷ Anonymous functions | 1 | 1.08% |
Constants | 119 | |
▷ Global constants | 96 | 80.67% |
▷ Class constants | 23 | 19.33% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |