78% email-signup-for-link

Code Review | Email Signup for Link

WordPress plugin Email Signup for Link scored 78% from 54 tests.

About plugin

  • Plugin page: email-signup-for-...
  • Plugin version: 0.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Jan 22, 2013
  • Latest release: Jan 22, 2013
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: mynamedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,700 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Email Signup for Link
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.89 ▼6.05
Dashboard /wp-admin3.32 ▲0.0246.79 ▼6.24
Posts /wp-admin/edit.php3.37 ▲0.0145.36 ▼7.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.95 ▲10.34
Media Library /wp-admin/upload.php3.24 ▲0.0135.74 ▲0.31
Email for Link /wp-admin/options-general.php?page=email_for_link_edit_menu3.2129.80

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Email Signup for Link
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.20 ▼1.381.62 ▼0.5438.07 ▼7.77
Dashboard /wp-admin2,210 ▲225.90 ▲1.00105.83 ▼6.6641.30 ▼1.05
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.1536.45 ▼0.7633.89 ▲2.59
Add New Post /wp-admin/post-new.php1,546 ▲1318.44 ▼4.78621.51 ▼70.7556.55 ▲0.53
Media Library /wp-admin/upload.php1,395 ▲74.20 ▲0.0497.73 ▼6.7840.63 ▼1.89
Email for Link /wp-admin/options-general.php?page=email_for_link_edit_menu7782.0823.3140.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/email-signup-for-link/mail.php
  • 14× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/email-signup-for-link/email-signup-for-link.php:28
    • > PHP Notice
      Undefined index: userLastName in wp-content/plugins/email-signup-for-link/mail.php on line 23
    • > PHP Notice
      Undefined index: siteTitle in wp-content/plugins/email-signup-for-link/mail.php on line 13
    • > PHP Notice
      Undefined index: link in wp-content/plugins/email-signup-for-link/mail.php on line 30
    • > PHP Notice
      Undefined index: userEmailAddress in wp-content/plugins/email-signup-for-link/mail.php on line 19
    • > PHP Notice
      Undefined index: link in wp-content/plugins/email-signup-for-link/mail.php on line 23
    • > PHP Notice
      Undefined index: userFirstName in wp-content/plugins/email-signup-for-link/mail.php on line 30
    • > PHP Notice
      Undefined index: userLastName in wp-content/plugins/email-signup-for-link/mail.php on line 30
    • > PHP Notice
      Undefined variable: message in wp-content/plugins/email-signup-for-link/mail.php on line 23
    • > PHP Notice
      Undefined index: adminEmail in wp-content/plugins/email-signup-for-link/mail.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === email-signup-for-link === )
You can look at the official readme.txt

email-signup-for-link/email-signup-for-link.php 92% from 13 tests

This is the main PHP file of "Email Signup for Link" version 0.9.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 399 characters long)

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
No dangerous file extensions were detected108 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23266108

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin