Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼0.94ms] Passed 4 tests
Analyzing server-side resources used by Avang Email Sender No Spam
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.02 ▼4.74 |
Dashboard /wp-admin | 3.41 ▲0.11 | 51.60 ▲2.70 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 46.40 ▲2.99 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 83.78 ▼4.71 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 44.36 ▲8.96 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 141 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
avang-email-sender-basename |
avangemail_plugin_dir_name |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Avang Email Sender No Spam
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲58 | 14.47 ▼0.18 | 1.82 ▼0.28 | 43.81 ▼1.14 |
Dashboard /wp-admin | 2,209 ▲23 | 5.86 ▼0.05 | 111.20 ▼10.57 | 68.80 ▲26.06 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.02 ▲0.01 | 35.39 ▼4.16 | 33.46 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,680 ▲147 | 22.53 ▼0.34 | 683.35 ▲0.47 | 43.53 ▼7.34 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.18 ▼0.07 | 93.88 ▼17.40 | 63.88 ▲18.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/avang-email-sender-no-spam/template/t-avangemail_admin.php
- > /wp-content/plugins/avang-email-sender-no-spam/api/error_log.php
- 50× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/avang-email-sender-no-spam/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/avang-email-sender-no-spam/vendor/guzzlehttp/psr7/src/BufferStream.php:14
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/avang-email-sender-no-spam/vendor/guzzlehttp/promises/src/FulfilledPromise.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/avang-email-sender-no-spam/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/avang-email-sender-no-spam/vendor/guzzlehttp/psr7/src/DroppingStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/avang-email-sender-no-spam/vendor/guzzlehttp/promises/src/EachPromise.php:8
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/avang-email-sender-no-spam/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/avang-email-sender-no-spam/defaults/function.wp_mail.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/avang-email-sender-no-spam/vendor/guzzlehttp/psr7/src/MultipartStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/avang-email-sender-no-spam/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
- > 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 90% 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
8 plugin tags: send email via api, email, mailer, avangemail, transactional email...
avang-email-sender-no-spam/avangemailsendernospam.php 77% from 13 tests
The main PHP script in "Avang Email Sender No Spam" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("avang-email-sender-no-spam.php" instead of "avangemailsendernospam.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 177 characters long)
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
Everything looks great! No dangerous files found in this plugin13,960 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 106 | 1,854 | 5,083 | 9,185 |
Markdown | 10 | 1,018 | 0 | 3,233 |
SVG | 4 | 24 | 0 | 998 |
JSON | 6 | 0 | 0 | 525 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 13.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 71 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 71 | 100.00% |
▷ Final classes | 9 | 12.68% |
Methods | 692 | |
▷ Static methods | 75 | 10.84% |
▷ Public methods | 573 | 82.80% |
▷ Protected methods | 4 | 0.58% |
▷ Private methods | 115 | 16.62% |
Functions | 148 | |
▷ Named functions | 61 | 41.22% |
▷ Anonymous functions | 87 | 58.78% |
Constants | 57 | |
▷ Global constants | 2 | 3.51% |
▷ Class constants | 55 | 96.49% |
▷ Public constants | 55 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/critical_error.png | 14.17KB | 6.14KB | ▼ 56.71% |
assets/sender_header.png | 42.04KB | 42.06KB | 0.00% |
assets/images/icon.png | 0.88KB | 1.08KB | 0.00% |
assets/images/connect_apikey.png | 16.15KB | 6.44KB | ▼ 60.15% |