Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.89ms] Passed 4 tests
Analyzing server-side resources used by Simple WP SMTP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.95 ▼3.64 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.96 ▲0.24 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.58 ▼1.70 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 90.23 ▼10.45 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.25 ▲1.11 |
Test mail /wp-admin/admin.php?page=smtp_test_mail | 3.22 | 34.43 |
SMTP settings /wp-admin/admin.php?page=smtp_settings | 3.26 | 37.95 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Simple WP SMTP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲27 | 13.15 ▼1.25 | 1.91 ▲0.36 | 43.46 ▼0.95 |
Dashboard /wp-admin | 2,236 ▲30 | 4.84 ▼0.00 | 116.25 ▲3.44 | 42.70 ▼6.08 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.02 ▲0.02 | 39.77 ▼2.15 | 35.98 ▲1.52 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 17.77 ▼5.36 | 706.43 ▲90.60 | 59.54 ▲2.71 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.23 ▲0.03 | 94.87 ▼6.00 | 41.82 ▼2.11 |
Test mail /wp-admin/admin.php?page=smtp_test_mail | 835 | 2.02 | 24.46 | 43.07 |
SMTP settings /wp-admin/admin.php?page=smtp_settings | 949 | 2.06 | 23.83 | 25.23 |
Uninstaller [IO: ✅] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 15 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=smtp_settings
- > Notice in wp-content/plugins/simple-wp-smtp/admin/smtp-settings-form.php+90
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-wp-smtp/inc/helper-function.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-wp-smtp/admin/smtp-settings-form.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-wp-smtp/admin/smtp-test-mail-form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-wp-smtp/admin/admin-menu.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Requires at least: Version not formatted correctly
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
simple-wp-smtp/easy-smtp.php 69% from 13 tests
"Simple WP SMTP" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: The domain path should use only dashes and lowercase characters ("languages/")
- Domain Path: Please prefix the domain path with a forward slash character ("/languages/")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-wp-smtp.php" instead of "easy-smtp.php")
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.0" instead of "7.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin318 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 12 | 83 | 222 |
CSS | 2 | 3 | 1 | 61 |
Markdown | 1 | 13 | 0 | 35 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin