84% email-as-username-for-wp-members

Code Review | Email as Username for WP-Members

WordPress plugin Email as Username for WP-Members scored84%from 54 tests.

About plugin

  • Plugin page: email-as-username...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0.1
  • WordPress version: 6.3.1
  • First release: May 6, 2014
  • Latest release: Dec 5, 2014
  • Number of updates: 44
  • Update frequency: every 4.8 days
  • Top authors: Stevish (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /7,872 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.04ms] Passed 4 tests

This is a short check of server-side resources used by Email as Username for WP-Members
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.89 ▲0.98
Dashboard /wp-admin3.35 ▲0.0049.43 ▼12.08
Posts /wp-admin/edit.php3.40 ▲0.0449.75 ▼0.93
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.30 ▼20.14
Media Library /wp-admin/upload.php3.27 ▲0.0437.31 ▲3.14
Email as Username for WP-Members /wp-admin/options-general.php?page=email_as_username_for_wp-members3.2432.29

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Email as Username for WP-Members
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.38 ▼0.011.51 ▼0.0139.16 ▲0.19
Dashboard /wp-admin2,196 ▲195.51 ▼0.0779.53 ▼7.8343.43 ▲2.80
Posts /wp-admin/edit.php2,104 ▲41.95 ▲0.0141.73 ▲0.8736.79 ▲1.45
Add New Post /wp-admin/post-new.php1,528 ▲223.55 ▲0.41604.37 ▼86.0956.55 ▲0.11
Media Library /wp-admin/upload.php1,404 ▲74.22 ▲0.0497.99 ▼0.7342.26 ▼0.66
Email as Username for WP-Members /wp-admin/options-general.php?page=email_as_username_for_wp-members7972.0324.0124.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/email-as-username-for-wp-members/email-as-username-for-wp-members.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
2 plugin tags: users, email as username

email-as-username-for-wp-members/email-as-username-for-wp-members.php 92% from 13 tests

The main file in "Email as Username for WP-Members" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 371 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin207 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP154126174
PO File16833

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected