84% users-without-email

Code Review | Users Without Email

WordPress plugin Users Without Email scored 84% from 54 tests.

About plugin

  • Plugin page: users-without-email
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-4.2.1
  • WordPress version: 5.8.1
  • First release: Mar 6, 2015
  • Latest release: Apr 28, 2015
  • Number of updates: 4
  • Update frequency: every 13.0 days
  • Top authors: tesladethray (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 1,573 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.02MB] [CPU: ▼169.98ms] Passed 4 tests

Server-side resources used by Users Without Email
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0333.78 ▲2.07
Dashboard /wp-admin3.08 ▲0.0344.99 ▲1.62
Posts /wp-admin/edit.php3.19 ▲0.0945.13 ▲1.23
Add New Post /wp-admin/post-new.php5.44 ▲0.0192.63 ▼683.29
Media Library /wp-admin/upload.php3.03 ▲0.0232.19 ▲0.51

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 2 new options
New WordPress options
UsersWithoutEmail_Plugin__version
UsersWithoutEmail_Plugin__installed

Browser metrics Passed 4 tests

Checking browser requirements for Users Without Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.98 ▲0.468.45 ▼0.0447.70 ▲0.27
Dashboard /wp-admin2,970 ▲395.87 ▼0.12135.25 ▼5.42118.38 ▲2.20
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0062.35 ▼0.5993.92 ▲5.55
Add New Post /wp-admin/post-new.php1,672 ▲218.78 ▼0.46389.01 ▼14.32109.40 ▲6.89
Media Library /wp-admin/upload.php1,807 ▼35.05 ▲0.04145.18 ▲3.18123.00 ▲1.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 2 options in the database
    • UsersWithoutEmail_Plugin__version
    • UsersWithoutEmail_Plugin__installed

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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 plugin_basename() in wp-content/plugins/users-without-email/users-without-email.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
  • Screenshots: Screenshot #1 (Here's how the registaration screen looks with the plugin activated:) image not found
The official readme.txt is a good inspiration

users-without-email/users-without-email.php Passed 13 tests

The main PHP file in "Users Without Email" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
Allows users to sign up without needing to enter an email address

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
There were no executable files found in this plugin565 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8147409565

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity1.66
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods84
▷ Static methods00.00%
▷ Public methods6071.43%
▷ Protected methods2428.57%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png22.08KB9.04KB▼ 59.06%