84% wpm-user-sync

Code Review | WPM User Sync

WordPress plugin WPM User Sync scored84%from 54 tests.

About plugin

  • Plugin page: wpm-user-sync
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.2-5.6.1
  • WordPress version: 6.3.1
  • First release: Apr 9, 2020
  • Latest release: Feb 7, 2021
  • Number of updates: 6
  • Update frequency: every 50.7 days
  • Top authors: pablodiloreto (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /2,309 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.16ms] Passed 4 tests

Server-side resources used by WPM User Sync
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0039.38 ▼10.83
Dashboard /wp-admin3.35 ▲0.0048.55 ▼4.67
Posts /wp-admin/edit.php3.40 ▲0.0050.06 ▼0.79
Add New Post /wp-admin/post-new.php5.93 ▲0.0092.28 ▼6.94
Media Library /wp-admin/upload.php3.27 ▲0.0032.46 ▼6.18

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPM User Sync
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.331.66 ▼0.0544.46 ▲0.89
Dashboard /wp-admin2,192 ▲125.53 ▼0.1489.24 ▼3.3637.05 ▼6.63
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0439.03 ▲2.1835.58 ▼5.29
Add New Post /wp-admin/post-new.php1,526 ▼223.31 ▲0.25648.00 ▲1.6150.22 ▼1.29
Media Library /wp-admin/upload.php1,403 ▲34.26 ▲0.1095.15 ▼17.6640.97 ▼6.79

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wpm-user-sync/core/wpmus-variables.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wpm-user-sync/core/wpmus-variables.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: sync, multisite, multisite user, wpm user sync, user sync

wpm-user-sync/wpm-user-sync.php Passed 13 tests

Analyzing the main PHP file in "WPM User Sync" version 1.1.1
140 characters long description:
WPM User Sync is THE plugin that allow you to configure & automate users sync between wordpress sites when you are using a multi-site setup.

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
No dangerous file extensions were detected625 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP1220438610
CSS11015

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions38
▷ Named functions38100.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
PNG images were not found in this plugin