94% set-email-sender

Code Review | Set email sender

WordPress plugin Set email sender scored 94% from 53 tests.

About plugin

  • Plugin page: set-email-sender
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-4.0
  • WordPress version: 5.8.1
  • First release: Feb 6, 2013
  • Latest release: Sep 4, 2014
  • Number of updates: 5
  • Update frequency: every 115.0 days
  • Top authors: citynetwork (100%)

Code review

53 tests

User reviews

3 reviews

Install metrics

1,000+ active / 5,146 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼263.03ms] Passed 4 tests

A check of server-side resources used by Set email sender
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.44 ▲12.63
Dashboard /wp-admin3.06 ▲0.0137.45 ▼6.99
Posts /wp-admin/edit.php3.11 ▲0.0143.74 ▲1.18
Add New Post /wp-admin/post-new.php5.42 ▼0.0092.01 ▼1,031.20
Media Library /wp-admin/upload.php3.00 ▼0.0027.11 ▼15.11

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Set email sender
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲12015.79 ▲0.219.21 ▲1.9347.07 ▼0.84
Dashboard /wp-admin2,962 ▲1065.96 ▲0.16137.19 ▼8.6194.11 ▼17.50
Posts /wp-admin/edit.php2,706 ▼02.70 ▲0.0265.29 ▼7.5699.11 ▼0.14
Add New Post /wp-admin/post-new.php1,853 ▲26519.10 ▼1.87355.47 ▲11.60103.95 ▼15.07
Media Library /wp-admin/upload.php1,772 ▼05.00 ▼0.00150.49 ▲4.49109.64 ▼2.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/set-email-sender/setemailsender.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === set-email-sender === )
The official readme.txt might help

set-email-sender/setemailsender.php 92% from 13 tests

Analyzing the main PHP file in "Set email sender" version 0.1
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("set-email-sender.php" instead of "setemailsender.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12127

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin