94% add-multiple-user

Code Review | Add Multiple User

WordPress plugin Add Multiple User scored 94% from 54 tests.

About plugin

  • Plugin page: add-multiple-user
  • Plugin version: 2.00
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 5.9.2
  • First release: Feb 6, 2019
  • Latest release: Jul 4, 2021
  • Number of updates: 27
  • Update frequency: every 32.6 days
  • Top authors: Katsushi Kawamori (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 2,728 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼302.09ms] Passed 4 tests

Analyzing server-side resources used by Add Multiple User
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2351.81 ▲2.35
Dashboard /wp-admin3.58 ▲0.1735.23 ▲2.09
Posts /wp-admin/edit.php3.81 ▲0.1637.72 ▲0.41
Add New Post /wp-admin/post-new.php7.05 ▲0.0792.90 ▼1,209.89
Media Library /wp-admin/upload.php3.46 ▲0.1624.16 ▼0.98
Add Multiple User /wp-admin/options-general.php?page=addmultipleuser3.4323.81

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
addmultipleuser

Browser metrics Passed 4 tests

Add Multiple User: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,754 ▼415.66 ▲0.126.17 ▼1.432.06 ▼0.55
Dashboard /wp-admin2,879 ▲186.12 ▼0.05118.94 ▼22.13155.50 ▼17.79
Posts /wp-admin/edit.php2,693 ▼13.24 ▼0.0064.68 ▲0.99141.25 ▼2.46
Add New Post /wp-admin/post-new.php1,664 ▼4716.69 ▼4.72423.98 ▼2.79159.74 ▼5.47
Media Library /wp-admin/upload.php1,700 ▲25.52 ▼0.01144.50 ▲2.38186.84 ▲1.25
Add Multiple User /wp-admin/options-general.php?page=addmultipleuser1,5052.5457.32111.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/add-multiple-user/lib/class-addmultipleuserregist.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-multiple-user/lib/class-addmultipleuser.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-multiple-user/lib/class-addmultipleuseradmin.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/add-multiple-user/lib/class-addmultipleuserregist.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: roles, multiple, users, register

add-multiple-user/addmultipleuser.php 92% from 13 tests

The primary PHP file in "Add Multiple User" version 2.00 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-multiple-user.php" instead of "addmultipleuser.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin682 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5144294682

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity32.67
▷ Minimum class complexity3.00
▷ Maximum class complexity60.00
Average method complexity4.65
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin