Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.90ms] Passed 4 tests
An overview of server-side resources used by Smartarget Email - Contact Us
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.35 ▲0.31 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.62 ▲0.57 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 47.54 ▼1.01 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 90.45 ▼8.40 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.17 ▼2.51 |
Smartarget Email - Contact Us /wp-admin/options-general.php?page=smartarget_email | 3.26 | 31.92 |
Server storage [IO: ▲3.84MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Smartarget Email - Contact Us
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲136 | 21.29 ▲7.00 | 9.25 ▲7.07 | 44.13 ▼10.29 |
Dashboard /wp-admin | 2,213 ▲22 | 10.94 ▲5.86 | 188.86 ▲71.12 | 40.89 ▼2.12 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 7.26 ▲5.25 | 115.89 ▲78.47 | 29.81 ▼6.11 |
Add New Post /wp-admin/post-new.php | 1,682 ▲168 | 27.81 ▲10.22 | 681.32 ▼5.58 | 51.09 ▼5.09 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 9.70 ▲5.49 | 191.53 ▲88.75 | 50.75 ▲8.85 |
Smartarget Email - Contact Us /wp-admin/options-general.php?page=smartarget_email | 1,536 | 9.98 | 158.73 | 90.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/smartarget-email-contact-us/public/partials/smartarget-email-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/smartarget-email-contact-us/admin/partials/smartarget-email-admin-display.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: contact, custom form, contact form, contact us, email...
smartarget-email-contact-us/smartarget-email.php 85% from 13 tests
The main PHP script in "Smartarget Email - Contact Us" version 1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("smartarget-email-contact-us.php" instead of "smartarget-email.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin868 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 5 | 4,369 | 642 |
PHP | 12 | 130 | 522 | 225 |
CSS | 2 | 0 | 4 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin