Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/contact-form-by-contactmetrics/contact-form-contactmetrics.php+35
Undefined index: Email_destination
Server metrics [RAM: ▼1.89MB] [CPU: ▼48.80ms] Passed 4 tests
Server-side resources used by Contact Form by ContactMetrics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 5.53 ▼31.34 |
Dashboard /wp-admin | 2.12 ▼1.18 | 5.93 ▼40.96 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 6.56 ▼39.45 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 6.96 ▼83.43 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.44 ▼26.80 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
contactmetrics_email |
contactmetrics_css |
contactmetrics_basic |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Contact Form by ContactMetrics: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.16 ▼0.22 | 1.78 ▲0.28 | 44.32 ▲5.88 |
Dashboard /wp-admin | 2,210 ▲32 | 5.56 ▼0.09 | 81.62 ▼24.60 | 78.41 ▲35.29 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.97 ▼0.01 | 41.22 ▲3.87 | 35.33 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,693 ▲167 | 22.02 ▼1.00 | 722.27 ▲20.45 | 59.92 ▲1.21 |
Media Library /wp-admin/upload.php | 1,415 ▲12 | 4.12 ▼0.23 | 98.65 ▲3.43 | 70.61 ▲26.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/contact-form-by-contactmetrics/contact-form-contactmetrics.php+35
Undefined index: Email_destination
- Zombie WordPress options were found after uninstall: 9 options
- widget_theysaidso_widget
- db_upgraded
- contactmetrics_email
- can_compress_scripts
- theysaidso_admin_options
- contactmetrics_basic
- widget_recent-posts
- contactmetrics_css
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined index: Email_destination in wp-content/plugins/contact-form-by-contactmetrics/contact-form-contactmetrics.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/contact-form-by-contactmetrics/contact-form-contactmetrics.php:47
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: analytics, contacts, contact form plugin, contact form, contact...
contact-form-by-contactmetrics/contact-form-contactmetrics.php 92% from 13 tests
The main file in "Contact Form by ContactMetrics" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("contact-form-by-contactmetrics.php" instead of "contact-form-contactmetrics.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin5,554 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 959 | 18 | 5,274 |
PHP | 1 | 39 | 20 | 279 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing 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 | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.17MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/get_tracking_code.png | 1.63KB | 1.55KB | ▼ 4.44% |
assets/images/example.png | 11.90KB | 3.13KB | ▼ 73.68% |
includes/screenshot.png | 47.80KB | 21.83KB | ▼ 54.35% |
assets/images/metrics_example.png | 90.82KB | 28.74KB | ▼ 68.35% |
assets/images/add-site.png | 5.54KB | 3.64KB | ▼ 34.35% |