94% custom-wp-registration-form

Code Review | Custom WP Registration Form

WordPress plugin Custom WP Registration Form scored 94% from 54 tests.

About plugin

  • Plugin page: custom-wp-registr...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.1
  • WordPress version: 5.8.1
  • First release: Jan 14, 2016
  • Latest release: Jan 14, 2016
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: adamcarter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,363 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼143.73ms] Passed 4 tests

Server-side resources used by Custom WP Registration Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1635.20 ▲14.31
Dashboard /wp-admin3.10 ▲0.0553.20 ▲5.73
Posts /wp-admin/edit.php3.15 ▲0.0546.60 ▼0.27
Add New Post /wp-admin/post-new.php5.46 ▲0.0393.19 ▼575.44
Media Library /wp-admin/upload.php3.04 ▲0.0431.61 ▼4.92

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Custom WP Registration Form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.10 ▲0.7410.79 ▲2.5045.31 ▼1.70
Dashboard /wp-admin2,970 ▲395.89 ▼0.07141.06 ▼0.70109.98 ▲6.73
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0176.32 ▲1.8291.72 ▲6.33
Add New Post /wp-admin/post-new.php1,615 ▲1121.28 ▲2.69295.12 ▼93.14109.51 ▲1.12
Media Library /wp-admin/upload.php1,810 ▲35.02 ▼0.00155.70 ▼9.56125.97 ▲2.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please 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 add_action() in wp-content/plugins/custom-wp-registration-form/custom-wp-registration-form.php:325

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: custom, secure, wordpress plugin, registration form, registration

custom-wp-registration-form/custom-wp-registration-form.php Passed 13 tests

The main PHP file in "Custom WP Registration Form" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
63 characters long description:
Registration form with wp_nonce, spam honey pot, error handling

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 plugin353 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13560232
Markdown1190121

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity10.00
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png47.32KB12.14KB▼ 74.35%
assets/screenshot-1.png34.04KB8.35KB▼ 75.46%
assets/screenshot-3.png55.57KB14.51KB▼ 73.88%