78% avang-email-sender-no-spam

Code Review | Avang Email Sender No Spam

WordPress plugin Avang Email Sender No Spam scored78%from 54 tests.

About plugin

  • Plugin page: avang-email-sende...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.4
  • WordPress version: 6.3.1
  • First release: Apr 18, 2020
  • Latest release: Apr 20, 2020
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: avangemail (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,193 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.02 ▼4.74
Dashboard /wp-admin3.41 ▲0.1151.60 ▲2.70
Posts /wp-admin/edit.php3.52 ▲0.1746.40 ▲2.99
Add New Post /wp-admin/post-new.php5.99 ▲0.1083.78 ▼4.71
Media Library /wp-admin/upload.php3.33 ▲0.1044.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

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5814.47 ▼0.181.82 ▼0.2843.81 ▼1.14
Dashboard /wp-admin2,209 ▲235.86 ▼0.05111.20 ▼10.5768.80 ▲26.06
Posts /wp-admin/edit.php2,107 ▲182.02 ▲0.0135.39 ▼4.1633.46 ▼0.53
Add New Post /wp-admin/post-new.php1,680 ▲14722.53 ▼0.34683.35 ▲0.4743.53 ▼7.34
Media Library /wp-admin/upload.php1,397 ▲94.18 ▼0.0793.88 ▼17.4063.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

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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.45
Average class complexity13.56
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes71100.00%
▷ Final classes912.68%
▷ Static methods7510.84%
▷ Public methods57382.80%
▷ Protected methods40.58%
▷ Private methods11516.62%
▷ Named functions6141.22%
▷ Anonymous functions8758.78%
▷ Global constants23.51%
▷ Class constants5596.49%
▷ Public constants55100.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
FileSize - originalSize - compressedSavings
assets/images/critical_error.png14.17KB6.14KB▼ 56.71%
assets/images/connect_apikey.png16.15KB6.44KB▼ 60.15%