Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.87ms] Passed 4 tests
A check of server-side resources used by Contact Form 7 Email Add on
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.44 ▼1.91 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.44 ▼8.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.74 ▲0.51 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.76 ▼17.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.38 ▲1.42 |
Server storage [IO: ▲6.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 131 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Contact Form 7 Email Add on
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.56 | 4.72 ▲2.97 | 44.35 ▼0.64 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼1.00 | 107.17 ▲1.81 | 37.66 ▼5.37 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.07 ▲0.02 | 40.33 ▲2.95 | 35.77 ▲1.02 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.17 ▼0.22 | 584.43 ▼45.51 | 49.83 ▼2.74 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.25 ▲0.05 | 95.27 ▼0.32 | 41.64 ▲0.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 11× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/cf7-email-add-on/admin/email-templates/admin/gradient.php
- > /wp-content/plugins/cf7-email-add-on/admin/email-templates/user/donate-text.php
- > /wp-content/plugins/cf7-email-add-on/admin/email-templates/user/interview-box.php
- > /wp-content/plugins/cf7-email-add-on/admin/email-templates/admin/default.php
- > /wp-content/plugins/cf7-email-add-on/admin/email-templates/user/default.php
- > /wp-content/plugins/cf7-email-add-on/admin/email-templates/admin/purple-moon.php
- > /wp-content/plugins/cf7-email-add-on/admin/email-templates/user/space.php
- > /wp-content/plugins/cf7-email-add-on/admin/email-templates/admin/space.php
- > /wp-content/plugins/cf7-email-add-on/admin/email-templates/admin/typewriter.php
- > /wp-content/plugins/cf7-email-add-on/admin/email-templates/user/typewriter.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function date_i18n() in wp-content/plugins/cf7-email-add-on/admin/email-templates/user/typewriter.php:102
- > PHP Fatal error
Uncaught Error: Call to undefined function date_i18n() in wp-content/plugins/cf7-email-add-on/admin/email-templates/admin/space.php:125
- > PHP Fatal error
Uncaught Error: Call to undefined function date_i18n() in wp-content/plugins/cf7-email-add-on/admin/email-templates/user/purple-moon.php:100
- > PHP Fatal error
Uncaught Error: Call to undefined function date_i18n() in wp-content/plugins/cf7-email-add-on/admin/email-templates/user/meeting.php:118
- > PHP Fatal error
Uncaught Error: Call to undefined function date_i18n() in wp-content/plugins/cf7-email-add-on/admin/email-templates/admin/typewriter.php:149
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cf7-email-add-on/admin/contact-form-7-email-add-on-templates.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function date_i18n() in wp-content/plugins/cf7-email-add-on/admin/email-templates/user/gradient.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function date_i18n() in wp-content/plugins/cf7-email-add-on/admin/email-templates/user/donate-text.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function date_i18n() in wp-content/plugins/cf7-email-add-on/admin/email-templates/admin/purple-moon.php:122
- > PHP Fatal error
Uncaught Error: Call to undefined function date_i18n() in wp-content/plugins/cf7-email-add-on/admin/email-templates/admin/default.php:120
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in cf7-email-add-on/assets to your readme.txt
cf7-email-add-on/contact-form-7-email-add-on.php 92% from 13 tests
The main PHP script in "Contact Form 7 Email Add on" version 1.9 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cf7-email-add-on.php" instead of "contact-form-7-email-add-on.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin4,734 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 41 | 109 | 2,254 |
JavaScript | 2 | 382 | 169 | 1,446 |
CSS | 2 | 56 | 52 | 1,034 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 10 | |
▷ Static methods | 2 | 20.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
76 PNG files occupy 1.81MB with 0.96MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/meeting/logo.png | 7.50KB | 3.76KB | ▼ 49.89% |
admin/assets/images/gradient/facebook-icon.png | 1.21KB | 0.32KB | ▼ 73.20% |
admin/assets/images/send-btn.png | 2.89KB | 1.46KB | ▼ 49.41% |
admin/assets/images/interview/map-pin-icon.png | 1.97KB | 1.30KB | ▼ 33.83% |
admin/assets/images/interview/linkedin-icon.png | 1.64KB | 0.67KB | ▼ 58.94% |