Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.58MB] [CPU: ▲0.44ms] Passed 4 tests
An overview of server-side resources used by R S Contact Form - Compose, Receive, Reply, Draft, Trash, Delete
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 40.89 ▲0.16 |
Dashboard /wp-admin | 3.93 ▲0.62 | 49.41 ▼0.09 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 54.46 ▲5.57 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.56 | 99.11 ▼3.88 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 40.29 ▲7.89 |
/wp-admin/admin.php?page=rscf-spam | 3.78 | 38.00 |
/wp-admin/admin.php?page=rscf-draft | 3.78 | 39.68 |
/wp-admin/admin.php?page=rscf-sent | 3.78 | 36.56 |
Messages /wp-admin/admin.php?page=rscf | 3.78 | 34.92 |
/wp-admin/admin.php?page=rscf-trash | 3.78 | 37.45 |
/wp-admin/admin.php?page=rscf-details | 3.77 | 38.13 |
Settings /wp-admin/admin.php?page=rscf-settings | 3.77 | 32.94 |
/wp-admin/admin.php?page=rscf-reply | 3.81 | 39.66 |
Server storage [IO: ▲5.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 89 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
russell_smtp |
widget_recent-comments |
rscf |
theysaidso_admin_options |
russell_message |
russell_process |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
R S Contact Form - Compose, Receive, Reply, Draft, Trash, Delete: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲119 | 13.55 ▼1.06 | 2.07 ▼0.10 | 39.33 ▼10.63 |
Dashboard /wp-admin | 2,250 ▲62 | 5.87 ▼0.04 | 106.15 ▼10.90 | 39.37 ▼9.29 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.05 ▲0.03 | 39.37 ▲5.45 | 37.35 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,567 ▲34 | 23.05 ▼0.17 | 633.57 ▼45.40 | 48.48 ▼17.95 |
Media Library /wp-admin/upload.php | 1,435 ▲50 | 4.17 ▼0.04 | 94.90 ▼7.42 | 41.11 ▼1.32 |
/wp-admin/admin.php?page=rscf-spam | 1,187 | 6.95 | 202.37 | 83.94 |
/wp-admin/admin.php?page=rscf-draft | 1,178 | 6.98 | 184.50 | 36.09 |
/wp-admin/admin.php?page=rscf-sent | 1,184 | 6.90 | 103.17 | 36.15 |
Messages /wp-admin/admin.php?page=rscf | 1,192 | 6.90 | 107.69 | 41.17 |
/wp-admin/admin.php?page=rscf-trash | 1,189 | 6.91 | 105.54 | 35.04 |
/wp-admin/admin.php?page=rscf-details | 1,081 | 6.56 | 92.53 | 51.58 |
Settings /wp-admin/admin.php?page=rscf-settings | 1,565 | 6.46 | 90.03 | 50.36 |
/wp-admin/admin.php?page=rscf-reply | 1,117 | 6.49 | 89.19 | 40.52 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rscf-reply
- > Notice in wp-content/plugins/r-s-contact-form/views/admin/message_reply.php+51
Undefined index: msg_status
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rscf-reply
- > Notice in wp-content/plugins/r-s-contact-form/views/admin/message_reply.php+63
Undefined index: email
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rscf-details
- > Notice in wp-content/plugins/r-s-contact-form/views/admin/include/inbox_details.php+36
Undefined index: msg_id
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rscf-reply
- > Notice in wp-content/plugins/r-s-contact-form/views/admin/message_reply.php+67
Undefined index: subject
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rscf-reply
- > Notice in wp-content/plugins/r-s-contact-form/views/admin/message_reply.php+79
Undefined index: sender_name
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rscf-reply
- > Notice in wp-content/plugins/r-s-contact-form/views/admin/message_reply.php+69
Undefined index: msg_date
- > GET request to /wp-admin/admin.php?page=rscf-details
- > Notice in wp-content/plugins/r-s-contact-form/views/admin/include/inbox_details.php+30
Undefined index: message
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/r-s-contact-form/message.php
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/r-s-contact-form/views/admin/message_trash_view.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/r-s-contact-form/views/admin/message_view.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/r-s-contact-form/views/admin/message_reply.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/r-s-contact-form/views/admin/message_details.php:10
- > PHP Fatal error
Uncaught Error: Class 'Inc\\Base\\MessageBaseController' not found in wp-content/plugins/r-s-contact-form/inc/Base/MessageController.php:11
- > PHP Fatal error
Uncaught Error: Class 'Inc\\Base\\MessageBaseController' not found in wp-content/plugins/r-s-contact-form/inc/Pages/MessageDashboard.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/r-s-contact-form/views/admin/message_sent_view.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/r-s-contact-form/views/admin/include/inbox_details.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/r-s-contact-form/views/admin/message_spam_view.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/r-s-contact-form/views/admin/message_draft_view.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Requires at least: Invalid plugin version format
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7 in r-s-contact-form/assets to your readme.txt
r-s-contact-form/message.php 85% from 13 tests
The main file in "R S Contact Form - Compose, Receive, Reply, Draft, Trash, Delete" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("r-s-contact-form.php" instead of "message.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin10,675 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 358 | 287 | 3,243 |
CSS | 8 | 558 | 27 | 3,078 |
SVG | 2 | 0 | 0 | 2,959 |
JavaScript | 8 | 77 | 88 | 1,231 |
JSON | 3 | 1 | 0 | 150 |
Sass | 1 | 2 | 0 | 14 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 20.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 5.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 1 | 5.26% |
Methods | 83 | |
▷ Static methods | 8 | 9.64% |
▷ Public methods | 78 | 93.98% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.02% |
Functions | 30 | |
▷ Named functions | 29 | 96.67% |
▷ Anonymous functions | 1 | 3.33% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/contact_from_01.png | 38.93KB | 12.93KB | ▼ 66.80% |
assets/images/close_icon.png | 1.66KB | 0.69KB | ▼ 58.55% |
assets/images/success.png | 7.46KB | 3.02KB | ▼ 59.60% |
assets/images/thanku.png | 6.13KB | 3.11KB | ▼ 49.23% |
assets/images/contact_from_02.png | 21.45KB | 7.39KB | ▼ 65.56% |