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
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.97ms] Passed 4 tests
This is a short check of server-side resources used by Message Notification for Contact Form 7
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.96 ▼13.29 |
Dashboard /wp-admin | 3.39 ▲0.08 | 46.95 ▼1.42 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 45.98 ▼0.06 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 80.73 ▼13.09 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.83 ▲1.57 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_message_notification_details |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Message Notification for Contact Form 7: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲74 | 13.18 ▼1.50 | 1.77 ▼0.98 | 42.42 ▼22.54 |
Dashboard /wp-admin | 2,218 ▲27 | 4.88 ▼0.00 | 94.26 ▼21.37 | 66.96 ▲24.05 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 1.98 ▼0.03 | 39.06 ▲2.07 | 30.44 ▼9.14 |
Add New Post /wp-admin/post-new.php | 1,521 ▼16 | 23.18 ▲4.76 | 660.51 ▼16.19 | 58.50 ▲4.57 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.24 ▼0.04 | 109.60 ▲10.70 | 43.88 ▼0.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/message-notification-for-contact-form-7/admin/partials/message-notification-for-contact-form-7-admin-display.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/message-notification-for-contact-form-7/admin/partials/message-notification-for-contact-form-7-admin-setup.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/message-notification-for-contact-form-7/includes/class-message-notification-for-contact-form-7.php:386
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
6 plugin tags: cf7, contact form 7 notification, whatsapp notifications, contact form 7, whatso...
message-notification-for-contact-form-7/message-notification-for-contact-form-7.php Passed 13 tests
"Message Notification for Contact Form 7" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
84 characters long description:
This plugin provides admin Notification of feedback given by user on contact form 7.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected879 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 213 | 450 | 761 |
CSS | 2 | 12 | 29 | 113 |
JavaScript | 3 | 2 | 39 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 3 | 13.04% |
▷ Public methods | 19 | 82.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 17.39% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/whatso-new-logo.png | 0.64KB | 0.62KB | ▼ 4.10% |
admin/images/whatso-logo.png | 7.38KB | 3.02KB | ▼ 59.06% |