Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼11.90ms] Passed 4 tests
A check of server-side resources used by TrashMail Contact Me
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 43.39 ▼0.07 |
Dashboard /wp-admin | 3.41 ▲0.07 | 49.91 ▼17.80 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.76 ▲0.50 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 93.95 ▼30.23 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.86 ▲1.61 |
TrashMail Options /wp-admin/options-general.php?page=tm-contact-me | 3.28 | 32.66 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
TrashMail Contact Me: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.53 ▼1.15 | 2.00 ▼0.11 | 39.72 ▼4.55 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.99 | 112.46 ▼6.45 | 42.37 ▼0.03 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.02 | 37.08 ▼2.40 | 31.56 ▼4.44 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.20 ▲5.52 | 646.92 ▲10.43 | 53.02 ▼3.13 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.22 ▼0.01 | 104.18 ▼0.63 | 42.82 ▼3.17 |
TrashMail Options /wp-admin/options-general.php?page=tm-contact-me | 1,049 | 2.03 | 27.23 | 28.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 33 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tm-contact-me
- > Notice in wp-content/plugins/trashmail-contact-me/trashmail-contact-me.php+193
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=tm-contact-me
- > Warning in wp-content/plugins/trashmail-contact-me/trashmail-contact-me.php+85
array_keys() expects parameter 1 to be array, null given
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tm-contact-me
- > Warning in wp-content/plugins/trashmail-contact-me/trashmail-contact-me.php+120
Invalid argument supplied for foreach()
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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/trashmail-contact-me/trashmail-contact-me.php:57
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== trashmail-contact-me ===
)
trashmail-contact-me/trashmail-contact-me.php Passed 13 tests
The principal PHP file in "TrashMail Contact Me" v. 1.2 is loaded by WordPress automatically on each request
62 characters long description:
Generate unique disposable contact addresses for each visitor.
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
Everything looks great! No dangerous files found in this plugin392 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 50 | 29 | 372 |
JavaScript | 1 | 5 | 0 | 20 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 25 | |
▷ Named functions | 25 | 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
No PNG images were found in this plugin