90% multisite-new-user-form

Code Review | Multisite New User Form

WordPress plugin Multisite New User Form scored90%from 54 tests.

About plugin

  • Plugin page: multisite-new-use...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 20, 2018
  • Latest release: Mar 21, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: ironleg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /730 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Multisite New User Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.73 ▲3.76
Dashboard /wp-admin3.31 ▲0.0043.17 ▼0.34
Posts /wp-admin/edit.php3.36 ▲0.0044.50 ▼0.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.47 ▼11.76
Media Library /wp-admin/upload.php3.23 ▲0.0031.87 ▼2.00

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Multisite New User Form
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.181.66 ▼0.0743.22 ▲1.86
Dashboard /wp-admin2,206 ▲184.91 ▲0.01109.20 ▲0.2448.98 ▲8.81
Posts /wp-admin/edit.php2,089 ▲32.14 ▲0.1238.83 ▲3.2133.55 ▲1.35
Add New Post /wp-admin/post-new.php1,514 ▼2317.42 ▼5.63640.17 ▼29.0654.60 ▲3.44
Media Library /wp-admin/upload.php1,382 ▼94.23 ▲0.03100.10 ▼2.0942.32 ▼2.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: new, password, network, user, multisite

multisite-new-user-form/multisite-new-user-form.php Passed 13 tests

The main file in "Multisite New User Form" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
81 characters long description:
This plugin allows you to create users with custom password on multisite website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin123 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2229123

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin