94% no-user-enumeration

Code Review | No User Enumeration

WordPress plugin No User Enumeration scored 94% from 54 tests.

About plugin

  • Plugin page: no-user-enumeration
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-5.2.4
  • WordPress version: 5.8.1
  • First release: Apr 4, 2016
  • Latest release: Oct 23, 2019
  • Number of updates: 30
  • Update frequency: every 43.3 days
  • Top authors: carlost800 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 2,566 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by No User Enumeration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1442.87 ▲16.82
Dashboard /wp-admin3.09 ▲0.0355.48 ▼0.26
Posts /wp-admin/edit.php3.14 ▲0.0357.13 ▲2.66
Add New Post /wp-admin/post-new.php5.45 ▲0.01103.53 ▼568.81
Media Library /wp-admin/upload.php3.03 ▲0.0341.38 ▼2.34

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for No User Enumeration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10715.98 ▲0.259.00 ▼1.1158.44 ▲1.67
Dashboard /wp-admin2,970 ▲365.91 ▼0.02152.52 ▼26.98129.84 ▼7.89
Posts /wp-admin/edit.php2,737 ▼22.72 ▼0.0173.71 ▼6.60103.15 ▼9.04
Add New Post /wp-admin/post-new.php1,683 ▲10217.52 ▼0.65422.34 ▼17.80131.57 ▲2.05
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.00184.80 ▲13.86144.31 ▲10.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/no-user-enumeration/no-user-enumeration.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

no-user-enumeration/no-user-enumeration.php Passed 13 tests

"No User Enumeration" version 1.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
114 characters long description:
Disallow user enumeration for security. Also, in administrators posts hide the username unless it have a nickname.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin157 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1279157

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin