83% disabling-user-enumeration

Code Review | Disable User Enumeration

WordPress plugin Disable User Enumeration scored83%from 54 tests.

About plugin

  • Plugin page: disabling-user-en...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.3
  • WordPress version: 6.3.1
  • First release: Dec 16, 2020
  • Latest release: Dec 16, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: incredibledeveloperr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /430 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.70ms] Passed 4 tests

This is a short check of server-side resources used by Disable User Enumeration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0046.44 ▲2.11
Dashboard /wp-admin3.31 ▲0.0046.61 ▼7.87
Posts /wp-admin/edit.php3.36 ▲0.0047.03 ▼10.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.24 ▼14.26
Media Library /wp-admin/upload.php3.23 ▲0.0036.54 ▼2.55

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Disable User Enumeration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.34 ▲0.421.76 ▼0.1045.95 ▼2.13
Dashboard /wp-admin2,195 ▲185.57 ▼0.0191.94 ▼2.5039.94 ▼3.49
Posts /wp-admin/edit.php2,103 ▲31.95 ▼0.0635.34 ▼4.2933.60 ▼8.98
Add New Post /wp-admin/post-new.php1,528 ▼023.24 ▲0.21635.65 ▼55.1955.53 ▼1.97
Media Library /wp-admin/upload.php1,400 ▲34.11 ▼0.0797.28 ▼5.2544.78 ▼0.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disabling-user-enumeration/disable-user-enumeration.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: rest api user enumeration, user enumeration, disable user enumeration

disabling-user-enumeration/disable-user-enumeration.php 69% from 13 tests

The entry point to "Disable User Enumeration" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("disabling-user-enumeration.php" instead of "disable-user-enumeration.php")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.6" instead of "7.2")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101828

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.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