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

Code Review | Add user 2 in 1

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

About plugin

  • Plugin page: add-user-form-2-in-1
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • 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 / 938 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.76ms] Passed 4 tests

This is a short check of server-side resources used by Add user 2 in 1
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1736.36 ▼7.78
Dashboard /wp-admin3.34 ▲0.0445.26 ▼4.31
Posts /wp-admin/edit.php3.39 ▲0.0447.43 ▼2.34
Add New Post /wp-admin/post-new.php5.94 ▲0.0682.95 ▼12.61
Media Library /wp-admin/upload.php3.27 ▲0.0434.52 ▼0.85

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Add user 2 in 1
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7013.72 ▼0.651.60 ▼0.1838.66 ▼2.98
Dashboard /wp-admin2,214 ▲264.89 ▼0.9697.35 ▼2.9339.92 ▼4.87
Posts /wp-admin/edit.php2,073 ▼192.09 ▲0.0934.40 ▼11.2731.18 ▼4.01
Add New Post /wp-admin/post-new.php1,534 ▼423.58 ▲0.12668.85 ▼8.3556.24 ▼4.96
Media Library /wp-admin/upload.php1,393 ▲84.19 ▲0.0495.43 ▼7.3740.35 ▼5.00

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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
    • > 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
      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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (screenshot-1.png)
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 primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected234 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14320203
JavaScript19231

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic 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
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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 are no PNG files in this plugin