78% wplg-default-mail-from

Code Review | WPLG Default Mail From

WordPress plugin WPLG Default Mail From scored78%from 54 tests.

About plugin

  • Plugin page: wplg-default-mail...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 6.3.1
  • First release: Jun 10, 2016
  • Latest release: Jun 10, 2016
  • Number of updates: 6
  • Update frequency: every 11.5 days
  • Top authors: wpletsgo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /929 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
The plugin installed gracefully, with no errors

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

Server-side resources used by WPLG Default Mail From
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.88 ▼4.12
Dashboard /wp-admin3.35 ▲0.0447.28 ▼6.52
Posts /wp-admin/edit.php3.40 ▲0.0447.22 ▼0.57
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.29 ▲7.27
Media Library /wp-admin/upload.php3.27 ▲0.0440.25 ▲8.78

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: 7 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
mail_from_options
mail_from_version

Browser metrics Passed 4 tests

Checking browser requirements for WPLG Default Mail From
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5113.58 ▼1.081.53 ▼0.7340.69 ▼3.24
Dashboard /wp-admin2,214 ▲294.86 ▼0.02112.21 ▼1.2944.12 ▼1.92
Posts /wp-admin/edit.php2,097 ▲112.01 ▲0.0239.60 ▲5.5535.24 ▼1.84
Add New Post /wp-admin/post-new.php1,530 ▲1618.41 ▲0.76613.78 ▼57.7469.90 ▲23.32
Media Library /wp-admin/upload.php1,396 ▲114.20 ▼0.1395.15 ▼12.0541.95 ▼0.35
WPLG Default Mail From Settings /wp-admin/wplg.php260.440.1013.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • mail_from_version
    • theysaidso_admin_options
    • can_compress_scripts
    • mail_from_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wplg-default-mail-from/wplg.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/wplg.php
    • > Network (severe)
    wp-admin/wplg.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: from email, change default from email, change from email, wp default email, wp-email...

wplg-default-mail-from/wplg.php 85% from 13 tests

Analyzing the main PHP file in "WPLG Default Mail From" version 1.0.0
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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 ("wplg-default-mail-from.php" instead of "wplg.php")

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
No dangerous file extensions were detected281 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1414154
CSS17064
PO File1141445
JavaScript10018

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin