Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.99ms] Passed 4 tests
Server-side resources used by WPLG Default Mail From
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.88 ▼4.12 |
Dashboard /wp-admin | 3.35 ▲0.04 | 47.28 ▼6.52 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.22 ▼0.57 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 94.29 ▲7.27 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.25 ▲8.78 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
mail_from_options |
mail_from_version |
Browser metrics Passed 4 tests
Checking browser requirements for WPLG Default Mail From
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲51 | 13.58 ▼1.08 | 1.53 ▼0.73 | 40.69 ▼3.24 |
Dashboard /wp-admin | 2,214 ▲29 | 4.86 ▼0.02 | 112.21 ▼1.29 | 44.12 ▼1.92 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.01 ▲0.02 | 39.60 ▲5.55 | 35.24 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,530 ▲16 | 18.41 ▲0.76 | 613.78 ▼57.74 | 69.90 ▲23.32 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.20 ▼0.13 | 95.15 ▼12.05 | 41.95 ▼0.35 |
WPLG Default Mail From Settings /wp-admin/wplg.php | 26 | 0.44 | 0.10 | 13.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- mail_from_version
- theysaidso_admin_options
- can_compress_scripts
- mail_from_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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 get_option() in wp-content/plugins/wplg-default-mail-from/wplg.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/wplg.php
- > Network (severe)
wp-admin/wplg.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: from email, change default from email, change from email, wp default email, wp-email...
wplg-default-mail-from/wplg.php 85% from 13 tests
Analyzing the main PHP file in "WPLG Default Mail From" version 1.0.0
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wplg-default-mail-from.php" instead of "wplg.php")
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
No dangerous file extensions were detected281 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 4 | 14 | 154 |
CSS | 1 | 7 | 0 | 64 |
PO File | 1 | 14 | 14 | 45 |
JavaScript | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 7 | |
▷ Named functions | 7 | 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
There were not PNG files found in your plugin