Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.17ms] Passed 4 tests
This is a short check of server-side resources used by Contact Form Widget - Contact Query, Contact Page, Form Maker, Query Table
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 42.24 ▼1.32 |
Dashboard /wp-admin | 3.40 ▲0.10 | 48.25 ▲2.64 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 44.48 ▼0.71 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 89.52 ▼4.91 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 31.72 ▼1.73 |
Settings /wp-admin/admin.php?page=cfw-settings | 3.57 | 31.58 |
Contact Form Queries /wp-admin/admin.php?page=cfw-all-queries | 3.39 | 34.77 |
Our Theme /wp-admin/admin.php?page=sr-theme-page | 3.29 | 29.71 |
Shortcode /wp-admin/admin.php?page=user-contact-form | 3.29 | 30.69 |
Server storage [IO: ▲2.93MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_awp_contact_form |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_contact_form |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Form Widget - Contact Query, Contact Page, Form Maker, Query Table
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.17 ▼0.39 | 1.64 ▲0.07 | 42.91 ▲3.46 |
Dashboard /wp-admin | 2,229 ▲49 | 5.62 ▼0.05 | 85.98 ▼2.91 | 41.49 ▲2.16 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.01 ▼0.00 | 38.31 ▲0.60 | 32.16 ▼1.88 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 18.19 ▼4.80 | 632.17 ▼61.17 | 69.07 ▲19.19 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.18 ▲0.04 | 95.65 ▼2.06 | 44.49 ▼1.50 |
Settings /wp-admin/admin.php?page=cfw-settings | 1,659 | 2.57 | 42.22 | 49.78 |
Contact Form Queries /wp-admin/admin.php?page=cfw-all-queries | 926 | 2.04 | 24.75 | 61.04 |
Our Theme /wp-admin/admin.php?page=sr-theme-page | 976 | 1.99 | 23.12 | 64.64 |
Shortcode /wp-admin/admin.php?page=user-contact-form | 830 | 2.03 | 22.83 | 26.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_awp_contact_form
- Zombie WordPress options were found after uninstall: 7 options
- widget_contact_form
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 31 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cfw-settings
- > Notice in wp-content/plugins/new-contact-form-widget/settings-page.php+174
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/new-contact-form-widget/our-theme/awp-theme.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=user-contact-form
- > Javascript (severe) in unknown
/wp-content/plugins/new-contact-form-widget/js/bootstrap.js?ver=3.3.6 14:10 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
- > GET request to /wp-admin/admin.php?page=sr-theme-page
- > Network (severe)
wp-content/plugins/new-contact-form-widget/js/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: support query builder, contact form widget, contact page, contact us, contact
new-contact-form-widget/new-contact-form-widget.php Passed 13 tests
This is the main PHP file of "Contact Form Widget - Contact Query, Contact Page, Form Maker, Query Table" version 1.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
50 characters long description:
Add Contact Form Widget and Shortcode On WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin17,398 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 34 | 522 | 12,239 |
SVG | 3 | 0 | 0 | 1,658 |
PHP | 7 | 238 | 119 | 1,648 |
JavaScript | 3 | 591 | 194 | 1,637 |
PO File | 1 | 98 | 98 | 216 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 7.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
our-theme/img/aneeq-premium.png | 165.42KB | 57.84KB | ▼ 65.04% |