54% wp-remote-users-sync

Code Review | WP Remote Users Sync

WordPress plugin WP Remote Users Sync scored54%from 54 tests.

About plugin

  • Plugin page: wp-remote-users-sync
  • Plugin version: 2.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2020
  • Latest release: Nov 30, 2023
  • Number of updates: 47
  • Update frequency: every 28.9 days
  • Top authors: frogerme (100%)

Code review

54 tests

User reviews

62 reviews

Install metrics

8,000+ active /74,802 total downloads

Benchmarks

Plugin footprint 30% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.39MB] [CPU: ▼1.55ms] Passed 4 tests

An overview of server-side resources used by WP Remote Users Sync
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4442.97 ▲1.36
Dashboard /wp-admin3.73 ▲0.4247.96 ▼3.51
Posts /wp-admin/edit.php3.78 ▲0.4248.86 ▲2.91
Add New Post /wp-admin/post-new.php6.24 ▲0.3693.57 ▼6.76
Media Library /wp-admin/upload.php3.59 ▲0.3637.50 ▲2.72
WP Remote Users Sync /wp-admin/options-general.php?page=wprus3.7338.73

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 108 new files
Database: 2 new tables, 6 new options
New tables
wp_wprus_nonce
wp_wprus_logs
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP Remote Users Sync
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9514.61 ▼0.031.85 ▲0.1936.65 ▼12.60
Dashboard /wp-admin2,219 ▲425.52 ▼0.0295.65 ▼3.8839.17 ▼2.65
Posts /wp-admin/edit.php2,127 ▲272.11 ▲0.0940.93 ▲3.9836.06 ▲2.85
Add New Post /wp-admin/post-new.php1,552 ▲2618.23 ▼4.57634.63 ▲16.0654.85 ▼0.72
Media Library /wp-admin/upload.php1,427 ▲274.19 ▲0.0499.74 ▲1.8942.48 ▼0.12
WP Remote Users Sync /wp-admin/options-general.php?page=wprus2,9052.3750.6232.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Error in wp-content/plugins/wp-remote-users-sync/uninstall.php+18
    Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/wp-remote-users-sync/uninstall.php:18
    Stack trace:
    #0 wp-admin/includes/plugin.php(1245): include_once()
    #1 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • Incomplete uninstall procedure, leaving 108 files (0.80MB) in the plugin directory
    • (new file) inc/api/class-wprus-api-abstract.php
    • (new file) functions.php
    • (new file) css/admin/main.css
    • (new file) inc/api/class-wprus-api-delete.php
    • (new file) inc/api/class-wprus-api-create.php
    • (new file) css/lib/select2/select2.css
    • (new file) css/admin/main.min.css
    • (new file) README.md
    • (new file) css/lib/select2/select2.scss
    • (new file) LICENSE
    • ...
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_wprus_nonce
    • wp_wprus_logs
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wprus
    • > Notice in wp-content/plugins/wp-remote-users-sync/inc/class-wprus-logger.php+101
    Trying to access array offset on value of type null

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: share login, sync, multiple sites

wp-remote-users-sync/wprus.php 85% from 13 tests

The principal PHP file in "WP Remote Users Sync" v. 2.0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-remote-users-sync.php" instead of "wprus.php")

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
Everything looks great! No dangerous files found in this plugin13,665 lines of code in 104 files:
LanguageFilesBlank linesComment linesLines of code
PHP351,1524675,520
JavaScript631,4344135,429
PO File1296374999
Markdown12850944
Sass11040538
CSS3520235

PHP code Passed 2 tests

Analyzing 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.39
Average class complexity36.44
▷ Minimum class complexity7.00
▷ Maximum class complexity138.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes16.25%
▷ Concrete classes1593.75%
▷ Final classes00.00%
Methods193
▷ Static methods4020.73%
▷ Public methods14374.09%
▷ Protected methods5025.91%
▷ Private methods00.00%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants10
▷ Global constants330.00%
▷ Class constants770.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected