Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.06MB] [CPU: ▲6.89ms] Passed 4 tests
Server-side resources used by Customize WordPress Emails and Alerts - Better Notifications for WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 57.60 ▲54.09 | 11,223,652.40 ▲11,223,610.10 |
Dashboard /wp-admin | 4.41 ▲1.06 | 58.28 ▲8.95 |
Posts /wp-admin/edit.php | 4.45 ▲1.05 | 55.17 ▲5.27 |
Add New Post /wp-admin/post-new.php | 7.01 ▲1.08 | 94.31 ▼2.32 |
Media Library /wp-admin/upload.php | 4.32 ▲1.05 | 50.94 ▲15.65 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Customize WordPress Emails and Alerts - Better Notifications for WP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲96 | 14.59 ▲0.03 | 1.69 ▼0.10 | 44.27 ▲6.11 |
Dashboard /wp-admin | 2,257 ▲82 | 5.60 ▼0.11 | 85.71 ▼14.99 | 38.34 ▼6.33 |
Posts /wp-admin/edit.php | 2,165 ▲65 | 2.04 ▲0.07 | 35.52 ▼5.03 | 35.65 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,581 ▲55 | 23.63 ▲0.50 | 628.83 ▼84.72 | 58.37 ▲2.67 |
Media Library /wp-admin/upload.php | 1,465 ▲68 | 4.19 ▼0.10 | 108.09 ▲3.18 | 46.59 ▲5.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bnfw/includes/admin/bnfw-settings.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bnfw/includes/helpers/ajax-helpers.php:68
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: A description for screenshot #3 is required in bnfw/assets to your readme.txt
- Tags: There are too many tags (12 tag instead of maximum 10)
bnfw/bnfw.php 92% from 13 tests
The principal PHP file in "Customize WordPress Emails and Alerts - Better Notifications for WP" v. 1.9.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)
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 plugin8,518 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 1,152 | 2,353 | 5,097 |
PO File | 5 | 1,060 | 1,464 | 2,558 |
JavaScript | 3 | 80 | 12 | 588 |
CSS | 2 | 29 | 14 | 138 |
Markdown | 2 | 39 | 0 | 110 |
JSON | 1 | 0 | 0 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 66.58 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 190.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 222 | |
▷ Static methods | 9 | 4.05% |
▷ Public methods | 175 | 78.83% |
▷ Protected methods | 12 | 5.41% |
▷ Private methods | 35 | 15.77% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
Constants | 8 | |
▷ Global constants | 1 | 12.50% |
▷ Class constants | 7 | 87.50% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon-256x256.png | 22.58KB | 13.67KB | ▼ 39.46% |