89% import-users

Code Review | User Import with meta

WordPress plugin User Import with meta scored89%from 54 tests.

About plugin

  • Plugin page: import-users
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 14, 2017
  • Latest release: Nov 9, 2023
  • Number of updates: 25
  • Update frequency: every 91.2 days
  • Top authors: smackcoders (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

5,000+ active /82,411 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.29MB] [CPU: ▼3.03ms] Passed 4 tests

An overview of server-side resources used by User Import with meta
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2936.40 ▼2.36
Dashboard /wp-admin3.59 ▲0.2949.69 ▲0.37
Posts /wp-admin/edit.php3.71 ▲0.3550.55 ▲4.01
Add New Post /wp-admin/post-new.php6.18 ▲0.2883.54 ▼7.90
Media Library /wp-admin/upload.php3.52 ▲0.2835.31 ▼2.24

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

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

Browser metrics Passed 4 tests

Checking browser requirements for User Import with meta
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.27 ▼0.051.66 ▼0.4439.33 ▼5.22
Dashboard /wp-admin2,192 ▲155.54 ▲0.0084.03 ▼9.4939.61 ▼4.05
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0241.23 ▲2.7735.51 ▲0.43
Add New Post /wp-admin/post-new.php1,526 ▼023.10 ▲0.15665.43 ▲6.5151.01 ▼3.10
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.02102.16 ▼4.9142.07 ▼0.15

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: The plugin tags were not defined
  • Screenshots: These screenshots do not have images: #1 (Upload section of CSV.), #2 (Mapping view of the uploaded CSV fields with WordPress fields..), #3 (Import Progress)
The official readme.txt is a good inspiration

import-users/import-users.php 85% from 13 tests

The principal PHP file in "User Import with meta" v. 1.4.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,361 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP102281601,361

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity22.20
▷ Minimum class complexity2.00
▷ Maximum class complexity94.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods59
▷ Static methods1322.03%
▷ Public methods59100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.22MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png76.42KB19.07KB▼ 75.04%
screenshot-1.png63.61KB16.88KB▼ 73.46%
screenshot-2.png85.19KB24.15KB▼ 71.65%