10% simple-register-users-form

Code Review | Simple User Register Form

WordPress plugin Simple User Register Form scored10%from 54 tests.

About plugin

  • Plugin page: simple-register-u...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.7.3
  • WordPress version: 6.3.1
  • First release: May 23, 2017
  • Latest release: May 23, 2017
  • Number of updates: 9
  • Update frequency: every 0.9 days
  • Top authors: ifourkuldeep1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /753 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SimpleRegisterUsersForm::my_plugin_create_db() should not be called statically

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.58ms] Passed 4 tests

Server-side resources used by Simple User Register Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.67 ▲0.38
Dashboard /wp-admin3.32 ▼0.0352.52 ▼15.43
Posts /wp-admin/edit.php3.37 ▲0.0147.73 ▼2.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.16 ▼20.61
Media Library /wp-admin/upload.php3.24 ▲0.0137.77 ▲1.99

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables
wp_simpleregisterusersform
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Simple User Register Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲14613.79 ▼0.768.22 ▲6.3942.64 ▲3.33
Dashboard /wp-admin2,216 ▲365.63 ▲0.0584.55 ▼7.7340.34 ▼1.73
Posts /wp-admin/edit.php2,118 ▲182.02 ▲0.0033.71 ▼7.2635.26 ▼2.91
Add New Post /wp-admin/post-new.php1,541 ▲1523.26 ▲0.22709.09 ▲62.9055.75 ▲4.77
Media Library /wp-admin/upload.php1,412 ▲154.20 ▼0.0999.79 ▼4.3045.84 ▲0.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SimpleRegisterUsersForm::sruf_deactivation_hook() should not be called statically
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: The official readme.txt is a good inspiration

simple-register-users-form/simple-register-users-form.php Passed 13 tests

The main file in "Simple User Register Form" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
66 characters long description:
Simple user register form create exit register users in your site.

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
No dangerous file extensions were detected634 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP113368497
CSS18387
JavaScript18250

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin