Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.05ms] Passed 4 tests
An overview of server-side resources used by Manage Notification E-mails
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.61 ▼4.32 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.59 ▲1.45 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 53.55 ▼2.17 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 94.87 ▼7.16 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.58 ▲2.13 |
Notification e-mails /wp-admin/options-general.php?page=famne-admin | 3.30 | 36.85 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
famne_options |
Browser metrics Passed 4 tests
A check of browser resources used by Manage Notification E-mails
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.36 ▼0.01 | 1.75 ▼0.16 | 46.59 ▲1.60 |
Dashboard /wp-admin | 2,202 ▲25 | 5.60 ▼0.03 | 88.44 ▲0.21 | 38.39 ▼2.02 |
Posts /wp-admin/edit.php | 2,083 ▼17 | 2.06 ▲0.06 | 35.83 ▼3.74 | 32.44 ▼7.42 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 17.68 ▲0.24 | 653.86 ▼44.13 | 51.59 ▲0.25 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.27 ▲0.06 | 104.14 ▲6.56 | 41.88 ▼0.81 |
Notification e-mails /wp-admin/options-general.php?page=famne-admin | 1,188 | 2.12 | 31.45 | 46.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/manage-notification-emails/modules/settings-page/views/donatebox.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== manage-notification-emails ===
)
manage-notification-emails/manage-notification-emails.php Passed 13 tests
"Manage Notification E-mails" version 1.8.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
131 characters long description:
This plugin gives you the option to disable some of the notification e-mails send by WordPress. It's a simple plugin but effective.
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
Success! There were no dangerous files found in this plugin2,106 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 454 | 857 | 1,483 |
PO File | 2 | 160 | 203 | 621 |
CSS | 1 | 1 | 1 | 1 |
JavaScript | 1 | 0 | 1 | 1 |
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.50 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 15 | 46.88% |
▷ Public methods | 29 | 90.62% |
▷ Protected methods | 1 | 3.12% |
▷ Private methods | 2 | 6.25% |
Functions | 61 | |
▷ Named functions | 61 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.83MB with 0.59MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 366.33KB | 113.23KB | ▼ 69.09% |
screenshot-2.png | 318.50KB | 89.83KB | ▼ 71.80% |
screenshot-3.png | 160.74KB | 43.40KB | ▼ 73.00% |