84% wp-user-merger

Code Review | WP User Merger

WordPress plugin WP User Merger scored84%from 54 tests.

About plugin

  • Plugin page: wp-user-merger
  • Plugin version: 1.5.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Aug 9, 2019
  • Latest release: Sep 26, 2023
  • Number of updates: 38
  • Update frequency: every 39.7 days
  • Top authors: fahadmahmood (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /4,884 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▲0.32ms] Passed 4 tests

Server-side resources used by WP User Merger
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2544.85 ▲2.20
Dashboard /wp-admin3.41 ▲0.1054.59 ▲2.02
Posts /wp-admin/edit.php3.52 ▲0.1650.11 ▼0.47
Add New Post /wp-admin/post-new.php5.99 ▲0.1086.52 ▼2.48
Media Library /wp-admin/upload.php3.33 ▲0.1041.79 ▲6.71
WP User Merger /wp-admin/users.php?page=wpus_merger3.5438.92

Server storage [IO: ▲4.43MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/wp-user-merger/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP User Merger
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.61 ▼0.621.66 ▼0.4043.69 ▼1.44
Dashboard /wp-admin2,225 ▲225.80 ▼0.14100.45 ▼10.7140.25 ▼1.83
Posts /wp-admin/edit.php2,101 ▲12.04 ▲0.0339.22 ▲0.6234.12 ▼0.05
Add New Post /wp-admin/post-new.php1,549 ▲423.45 ▲0.12643.64 ▲1.9172.25 ▲4.78
Media Library /wp-admin/upload.php1,404 ▲44.20 ▼0.0198.10 ▼3.8644.58 ▼2.97
WP User Merger /wp-admin/users.php?page=wpus_merger1,6019.39274.4955.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-user-merger/inc/wpus_settings.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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: merge users, user merger, woocommerce memberships

wp-user-merger/index.php 92% from 13 tests

This is the main PHP file of "WP User Merger" version 1.5.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-user-merger.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin11,462 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,546
PHP343264958
CSS55219488
PO File3117117288
JavaScript55824182

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/selection-fields.png51.88KB18.06KB▼ 65.18%
img/restore-users.png9.69KB5.70KB▼ 41.21%