84% easy-user-registration

Code Review | Easy User Registration

WordPress plugin Easy User Registration scored 84% from 54 tests.

About plugin

  • Plugin page: easy-user-registr...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 21, 2022
  • Latest release: Sep 21, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: encoresky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 200 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by Easy User Registration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.88 ▼2.78
Dashboard /wp-admin3.32 ▲0.0147.36 ▲1.40
Posts /wp-admin/edit.php3.37 ▲0.0150.58 ▲2.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.83 ▲12.22
Media Library /wp-admin/upload.php3.24 ▲0.0136.64 ▲4.52

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Easy User Registration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲12614.12 ▲0.866.32 ▲4.7040.11 ▲1.37
Dashboard /wp-admin2,215 ▲125.85 ▲0.02101.48 ▲2.0142.02 ▲1.07
Posts /wp-admin/edit.php2,098 ▲62.00 ▼0.0741.39 ▲0.1135.50 ▼1.94
Add New Post /wp-admin/post-new.php1,523 ▼1023.36 ▲0.39676.90 ▼12.1261.19 ▲10.89
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0095.70 ▼5.1641.70 ▼3.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function check_ajax_referer() in wp-content/plugins/easy-user-registration/front-end/includes/ajax/eur-register-user-form-callback.php:3

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
No plugin tags provided

easy-user-registration/easy-user-registration.php 92% from 13 tests

"Easy User Registration" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 188 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected684 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP646125239
CSS1292156
PO File24444118
JavaScript144107
JSON20038
SVG10026

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin