Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.89MB] [CPU: ▼34.00ms] Passed 4 tests
Server-side resources used by TWD SMTP Mail
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 58.59 ▲15.49 |
Dashboard /wp-admin | 3.05 ▼0.25 | 26.01 ▼28.43 |
Posts /wp-admin/edit.php | 3.05 ▼0.30 | 30.74 ▼21.76 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.83 | 27.37 ▼76.58 |
Media Library /wp-admin/upload.php | 3.05 ▼0.17 | 29.35 ▼9.23 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for TWD SMTP Mail
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.69 ▼0.87 | 2.75 ▲0.74 | 51.15 ▲7.15 |
Dashboard /wp-admin | 2,225 ▲46 | 4.88 ▲0.00 | 108.74 ▼3.35 | 42.08 ▼2.20 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.00 ▲0.01 | 40.49 ▲0.09 | 34.94 ▼2.09 |
Add New Post /wp-admin/post-new.php | 1,526 ▼18 | 17.41 ▼1.11 | 687.62 ▲18.15 | 71.25 ▲3.75 |
Media Library /wp-admin/upload.php | 1,401 ▲16 | 4.22 ▼0.01 | 103.39 ▼2.96 | 44.83 ▼3.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'TWD_SMTP_PLUGIN_DIR/view_smtp_form.php' (include_path='.:/usr/share/php') in wp-content/plugins/twd-smtp-mail/class.smtp_admin.php on line 3
- > PHP Warning
Use of undefined constant TWD_SMTP_PLUGIN_DIR - assumed 'TWD_SMTP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/twd-smtp-mail/class.smtp_admin.php on line 3
- > PHP Warning
require_once(TWD_SMTP_PLUGIN_DIR/view_smtp_form.php): failed to open stream: No such file or directory in wp-content/plugins/twd-smtp-mail/class.smtp_admin.php on line 3
- > 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)
No browser issues were found
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
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Plugin Configure.) image missing
twd-smtp-mail/twd-smtp-mail.php Passed 13 tests
"TWD SMTP Mail" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
64 characters long description:
You can send email via SMTP Mail Server from your WordPress Blog
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
No dangerous file extensions were detected389 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 62 | 21 | 389 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 3 | 16.67% |
▷ Public methods | 18 | 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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 70.73KB | 39.30KB | ▼ 44.43% |