Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼3.59ms] Passed 4 tests
This is a short check of server-side resources used by MailerSend - Transactional emails for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 48.71 ▲10.67 |
Dashboard /wp-admin | 3.31 ▼0.04 | 42.83 ▼17.53 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.18 ▲2.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 102.62 ▲3.13 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.97 ▼2.17 |
MailerSend /wp-admin/admin.php?page=mailersend-woocommerce | 3.00 | 21.98 |
Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by MailerSend - Transactional emails for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.27 ▼1.38 | 1.52 ▼0.32 | 39.29 ▼4.47 |
Dashboard /wp-admin | 2,206 ▲21 | 4.86 ▼0.03 | 96.75 ▼23.59 | 37.77 ▼6.85 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.06 | 39.99 ▲2.47 | 34.52 ▲1.65 |
Add New Post /wp-admin/post-new.php | 1,544 ▲8 | 18.45 ▼4.40 | 629.59 ▼25.44 | 50.10 ▼0.82 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.26 ▲0.07 | 100.74 ▲0.41 | 43.74 ▼3.11 |
MailerSend /wp-admin/admin.php?page=mailersend-woocommerce | 28 | 0.44 | 0.06 | 3.93 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_help_tip() in wp-content/plugins/mailersend-transactional-emails-for-woocommerce/admin/views/mailersend-woocommerce-admin-settings-display.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=mailersend-woocommerce
- > Network (severe)
wp-admin/admin.php?page=mailersend-woocommerce - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== mailersend-transactional-emails-for-woocommerce ===
)
mailersend-transactional-emails-for-woocommerce/mailersend-woocommerce.php 69% from 13 tests
The entry point to "MailerSend - Transactional emails for WooCommerce" version 1.2.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.7" instead of "5.1.0")
- Main file name: Name the main plugin file the same as the plugin slug ("mailersend-transactional-emails-for-woocommerce.php" instead of "mailersend-woocommerce.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires PHP: Periods and digits should be used for the required version number (ex. "7.0" instead of "7.4 or Latest")
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
There were no executable files found in this plugin1,971 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 551 | 417 | 1,570 |
CSS | 2 | 98 | 5 | 176 |
JavaScript | 1 | 84 | 26 | 163 |
Markdown | 1 | 30 | 0 | 62 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 3 | 6.98% |
▷ Public methods | 35 | 81.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 18.60% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/close_btn.png | 0.71KB | 0.62KB | ▼ 13.82% |