Benchmarks
Plugin footprint Passed 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼289.96ms] Passed 4 tests
An overview of server-side resources used by WP Better Emails
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.16 | 58.87 ▲2.79 |
Dashboard /wp-admin | 3.51 ▲0.11 | 40.89 ▲4.02 |
Posts /wp-admin/edit.php | 3.74 ▲0.10 | 40.75 ▼4.88 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.01 | 96.63 ▼1,161.75 |
Media Library /wp-admin/upload.php | 3.39 ▲0.10 | 33.38 ▲7.98 |
WP Better Emails /wp-admin/options-general.php?page=wpbe_options | 3.43 | 28.49 |
Server storage [IO: ▲0.73MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 62 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wpbe_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Better Emails
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,786 ▲41 | 15.10 ▼0.67 | 6.27 ▼0.14 | 2.80 ▲0.48 |
Dashboard /wp-admin | 2,883 ▲32 | 6.12 ▼0.07 | 118.57 ▼18.91 | 163.08 ▲4.13 |
Posts /wp-admin/edit.php | 2,696 ▲5 | 3.37 ▲0.28 | 67.18 ▲1.08 | 146.38 ▲3.86 |
Add New Post /wp-admin/post-new.php | 1,719 ▲58 | 21.75 ▲5.48 | 485.06 ▲49.89 | 162.38 ▼1.04 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.50 ▼0.03 | 145.35 ▲0.92 | 191.58 ▼3.25 |
WP Better Emails /wp-admin/options-general.php?page=wpbe_options | 2,219 | 9.48 | 173.04 | 224.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
- 4× 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/wp-better-emails/views/help.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-better-emails/templates/template.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-better-emails/wpbe-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-better-emails/wpbe.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Contributors: The plugin contributors field is missing
- Screenshots: These screenshots do not have images: #1 (The default template provided with WP Better Emails. Tested on many email clients like Gmail, Yahoo!, Live/Hotmail, etc.), #2 (WP Better Emails settings screen with the default WP TinyMCE editor.), #3 (Editor in source mode using CodeMirror syntax highlighting.), #4 (Live preview your template in a thickbox.), #5 (Help tab with information about available tags.)
wp-better-emails/wpbe.php 92% from 13 tests
The main file in "WP Better Emails" v. 0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-better-emails.php" instead of "wpbe.php")
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
There were no executable files found in this plugin3,382 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 16 | 783 | 940 | 2,682 |
PHP | 5 | 118 | 255 | 430 |
JavaScript | 9 | 30 | 10 | 170 |
JSON | 2 | 0 | 0 | 48 |
Sass | 2 | 2 | 2 | 36 |
HTML | 1 | 0 | 0 | 14 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.18MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 48.84KB | 24.38KB | ▼ 50.08% |
screenshot-1.png | 36.58KB | 22.13KB | ▼ 39.50% |
screenshot-5.png | 37.26KB | 24.94KB | ▼ 33.05% |
screenshot-2.png | 43.02KB | 25.41KB | ▼ 40.93% |
screenshot-4.png | 22.26KB | 13.41KB | ▼ 39.77% |