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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.89ms] Passed 4 tests
A check of server-side resources used by turboSMTP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 41.80 ▼4.77 |
Dashboard /wp-admin | 3.46 ▲0.16 | 51.40 ▼2.92 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 46.21 ▼4.45 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 88.77 ▼3.43 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 47.76 ▲12.89 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
ts_send_options |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by turboSMTP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.31 ▼1.06 | 1.80 ▼0.12 | 38.80 ▼8.20 |
Dashboard /wp-admin | 2,220 ▲32 | 5.82 ▼0.06 | 103.74 ▼13.03 | 71.00 ▲26.24 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.31 ▲0.31 | 34.12 ▼5.65 | 33.98 ▼3.32 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 23.08 ▲5.57 | 692.53 ▼60.56 | 52.39 ▼14.18 |
Media Library /wp-admin/upload.php | 1,398 ▲7 | 4.41 ▲0.24 | 123.31 ▲23.10 | 72.09 ▲25.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- 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 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/turbosmtp/class/TSAjaxListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function turbosmtp_validapi() in wp-content/plugins/turbosmtp/turbo-logout-section.php:5
- > PHP Fatal error
Uncaught Error: Class 'TurboApiClient' not found in wp-content/plugins/turbosmtp/class/TurboApiStats.php:143
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/turbosmtp/class/TSAjaxListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/turbosmtp/turbo-smtp-plugin.php:15
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/turbosmtp/class/TSAjaxListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/turbosmtp/turbo-stats-section.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function turbosmtp_validapi() in wp-content/plugins/turbosmtp/turbo-config-section.php:5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
10 plugin tags: mailer, phpmailer, email, mail, turbo smtp...
turbosmtp/turbo-smtp-plugin.php 92% from 13 tests
The main PHP file in "turboSMTP" ver. 3.9 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("turbosmtp.php" instead of "turbo-smtp-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin11,577 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 7,198 |
JavaScript | 5 | 406 | 138 | 1,490 |
PHP | 9 | 438 | 42 | 1,246 |
Sass | 1 | 4 | 19 | 720 |
PO File | 2 | 189 | 195 | 453 |
CSS | 3 | 73 | 2 | 339 |
Markdown | 2 | 110 | 0 | 131 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 90.91% |
▷ Protected methods | 1 | 4.55% |
▷ Private methods | 1 | 4.55% |
Functions | 38 | |
▷ Named functions | 24 | 63.16% |
▷ Anonymous functions | 14 | 36.84% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
22 PNG files occupy 0.59MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/yellow_dot.png | 49.08KB | 0.25KB | ▼ 99.48% |
img/icon-arrow-down.png | 14.98KB | 0.36KB | ▼ 97.62% |
img/icon-stat.png | 15.91KB | 1.05KB | ▼ 93.41% |
img/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
img/icon-arrow-left.png | 14.94KB | 0.28KB | ▼ 98.10% |