Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method GNA_ChangeMailSender::activate_handler() should not be called statically
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.06ms] Passed 4 tests
An overview of server-side resources used by GNA Change Mail Sender
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 45.62 ▲3.87 |
Dashboard /wp-admin | 3.35 ▲0.05 | 52.79 ▲2.51 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 51.49 ▲2.46 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.10 ▼17.07 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 43.00 ▲7.56 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for GNA Change Mail Sender
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.71 ▼0.69 | 2.33 ▲0.11 | 43.76 ▲3.31 |
Dashboard /wp-admin | 2,206 ▲21 | 5.88 ▼0.01 | 112.41 ▼1.58 | 75.06 ▲30.58 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 1.98 ▼0.08 | 39.21 ▼3.01 | 35.82 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 21.02 ▼2.24 | 696.50 ▲81.41 | 62.47 ▲8.12 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.18 ▼0.02 | 113.39 ▲5.20 | 77.62 ▲32.37 |
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
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method GNA_ChangeMailSender::deactivate_handler() should not be called statically
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
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 | 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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'GNA_ChangeMailSender_Admin_Menu' not found in wp-content/plugins/gna-change-mail-sender/admin/gna-change-mail-sender-admin-settings-menu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gna-change-mail-sender/inc/gna-change-mail-sender-config.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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
These attributes need your attention:
- Donate link: Please fix this invalid url: "none"
gna-change-mail-sender/gna-change-mail-sender.php Passed 13 tests
"GNA Change Mail Sender" version 0.9.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
Easy to change WordPress default mail sender name and email address
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin319 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 64 | 36 | 319 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 4 | 8.70% |
▷ Public methods | 46 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/gna_20x20.png | 2.98KB | 0.33KB | ▼ 88.89% |