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
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.16ms] Passed 4 tests
A check of server-side resources used by SMTP Locaweb for Wordpress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.25 ▲1.73 |
Dashboard /wp-admin | 3.37 ▲0.02 | 46.58 ▼11.15 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 52.88 ▲4.97 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 91.42 ▼14.77 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.51 ▼0.46 |
SmtpLocaweb /wp-admin/options-general.php?page=smtp_locaweb | 3.27 | 32.83 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
smtp_locaweb |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for SMTP Locaweb for Wordpress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 13.21 ▼1.18 | 1.53 ▼0.17 | 39.69 ▼1.07 |
Dashboard /wp-admin | 2,216 ▲25 | 4.89 ▼1.02 | 108.37 ▲5.02 | 43.61 ▲2.92 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.05 ▲0.02 | 39.36 ▲4.90 | 35.68 ▲2.99 |
Add New Post /wp-admin/post-new.php | 1,544 ▲20 | 23.25 ▲0.05 | 578.54 ▼56.15 | 49.81 ▼3.77 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.23 ▲0.02 | 93.94 ▼10.32 | 43.50 ▼1.80 |
SmtpLocaweb /wp-admin/options-general.php?page=smtp_locaweb | 932 | 2.22 | 25.22 | 24.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- smtp_locaweb
- theysaidso_admin_options
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smtp-locaweb/includes/options-page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/smtp-locaweb/smtp_locaweb.php:95
- > PHP Fatal error
Uncaught Error: Class 'SmtpLocaweb' not found in wp-content/plugins/smtp-locaweb/includes/admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: locaweb, email, mail, smtp
smtp-locaweb/smtp_locaweb.php 85% from 13 tests
The principal PHP file in "SMTP Locaweb for Wordpress" v. 0.1.2 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: It is recommended to name the main PHP file as the plugin slug ("smtp-locaweb.php" instead of "smtp_locaweb.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected278 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 33 | 125 | 278 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 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 | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 117.06KB | 44.18KB | ▼ 62.26% |