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.01MB] [CPU: ▼142.21ms] Passed 4 tests
Server-side resources used by Global SMTP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.13 | 35.79 ▲11.92 |
Dashboard /wp-admin | 3.07 ▲0.02 | 48.34 ▼1.75 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 44.72 ▼1.08 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 90.53 ▼565.27 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 32.29 ▼0.73 |
Global SMTP Setup /wp-admin/options-general.php?page=global-smtp | 2.98 | 28.26 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Global SMTP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,694 ▲98 | 15.88 ▼0.13 | 8.75 ▼1.21 | 46.47 ▲0.18 |
Dashboard /wp-admin | 2,975 ▲41 | 5.92 ▼0.30 | 144.03 ▼15.98 | 107.73 ▼3.69 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▼0.01 | 62.12 ▼16.30 | 88.29 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,607 ▼8 | 18.75 ▼2.71 | 383.24 ▲51.01 | 112.81 ▲9.32 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.03 ▼0.01 | 174.93 ▲19.56 | 112.29 ▼1.83 |
Global SMTP Setup /wp-admin/options-general.php?page=global-smtp | 1,081 | 2.21 | 61.49 | 70.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Error' not found in wp-content/plugins/global-smtp/global-smtp.php:190
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== global-smtp ===
)
global-smtp/global-smtp.php Passed 13 tests
The primary PHP file in "Global SMTP" version 1.0 is used by WordPress to initiate all plugin functionality
64 characters long description:
Utility plugin to setup SMTP mail via constants in wp-config.php
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin213 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 80 | 152 |
Markdown | 1 | 19 | 0 | 42 |
JSON | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 4.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 11 | |
▷ Static methods | 2 | 18.18% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 2 | 18.18% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected