94% add-user-form-2-in-1

Code Review | Add user 2 in 1

WordPress plugin Add user 2 in 1 scored 94% from 54 tests.

About plugin

  • Plugin page: add-user-form-2-in-1
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Nov 22, 2014
  • Latest release: Nov 22, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: huuhabro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 804 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼301.65ms] Passed 4 tests

Analyzing server-side resources used by Add user 2 in 1
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2158.92 ▲9.59
Dashboard /wp-admin3.45 ▲0.0438.66 ▲3.35
Posts /wp-admin/edit.php3.68 ▲0.0438.82 ▼1.17
Add New Post /wp-admin/post-new.php6.92 ▼0.0598.84 ▼1,206.33
Media Library /wp-admin/upload.php3.34 ▲0.0423.18 ▼2.44

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Add user 2 in 1: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲6816.21 ▲0.596.48 ▲0.402.23 ▼0.00
Dashboard /wp-admin2,902 ▲486.07 ▼0.12119.72 ▼23.17158.07 ▼6.99
Posts /wp-admin/edit.php2,698 ▲103.25 ▲0.0164.72 ▲1.57144.02 ▲4.69
Add New Post /wp-admin/post-new.php1,673 ▼3819.24 ▼1.54392.08 ▼58.81154.03 ▼9.95
Media Library /wp-admin/upload.php1,705 ▲75.54 ▼0.01150.19 ▲2.80188.43 ▲0.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/admin.php): failed to open stream: No such file or directory in wp-content/plugins/add-user-form-2-in-1/add-form.php on line 12
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/add-user-form-2-in-1/add-form.php on line 12
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/add-user-form-2-in-1/add-form.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (screenshot-1.png) image missing
You can take inspiration from this readme.txt

add-user-form-2-in-1/add-form.php 92% from 13 tests

"Add user 2 in 1" version 1.00's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("add-user-form-2-in-1.php" instead of "add-form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin234 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity5.60
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
There were not PNG files found in your plugin