84% network-user-management

Code Review | Network User Management

WordPress plugin Network User Management scored84%from 54 tests.

About plugin

  • Plugin page: network-user-mana...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Sep 16, 2013
  • Latest release: Sep 16, 2013
  • Number of updates: 3
  • Update frequency: every 4.3 days
  • Top authors: henrichro (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,646 total downloads

Benchmarks

Plugin footprint 83% from 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.01MB] [CPU: ▼6.49ms] Passed 4 tests

An overview of server-side resources used by Network User Management
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.13 ▲1.69
Dashboard /wp-admin3.31 ▲0.0146.25 ▼4.14
Posts /wp-admin/edit.php3.36 ▲0.0147.70 ▼4.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.03 ▼18.79
Media Library /wp-admin/upload.php3.24 ▲0.0136.63 ▲1.07

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Network User Management
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.23 ▼0.041.58 ▼0.3140.22 ▼3.68
Dashboard /wp-admin2,197 ▲175.59 ▼0.0586.59 ▼1.3139.38 ▼9.91
Posts /wp-admin/edit.php2,102 ▲22.02 ▼0.1236.92 ▼3.7632.65 ▼6.05
Add New Post /wp-admin/post-new.php1,537 ▲823.25 ▼0.28688.43 ▲60.5452.89 ▲3.61
Media Library /wp-admin/upload.php1,402 ▲24.20 ▼0.02101.63 ▼0.6548.01 ▲4.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/network-user-management/network-user-management.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: users, multisite, roles

network-user-management/network-user-management.php Passed 13 tests

"Network User Management" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
124 characters long description:
Synchronise users and user roles from main Blog, automatically add users to each site in your WordPress network (Multisite).

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
There were no executable files found in this plugin127 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11113126
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected