89% dead-letter-email

Code Review | Dead-Letter

WordPress plugin Dead-Letter scored89%from 54 tests.

About plugin

  • Plugin page: dead-letter-email
  • Plugin version: 0.0.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 2, 2019
  • Latest release: Mar 11, 2020
  • Number of updates: 11
  • Update frequency: every 36.8 days
  • Top authors: SoftCreatR (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /671 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲4.30MB] [CPU: ▼12.07ms] Passed 4 tests

Server-side resources used by Dead-Letter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /8.29 ▲4.8338.46 ▲3.85
Dashboard /wp-admin8.31 ▲4.9746.92 ▼9.70
Posts /wp-admin/edit.php8.31 ▲4.9651.56 ▲3.23
Add New Post /wp-admin/post-new.php8.31 ▲2.4354.97 ▼45.65
Media Library /wp-admin/upload.php8.31 ▲5.0840.00 ▲4.21

Server storage [IO: ▲6.29MB] [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: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dead-Letter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.29 ▼1.091.86 ▲0.0842.88 ▲1.79
Dashboard /wp-admin2,206 ▲215.89 ▲0.97108.67 ▼16.0241.50 ▼6.52
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0240.55 ▲1.6534.74 ▼4.18
Add New Post /wp-admin/post-new.php1,538 ▲523.43 ▲0.21639.07 ▼38.5258.27 ▲1.75
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0194.28 ▼7.6841.16 ▼2.83

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt is a good inspiration

dead-letter-email/wp-dead-letter.php 92% from 13 tests

"Dead-Letter" version 0.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dead-letter-email.php" instead of "wp-dead-letter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected126 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23410992
PO File16634

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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 are no PNG files in this plugin