89% automatic-email-testing-for-wp

Code Review | Automatic Email Testing for WP

WordPress plugin Automatic Email Testing for WP scored89%from 54 tests.

About plugin

  • Plugin page: automatic-email-t...
  • Plugin version: 1.4.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Jun 14, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 23
  • Update frequency: every 35.4 days
  • Top authors: websprout (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /2,273 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼9.58ms] Passed 4 tests

An overview of server-side resources used by Automatic Email Testing for WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.93 ▼4.98
Dashboard /wp-admin3.36 ▲0.0150.23 ▼15.72
Posts /wp-admin/edit.php3.41 ▲0.0550.23 ▼1.26
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.22 ▼16.36
Media Library /wp-admin/upload.php3.28 ▲0.0542.18 ▲6.46
Automatic Email Testing for WP /wp-admin/options-general.php?page=automatic-email-testing-wp3.2435.18

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Automatic Email Testing for WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.31 ▼1.331.77 ▼0.1643.52 ▼3.38
Dashboard /wp-admin2,212 ▲215.84 ▲0.9499.68 ▼17.4639.78 ▼7.36
Posts /wp-admin/edit.php2,098 ▲121.98 ▼0.0236.93 ▲0.7333.21 ▼2.07
Add New Post /wp-admin/post-new.php1,519 ▼1417.93 ▼5.27702.54 ▼22.1274.97 ▲9.80
Media Library /wp-admin/upload.php1,394 ▲64.14 ▼0.0494.74 ▼19.7342.44 ▼5.47
Automatic Email Testing for WP /wp-admin/options-general.php?page=automatic-email-testing-wp8162.0226.0030.33

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
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: test email automatically, email tester, php mail, wp mail, check wordpress email automatically...

automatic-email-testing-for-wp/automatic-email-testing-wp.php 85% from 13 tests

The main file in "Automatic Email Testing for WP" v. 1.4.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("automatic-email-testing-for-wp.php" instead of "automatic-email-testing-wp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin168 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25829163
CSS1105

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon-128x128.png8.60KB3.75KB▼ 56.38%