84% a3-user-importer

Code Review | Simple User Import Export

WordPress plugin Simple User Import Export scored 84% from 54 tests.

About plugin

  • Plugin page: a3-user-importer
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Jun 1, 2022
  • Latest release: Oct 17, 2022
  • Number of updates: 36
  • Update frequency: every 3.8 days
  • Top authors: vaniivan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 875 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.89ms] Passed 4 tests

This is a short check of server-side resources used by Simple User Import Export
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0334.95 ▼5.83
Dashboard /wp-admin3.32 ▲0.0247.34 ▼0.12
Posts /wp-admin/edit.php3.38 ▲0.0248.09 ▲1.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0295.65 ▲10.20
Media Library /wp-admin/upload.php3.25 ▲0.0235.74 ▲0.49

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Simple User Import Export
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.31 ▼1.081.62 ▼0.3840.64 ▼1.26
Dashboard /wp-admin2,219 ▲314.90 ▼0.14111.80 ▼7.5241.62 ▼4.54
Posts /wp-admin/edit.php2,105 ▲162.06 ▲0.0544.10 ▲3.9935.66 ▲0.19
Add New Post /wp-admin/post-new.php1,548 ▲1423.16 ▲0.06578.67 ▼63.0751.66 ▼10.84
Media Library /wp-admin/upload.php1,401 ▲104.14 ▼0.0998.91 ▼1.2844.15 ▼1.85

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a3-user-importer/file/download.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a3-user-importer/ajax/ajax.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/a3-user-importer/a3-user-importer.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #10, #11, #12, #7, #8, #9 in a3-user-importer/assets to your readme.txt
You can look at the official readme.txt

a3-user-importer/a3-user-importer.php Passed 13 tests

"Simple User Import Export" version 1.1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
48 characters long description:
Import WordPress and WooCommerce users with ease

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin8,401 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3090.91%
▷ Anonymous functions39.09%
▷ 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
static/PayPal-h45.png6.81KB2.54KB▼ 62.64%
a3-svelte-importer/public/favicon.png3.05KB1.47KB▼ 51.87%