Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.16MB] [CPU: ▼10.63ms] Passed 4 tests
A check of server-side resources used by SMTP for WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.96 ▼0.42 |
Dashboard /wp-admin | 3.14 ▼0.17 | 36.17 ▼10.65 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 37.77 ▼10.88 |
Add New Post /wp-admin/post-new.php | 5.52 ▼0.37 | 72.74 ▼17.86 |
Media Library /wp-admin/upload.php | 3.23 ▼0.01 | 32.18 ▼3.13 |
Setting /wp-admin/admin.php?page=sn-ws-setting | 3.29 | 35.84 |
Test Email /wp-admin/admin.php?page=sn-ws-test-email | 3.28 | 37.85 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by SMTP for WP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲73 | 14.13 ▼0.23 | 1.86 ▲0.16 | 43.74 ▲4.42 |
Dashboard /wp-admin | 2,243 ▲65 | 5.66 ▲0.04 | 87.62 ▼32.18 | 39.19 ▼4.28 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.07 ▲0.11 | 36.51 ▼1.50 | 35.80 ▲1.46 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.18 ▲0.10 | 632.10 ▲17.08 | 51.97 ▼4.28 |
Media Library /wp-admin/upload.php | 1,442 ▲39 | 4.31 ▲0.16 | 101.38 ▼4.10 | 44.97 ▼0.57 |
Setting /wp-admin/admin.php?page=sn-ws-setting | 1,034 | 2.03 | 42.05 | 48.38 |
Test Email /wp-admin/admin.php?page=sn-ws-test-email | 887 | 1.85 | 30.38 | 30.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method SN_WS_INIT::uninstall_plugin_data() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sn-ws-test-email
- > Notice in wp-content/plugins/smtp-for-wp/includes/class.sn-ws-init.php+160
Undefined index: sn_ws_message
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sn-ws-test-email
- > Notice in wp-content/plugins/smtp-for-wp/includes/class.sn-ws-init.php+160
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SN_WS_INIT' not found in wp-content/plugins/smtp-for-wp/templates/navigation.php:1
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: mailer, email, smtp
smtp-for-wp/init.php 92% from 13 tests
The primary PHP file in "SMTP for WP" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("smtp-for-wp.php" instead of "init.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
No dangerous file extensions were detected1,629 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 132 | 245 | 927 |
PHP | 9 | 97 | 206 | 383 |
CSS | 2 | 12 | 14 | 319 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 4 | 17.39% |
▷ Public methods | 21 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.70% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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