73% advance-wp-user-exportimport

Code Review | Advacne WP User Export/Import

WordPress plugin Advacne WP User Export/Import scored73%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: 6.3.1
  • 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 /548 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼1.20MB] [CPU: ▼41.85ms] Passed 4 tests

This is a short check of server-side resources used by Advacne WP User Export/Import
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.6913.06 ▼26.67
Dashboard /wp-admin2.82 ▼0.4914.99 ▼31.74
Posts /wp-admin/edit.php2.82 ▼0.5416.33 ▼27.91
Add New Post /wp-admin/post-new.php2.82 ▼3.0715.78 ▼81.08
Media Library /wp-admin/upload.php2.82 ▼0.4116.66 ▼18.95

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Advacne WP User Export/Import
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4013.92 ▲0.791.55 ▼2.7439.16 ▼5.47
Dashboard /wp-admin2,207 ▲305.57 ▼0.0285.29 ▼3.6037.32 ▲0.32
Posts /wp-admin/edit.php2,115 ▲152.03 ▲0.0235.10 ▼1.8031.45 ▼0.50
Add New Post /wp-admin/post-new.php1,544 ▲718.08 ▲0.03629.77 ▼8.6584.74 ▼2.23
Media Library /wp-admin/upload.php1,415 ▲154.17 ▼0.12100.62 ▲0.7742.97 ▼0.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/advance-wp-user-exportimport/main/classes/ADVANCEWPUSERAdmin.class.php+9
    Undefined index: _wpnonce
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

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: import user, user, export user, export meta

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

The primary PHP file in "Advacne WP User Export/Import" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("advance-wp-user-exportimport.php" instead of "index.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "5.2")
  • Requires PHP: Please use periods and digits for the required version (ex. "7.0" instead of "7.0.")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,953 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS141481,222
PHP62828723
JavaScript1008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No 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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin