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.17MB] [CPU: ▼0.46ms] Passed 4 tests
An overview of server-side resources used by Contact Us for WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 43.90 ▼0.49 |
Dashboard /wp-admin | 3.47 ▲0.16 | 43.90 ▼2.41 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 46.16 ▼1.22 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 90.87 ▲5.35 |
Media Library /wp-admin/upload.php | 3.40 ▲0.16 | 36.14 ▲2.26 |
Contact Us for WP /wp-admin/options-general.php?page=contactuswp-options | 3.36 | 32.27 |
Server storage [IO: ▲2.78MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Contact Us for WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,983 ▲222 | 13.49 ▼0.85 | 9.08 ▲7.16 | 51.09 ▲12.21 |
Dashboard /wp-admin | 2,210 ▲30 | 5.58 ▼0.02 | 91.80 ▲6.02 | 39.41 ▼5.52 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.99 ▼0.00 | 39.00 ▲3.65 | 36.63 ▲1.87 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 18.42 ▼4.58 | 588.57 ▼87.22 | 61.49 ▲4.69 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.18 ▼0.04 | 95.12 ▼4.56 | 39.66 ▼4.94 |
Contact Us for WP /wp-admin/options-general.php?page=contactuswp-options | 1,014 | 2.12 | 22.38 | 27.35 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/contact-us-for-wp/public/partials/contactuswp-public-display.php
- > /wp-content/plugins/contact-us-for-wp/admin/partials/contactuswp-admin-display.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-us-for-wp/includes/contactuswp-functions.php:67
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-us-for-wp/admin/contactuswp-settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-us-for-wp/includes/service.php: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)
No browser issues were found
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
4 plugin tags: contact us, form, get in touch, email
contact-us-for-wp/contactuswp.php 85% from 13 tests
"Contact Us for WP" version 2.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("contact-us-for-wp.php" instead of "contactuswp.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
No dangerous file extensions were detected9,103 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 4 | 4,934 |
CSS | 6 | 1,531 | 26 | 3,289 |
PHP | 15 | 225 | 694 | 774 |
JavaScript | 2 | 23 | 59 | 106 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 1.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.14 |
▷ 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 | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.83% |
Functions | 34 | |
▷ Named functions | 33 | 97.06% |
▷ Anonymous functions | 1 | 2.94% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected