80% custom-registration-and-login-forms-with-new-recaptcha

Code Review | Custom Registration and Custom Login Forms with New Recaptcha

WordPress plugin Custom Registration and Custom Login Forms with New Recaptcha scored 80% from 54 tests.

About plugin

  • Plugin page: custom-registrati...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.3
  • WordPress version: 5.9.2
  • First release: Jun 18, 2015
  • Latest release: Nov 13, 2017
  • Number of updates: 18
  • Update frequency: every 49.0 days
  • Top authors: commercepundit (94.44%)instals (11.11%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active / 3,526 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.67MB] [CPU: ▼288.89ms] Passed 4 tests

Server-side resources used by Custom Registration and Custom Login Forms with New Recaptcha
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.15 ▲1.6464.60 ▲11.00
Dashboard /wp-admin5.12 ▲1.7244.75 ▲11.20
Posts /wp-admin/edit.php5.35 ▲1.7145.83 ▲8.60
Add New Post /wp-admin/post-new.php8.61 ▲1.62103.26 ▼1,183.52
Media Library /wp-admin/upload.php5.10 ▲1.8133.53 ▲8.36
Freemius Debug [v.1.2.1] /wp-admin/admin.php?page=freemius5.1031.51

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 227 new files
Database: no new tables, 4 new options
New WordPress options
fs_active_plugins
fs_accounts
fs_api_cache
fs_debug_mode

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Registration and Custom Login Forms with New Recaptcha
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,853 ▲9915.95 ▲0.285.89 ▲0.053.04 ▲0.21
Dashboard /wp-admin2,946 ▲856.14 ▼0.06117.17 ▼15.42171.17 ▲9.79
Posts /wp-admin/edit.php2,747 ▲593.24 ▲0.0264.78 ▼2.78157.75 ▲10.24
Add New Post /wp-admin/post-new.php1,902 ▲19122.27 ▲1.46446.08 ▼14.24158.04 ▲2.51
Media Library /wp-admin/upload.php1,753 ▲525.53 ▲0.00138.33 ▼2.19201.87 ▲8.62
Freemius Debug [v.1.2.1] /wp-admin/admin.php?page=freemius1,3072.4454.15129.07

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/custom-registration-and-login-forms-with-new-recaptcha/freemius/includes/class-freemius.php+4088
    First parameter must either be an object or the name of an existing class
  • Zombie WordPress options were found after uninstall: 4 options
    • fs_api_cache
    • fs_active_plugins
    • fs_debug_mode
    • fs_accounts

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 | 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
Congratulations! This plugin passed the SRP test

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

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed: The official readme.txt is a good inspiration

custom-registration-and-login-forms-with-new-recaptcha/custom-registration-and-login-forms-with-new-recaptcha.php Passed 13 tests

Analyzing the main PHP file in "Custom Registration and Custom Login Forms with New Recaptcha" version 1.1
72 characters long description:
Provides simple frontend registration and login forms with new recaptcha

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin16,793 lines of code in 107 files:
LanguageFilesBlank linesComment linesLines of code
PHP713,1057,45113,118
PO File26506591,608
Sass15248801,558
JavaScript43763229
Markdown1590191
JSON20042
CSS101025
YAML22022

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity41.97
▷ Minimum class complexity1.00
▷ Maximum class complexity943.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes70
▷ Abstract classes45.71%
▷ Concrete classes6694.29%
▷ Final classes00.00%
Methods1,238
▷ Static methods17213.89%
▷ Public methods90473.02%
▷ Protected methods241.94%
▷ Private methods31025.04%
Functions118
▷ Named functions118100.00%
▷ Anonymous functions00.00%
Constants182
▷ Global constants14881.32%
▷ Class constants3418.68%
▷ Public constants34100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/wordpress-sdk-master/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%