84% wp-multisite-user-sync

Code Review | WordPress Multisite User Sync/Unsync

WordPress plugin WordPress Multisite User Sync/Unsync scored84%from 54 tests.

About plugin

  • Plugin page: wp-multisite-user...
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Mar 12, 2017
  • Latest release: Aug 29, 2023
  • Number of updates: 44
  • Update frequency: every 53.5 days
  • Top authors: obtaininfotech (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

700+ active /43,710 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.81ms] Passed 4 tests

Analyzing server-side resources used by WordPress Multisite User Sync/Unsync
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.11 ▼0.34
Dashboard /wp-admin3.34 ▼0.0049.03 ▼15.35
Posts /wp-admin/edit.php3.39 ▲0.0457.66 ▲8.71
Add New Post /wp-admin/post-new.php5.94 ▲0.0682.56 ▼30.21
Media Library /wp-admin/upload.php3.27 ▲0.0439.60 ▲6.67

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

WordPress Multisite User Sync/Unsync: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.24 ▼0.121.55 ▼0.0838.03 ▼3.15
Dashboard /wp-admin2,197 ▲175.70 ▲0.0493.48 ▲7.2941.07 ▲0.71
Posts /wp-admin/edit.php2,099 ▼12.02 ▲0.0537.08 ▼3.7934.19 ▼3.57
Add New Post /wp-admin/post-new.php1,528 ▼923.04 ▲4.97676.72 ▲45.8154.78 ▼10.62
Media Library /wp-admin/upload.php1,399 ▲24.26 ▲0.09110.98 ▲5.8446.02 ▼3.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-multisite-user-sync/wp-multisite-user-sync.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 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
7 plugin tags: multisite, wordpress multisite user sync, sync user, sync, unsync user...

wp-multisite-user-sync/wp-multisite-user-sync.php Passed 13 tests

"WordPress Multisite User Sync/Unsync" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
102 characters long description:
Sync/Unsync users from one site (blog) to the other sites (blogs) in your WordPress Multisite Network.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin233 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1239213
JavaScript11020

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin