84% ms-registration

Code Review | Custom Login and Registration

WordPress plugin Custom Login and Registration scored84%from 54 tests.

About plugin

  • Plugin page: ms-registration
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-5.1
  • WordPress version: 6.3.1
  • First release: Feb 5, 2019
  • Latest release: Feb 26, 2019
  • Number of updates: 4
  • Update frequency: every 21.0 days
  • Top authors: alphaefficiencyteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /563 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▲1.76ms] Passed 4 tests

An overview of server-side resources used by Custom Login and Registration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1746.98 ▲5.13
Dashboard /wp-admin3.47 ▲0.1752.33 ▲1.08
Posts /wp-admin/edit.php3.59 ▲0.2346.28 ▼2.59
Add New Post /wp-admin/post-new.php6.08 ▲0.1996.95 ▲4.74
Media Library /wp-admin/upload.php3.40 ▲0.1742.57 ▲3.80
Design /wp-admin/admin.php?page=ms_registration_design_options3.3840.88
MS Registration /wp-admin/admin.php?page=ms-registration3.3739.07

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Login and Registration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲16313.48 ▼0.878.41 ▲6.7945.08 ▲3.00
Dashboard /wp-admin2,222 ▲415.56 ▼0.1796.07 ▼2.8043.65 ▼0.67
Posts /wp-admin/edit.php2,127 ▲242.04 ▲0.0134.73 ▼5.6232.75 ▼5.32
Add New Post /wp-admin/post-new.php1,549 ▲2323.08 ▼0.02661.08 ▼29.5647.64 ▼14.47
Media Library /wp-admin/upload.php1,427 ▲304.19 ▼0.03106.46 ▼4.4246.09 ▲0.33
Design /wp-admin/admin.php?page=ms_registration_design_options1,0523.0146.2826.80
MS Registration /wp-admin/admin.php?page=ms-registration8882.0129.4728.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ms-registration/public/partials/ms-registration-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Registration page input creation), #2 (Login and Registration page design chnage), #3 (URL change)
Please take inspiration from this readme.txt

ms-registration/ms-registration.php Passed 13 tests

The main PHP script in "Custom Login and Registration" version 1.0.0 is automatically included on every request by WordPress
37 characters long description:
Customize WordPress registration form

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
There were no executable files found in this plugin881 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP14229540844
CSS21831
JavaScript24546

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.PNG65.44KB23.37KB▼ 64.29%
assets/screenshot-3.PNG21.08KB11.32KB▼ 46.30%
assets/screenshot-1.PNG19.70KB9.66KB▼ 50.99%