84% as-password-field-in-default-registration-form

Code Review | AS Password Field In Default Registration Form

WordPress plugin AS Password Field In Default Registration Form scored84%from 54 tests.

About plugin

  • Plugin page: as-password-field...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.2
  • WordPress version: 6.3.1
  • First release: Mar 18, 2020
  • Latest release: Aug 5, 2020
  • Number of updates: 3
  • Update frequency: every 46.7 days
  • Top authors: aksharsoftsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /906 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.01MB] [CPU: ▼4.81ms] Passed 4 tests

This is a short check of server-side resources used by AS Password Field In Default Registration Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.71 ▼12.87
Dashboard /wp-admin3.31 ▲0.0161.17 ▲5.78
Posts /wp-admin/edit.php3.36 ▲0.0151.21 ▲7.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.34 ▼16.40
Media Library /wp-admin/upload.php3.24 ▲0.0138.13 ▲4.27

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

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

Browser metrics Passed 4 tests

A check of browser resources used by AS Password Field In Default Registration Form
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.001.87 ▲0.1446.02 ▲0.12
Dashboard /wp-admin2,195 ▲215.59 ▼0.0890.88 ▼6.1940.43 ▼1.95
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0436.12 ▼6.2436.45 ▼0.19
Add New Post /wp-admin/post-new.php1,526 ▼223.12 ▲0.02674.71 ▲3.6154.54 ▼10.99
Media Library /wp-admin/upload.php1,400 ▼04.24 ▼0.00103.47 ▼3.7545.65 ▼0.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/as-password-field-in-default-registration-form/as-password-field-default-registration.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: password field, registration, password

as-password-field-in-default-registration-form/as-password-field-default-registration.php 92% from 13 tests

This is the main PHP file of "AS Password Field In Default Registration Form" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("as-password-field-in-default-registration-form.php" instead of "as-password-field-default-registration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12715

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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 files were detected