84% wp-test-email

Code Review | WP Test Email

WordPress plugin WP Test Email scored84%from 54 tests.

About plugin

  • Plugin page: wp-test-email
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2018
  • Latest release: Nov 2, 2022
  • Number of updates: 18
  • Update frequency: every 81.6 days
  • Top authors: boopathi0001 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

10,000+ active /119,969 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.56ms] Passed 4 tests

A check of server-side resources used by WP Test Email
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0149.47 ▲7.80
Dashboard /wp-admin3.32 ▼0.0345.42 ▼19.64
Posts /wp-admin/edit.php3.37 ▲0.0144.47 ▼3.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.26 ▼14.09
Media Library /wp-admin/upload.php3.24 ▲0.0135.41 ▲3.00
Test Email /wp-admin/tools.php?page=wp-test-email3.2231.37

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Test Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.18 ▼0.182.00 ▲0.2543.94 ▼0.63
Dashboard /wp-admin2,196 ▲195.48 ▼0.1081.10 ▼5.7539.23 ▲3.58
Posts /wp-admin/edit.php2,107 ▲42.01 ▲0.0334.22 ▼6.5834.83 ▼0.76
Add New Post /wp-admin/post-new.php1,529 ▲323.31 ▲0.11606.11 ▼0.8652.38 ▲0.29
Media Library /wp-admin/upload.php1,404 ▲104.23 ▲0.0494.92 ▼1.9441.95 ▲0.06
Test Email /wp-admin/tools.php?page=wp-test-email8132.0223.3240.70

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-test-email/wp-test-email.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
8 plugin tags: wp mail, test wordpress mail, mail tester, test email, wp_email...

wp-test-email/wp-test-email.php Passed 13 tests

The entry point to "WP Test Email" version 1.1.6 is a PHP file that has certain tags in its header comment area
90 characters long description:
WP Test Email is allows you to test if your WordPress installation is sending mail or not.

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
Good job! No executable or dangerous file extensions detected66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131066

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin