79% wp-custom-user-registration

Code Review | WP CUSTOM USER REGISTRATION

WordPress plugin WP CUSTOM USER REGISTRATION scored79%from 54 tests.

About plugin

  • Plugin page: wp-custom-user-re...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 29, 2019
  • Latest release: Aug 12, 2019
  • Number of updates: 15
  • Update frequency: every 1.1 days
  • Top authors: yarddiant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,811 total downloads

Benchmarks

Plugin footprint 65% 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.04MB] [CPU: ▼3.37ms] Passed 4 tests

An overview of server-side resources used by WP CUSTOM USER REGISTRATION
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.55 ▲6.77
Dashboard /wp-admin3.35 ▲0.0446.30 ▼1.35
Posts /wp-admin/edit.php3.40 ▲0.0443.53 ▼1.12
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.20 ▼13.43
Media Library /wp-admin/upload.php3.27 ▲0.0437.19 ▲2.41

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: 1 new table, 6 new options
New tables
wp_yarddian_registration
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP CUSTOM USER REGISTRATION
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.61 ▲0.331.62 ▼0.0844.48 ▲4.15
Dashboard /wp-admin2,205 ▲285.55 ▼0.0282.83 ▼4.8337.29 ▼5.92
Posts /wp-admin/edit.php2,116 ▲162.01 ▲0.0735.09 ▼0.3433.89 ▼5.13
Add New Post /wp-admin/post-new.php1,549 ▲2123.02 ▼0.13681.55 ▲26.7352.62 ▼1.48
Media Library /wp-admin/upload.php1,410 ▲104.27 ▲0.0598.87 ▼5.6544.11 ▼3.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_yarddian_registration
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

wp-custom-user-registration/yardd-registration-fields.php 92% from 13 tests

"WP CUSTOM USER REGISTRATION" version 1.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:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-custom-user-registration.php" instead of "yardd-registration-fields.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin169 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16019169

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin