73% email

Code Review | Email

WordPress plugin Email scored73%from 54 tests.

About plugin

  • Plugin page: email
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-3.6
  • WordPress version: 6.3.1
  • First release: Aug 4, 2013
  • Latest release: Jan 22, 2015
  • Number of updates: 13
  • Update frequency: every 41.2 days
  • Top authors: Developdaly (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /11,586 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼4.98ms] Passed 4 tests

A check of server-side resources used by Email
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1434.70 ▼6.21
Dashboard /wp-admin3.44 ▲0.1444.54 ▼1.89
Posts /wp-admin/edit.php3.49 ▲0.1448.57 ▲2.02
Add New Post /wp-admin/post-new.php6.04 ▲0.1591.42 ▼13.82
Media Library /wp-admin/upload.php3.36 ▲0.1434.66 ▲3.72
Add New /wp-admin/edit.php?post_type=email&page=email/emails.php3.3130.31
Emails /wp-admin/edit.php?post_type=email3.4135.22
Logs /wp-admin/edit.php?post_type=email_log3.4135.25

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Email
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲12513.36 ▼0.921.80 ▼0.0540.33 ▼11.14
Dashboard /wp-admin2,257 ▲695.12 ▼0.69110.35 ▼6.0539.62 ▼3.98
Posts /wp-admin/edit.php2,149 ▲632.23 ▲0.2037.73 ▲2.3733.81 ▼0.41
Add New Post /wp-admin/post-new.php1,561 ▲2823.41 ▲0.23587.29 ▼96.6949.87 ▼3.01
Media Library /wp-admin/upload.php1,442 ▲544.37 ▲0.1696.93 ▲0.3240.48 ▼1.41
Add New /wp-admin/edit.php?post_type=email&page=email/emails.php1,4532.2639.6934.46
Emails /wp-admin/edit.php?post_type=email1,1162.1832.9027.27
Logs /wp-admin/edit.php?post_type=email_log1,1132.2033.3027.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/edit.php?post_type=email&page=email/emails.php
    • > Notice in wp-content/plugins/email/admin.php+181
    Undefined variable: email_fromPname

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/email/email.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=email_log
    • > Network (severe)
    wp-content/plugins/email/assets/jquery-ui-1.9.2.custom.min.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=email_log
    • > Network (severe)
    wp-content/plugins/email/assets/jquery.timepicker.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: wp_mail, mail, email log, e-mail, email...

email/email.php Passed 13 tests

The main file in "Email" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
123 characters long description:
Email users with custom templates when certain actions happen, such as new posts, updated custom post types, deleted users.

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
There were no executable files found in this plugin2,156 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript312291,059
PHP516836675
CSS2817408
Markdown110014

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/mail.png1.59KB0.70KB▼ 55.90%
assets/chosen/chosen-sprite.png0.63KB0.88KB0.00%
assets/chosen/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%