83% advance-wp-user-exportimport

Code Review | Advacne WP User Export/Import

WordPress plugin Advacne WP User Export/Import scored 83% from 54 tests.

About plugin

  • Plugin page: advance-wp-user-e...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0.+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.4
  • WordPress version: 5.9.2
  • First release: Feb 29, 2020
  • Latest release: Mar 9, 2020
  • Number of updates: 4
  • Update frequency: every 2.5 days
  • Top authors: meghadhebariwala (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 316 total downloads


Plugin footprint 83% 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: ▼1.46MB] [CPU: ▼334.63ms] Passed 4 tests

This is a short check of server-side resources used by Advacne WP User Export/Import
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.98 ▼0.5315.89 ▼37.22
Dashboard /wp-admin2.90 ▼0.5014.04 ▼20.26
Posts /wp-admin/edit.php2.90 ▼0.7314.38 ▼23.60
Add New Post /wp-admin/post-new.php2.90 ▼4.0714.29 ▼1,257.43
Media Library /wp-admin/upload.php2.90 ▼0.3912.99 ▼10.46

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Advacne WP User Export/Import
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4615.91 ▲0.265.72 ▼1.322.46 ▲0.07
Dashboard /wp-admin2,904 ▲466.15 ▼0.02121.27 ▼15.98157.81 ▼9.52
Posts /wp-admin/edit.php2,703 ▲93.24 ▼0.0062.65 ▼1.36140.67 ▼2.93
Add New Post /wp-admin/post-new.php1,671 ▲1016.08 ▼6.39416.99 ▼10.65155.14 ▼12.47
Media Library /wp-admin/upload.php1,713 ▲155.48 ▼0.05141.39 ▼3.68184.78 ▼5.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/advance-wp-user-exportimport/main/classes/ADVANCEWPUSERAdmin.class.php+9
    Undefined index: _wpnonce

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/advance-wp-user-exportimport/index.php

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


Plugin configuration 86% from 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
4 plugin tags: user, export user, export meta, import user

advance-wp-user-exportimport/index.php 69% from 13 tests

This is the main PHP file of "Advacne WP User Export/Import" version 1.0, 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:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "5.2")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advance-wp-user-exportimport.php" instead of "index.php")
  • Requires PHP: Periods and digits should be used for the required version number (ex. "7.0" instead of "7.0.")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,953 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
No PNG images were found in this plugin