10% confirm-user-registration

Code Review | Confirm User Registration

WordPress plugin Confirm User Registration scored10%from 54 tests.

About plugin

  • Plugin page: confirm-user-regi...
  • Plugin version: 2.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Mar 13, 2008
  • Latest release: May 21, 2014
  • Number of updates: 35
  • Update frequency: every 64.6 days
  • Top authors: Horttcore (54.29%)xzeed (48.57%)

Code review

54 tests

User reviews

6 reviews

Install metrics

900+ active /44,292 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > User deprecated in wp-includes/functions.php+5453
    Function update_usermeta is deprecated since version 3.0.0! Use update_user_meta() instead.

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

Analyzing server-side resources used by Confirm User Registration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.82 ▲0.46
Dashboard /wp-admin3.32 ▲0.0247.06 ▲2.78
Posts /wp-admin/edit.php3.37 ▲0.0146.51 ▼2.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.72 ▼12.17
Media Library /wp-admin/upload.php3.24 ▲0.0134.99 ▲2.44
Confirm User Registration /wp-admin/users.php?page=confirm-user-registration3.1929.18

Server storage [IO: ▲0.30MB] [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: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
confirm-user-registration
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Confirm User Registration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.57 ▼0.711.61 ▲0.0243.27 ▲5.10
Dashboard /wp-admin2,213 ▲255.90 ▲0.0499.07 ▼14.4837.87 ▼6.55
Posts /wp-admin/edit.php2,096 ▲41.99 ▼0.0539.15 ▲1.8635.06 ▲4.54
Add New Post /wp-admin/post-new.php1,536 ▲323.24 ▼0.05662.08 ▲25.1051.00 ▼7.40
Media Library /wp-admin/upload.php1,395 ▲134.19 ▲0.03103.18 ▲3.1148.63 ▲4.44
Confirm User Registration /wp-admin/users.php?page=confirm-user-registration8591.7027.9528.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/users.php?page=confirm-user-registration
    • > Notice in wp-content/plugins/confirm-user-registration/confirm-user-registration.php+456
    Undefined index: tab

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Screenshot of the auth/block users tab), #2 (Screenshot of the settings tab), #3 (Screenshot of login error)
Please take inspiration from this readme.txt

confirm-user-registration/confirm-user-registration.php Passed 13 tests

This is the main PHP file of "Confirm User Registration" version 2.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
104 characters long description:
Admins have to confirm a user registration - a notification will be send when the account gets activated

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin828 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP2152183403
PO File4145285388
JavaScript13220
CSS13017

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity67.00
▷ Minimum class complexity67.00
▷ Maximum class complexity67.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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