90% wp-mailfrom-ii

Code Review | WP Mail From II

WordPress plugin WP Mail From II scored90%from 54 tests.

About plugin

  • Plugin page: wp-mailfrom-ii
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.6
  • WordPress version: 6.3.1
  • First release: Aug 22, 2012
  • Latest release: Dec 19, 2020
  • Number of updates: 25
  • Update frequency: every 121.8 days
  • Top authors: husobj (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

8,000+ active /91,783 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.59ms] Passed 4 tests

A check of server-side resources used by WP Mail From II
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.56 ▼0.55
Dashboard /wp-admin3.34 ▼0.0147.86 ▼13.20
Posts /wp-admin/edit.php3.39 ▲0.0348.02 ▲4.20
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.71 ▼7.88
Media Library /wp-admin/upload.php3.26 ▲0.0336.26 ▼0.71
Mail From /wp-admin/options-general.php?page=wp-mailfrom-ii3.2534.34

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Mail From II
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.25 ▼0.411.55 ▼0.3342.84 ▼4.68
Dashboard /wp-admin2,202 ▲225.63 ▲0.0084.33 ▼7.3136.32 ▼4.25
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0136.63 ▲0.2931.71 ▼5.63
Add New Post /wp-admin/post-new.php1,534 ▲823.05 ▼0.04626.44 ▲5.4464.33 ▲15.77
Media Library /wp-admin/upload.php1,401 ▲14.33 ▲0.0997.83 ▼6.1442.71 ▼1.17
Mail From /wp-admin/options-general.php?page=wp-mailfrom-ii8292.0326.6630.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
9 plugin tags: email address, from header, email, mail from, mail...

wp-mailfrom-ii/wp-mailfrom-ii.php Passed 13 tests

The entry point to "WP Mail From II" version 2.0 is a PHP file that has certain tags in its header comment area
93 characters long description:
Allows you to configure the default email address and name used for emails sent by WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin407 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP6134286220
Markdown2510104
PO File2202083

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.50
▷ Minimum class complexity3.00
▷ Maximum class complexity16.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods312.00%
▷ Public methods2392.00%
▷ Protected methods00.00%
▷ Private methods28.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin