Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.31ms] 75% from 4 tests
Analyzing server-side resources used by Mailtrap for WordPress
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 605.24ms on /wp-admin/admin.php?page=mailtrap-inbox)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.85 ▼7.30 |
Dashboard /wp-admin | 3.36 ▲0.05 | 46.46 ▼0.21 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.83 ▲2.85 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.32 ▼4.59 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 37.32 ▲3.27 |
Mailtrap /wp-admin/options-general.php?page=mailtrap-settings | 3.26 | 33.42 |
Mailtrap Inbox /wp-admin/admin.php?page=mailtrap-inbox | 3.27 | 605.24 |
Mailtrap Test /wp-admin/admin.php?page=mailtrap-test | 3.25 | 33.07 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Mailtrap for WordPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.29 ▼1.45 | 1.63 ▼0.55 | 45.82 ▲0.21 |
Dashboard /wp-admin | 2,210 ▲19 | 5.86 ▲1.00 | 97.98 ▼1.98 | 39.64 ▼0.19 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.02 | 39.70 ▲3.16 | 35.23 ▲1.85 |
Add New Post /wp-admin/post-new.php | 1,517 ▼26 | 17.45 ▼0.88 | 664.61 ▲66.22 | 54.70 ▲4.64 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.20 ▼0.04 | 98.35 ▲0.83 | 41.88 ▼1.39 |
Mailtrap /wp-admin/options-general.php?page=mailtrap-settings | 907 | 2.17 | 21.65 | 28.41 |
Mailtrap Inbox /wp-admin/admin.php?page=mailtrap-inbox | 779 | 2.06 | 24.88 | 22.17 |
Mailtrap Test /wp-admin/admin.php?page=mailtrap-test | 808 | 2.05 | 23.25 | 23.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- 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
Good news, no errors were detected
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
Please fix the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/mailtrap-for-wp/includes/page-header.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/mailtrap-for-wp/includes/page-header.php:4
- > PHP Notice
Undefined variable: email_sent in wp-content/plugins/mailtrap-for-wp/includes/notices.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/mailtrap-for-wp/includes/page-header.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/mailtrap-for-wp/includes/page-header.php:4
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: mailtrap, email, mailtrap for wp, email test, smtp test...
mailtrap-for-wp/mailtrap-for-wp.php Passed 13 tests
"Mailtrap for WordPress" version 0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
56 characters long description:
Easily configure wordpress to send emails to Mailtrap.io
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected408 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 68 | 24 | 360 |
PO File | 1 | 17 | 16 | 44 |
Markdown | 1 | 4 | 0 | 4 |
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.55 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 16 | |
▷ Static methods | 6 | 37.50% |
▷ Public methods | 16 | 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 | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin