100% send-email-from-admin

Code Review | Send Email From Admin

WordPress plugin Send Email From Admin scored 100% from 54 tests.

About plugin

  • Plugin page: send-email-from-a...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 5.8.1
  • First release: Oct 29, 2015
  • Latest release: Mar 10, 2021
  • Number of updates: 26
  • Update frequency: every 75.4 days
  • Top authors: kojak711 (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active / 7,183 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼144.05ms] Passed 4 tests

Analyzing server-side resources used by Send Email From Admin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1538.04 ▲15.30
Dashboard /wp-admin3.09 ▲0.0448.79 ▼1.09
Posts /wp-admin/edit.php3.14 ▲0.0450.35 ▲2.07
Add New Post /wp-admin/post-new.php5.45 ▲0.0293.78 ▼575.23
Media Library /wp-admin/upload.php3.04 ▲0.0331.96 ▼1.94
Send Email /wp-admin/tools.php?page=sefa_email3.0734.76

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Send Email From Admin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8916.21 ▲0.637.66 ▼2.5552.16 ▲0.06
Dashboard /wp-admin2,994 ▲615.88 ▼0.05138.92 ▼17.81118.50 ▲0.90
Posts /wp-admin/edit.php2,744 ▲82.68 ▼0.0167.70 ▼11.0892.44 ▼5.31
Add New Post /wp-admin/post-new.php1,503 ▼18018.81 ▲1.05389.90 ▼5.62116.57 ▼1.28
Media Library /wp-admin/upload.php1,812 ▲25.02 ▼0.02159.37 ▼4.12130.45 ▲2.30
Send Email /wp-admin/tools.php?page=sefa_email2,1347.64176.89140.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: admin email, custom email, email attachment, email, email tools...

send-email-from-admin/send-email-from-admin.php 92% from 13 tests

The main file in "Send Email From Admin" v. 1.0 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: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin331 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11963186
CSS11088
PO File1141446
JavaScript10011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected