99% add-user-metadata

Code Review | Import User Meta Data from CSV

WordPress plugin Import User Meta Data from CSV scored 99% from 54 tests.

About plugin

  • Plugin page: add-user-metadata
  • Plugin version: 0.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.5.0
  • WordPress version: 5.9.2
  • First release: Dec 8, 2013
  • Latest release: Aug 28, 2020
  • Number of updates: 19
  • Update frequency: every 129.2 days
  • Top authors: qlstudio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 11,314 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.01MB] [CPU: ▼301.82ms] Passed 4 tests

This is a short check of server-side resources used by Import User Meta Data from CSV
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0160.33 ▲9.21
Dashboard /wp-admin3.43 ▲0.0233.12 ▼1.19
Posts /wp-admin/edit.php3.66 ▲0.0236.23 ▼1.24
Add New Post /wp-admin/post-new.php6.90 ▼0.0793.50 ▼1,198.36
Media Library /wp-admin/upload.php3.31 ▲0.0125.23 ▼6.48
Add Metadata /wp-admin/users.php?page=add-user-metadata3.2821.74

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Import User Meta Data from CSV: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4615.77 ▲0.005.90 ▼0.102.84 ▲0.19
Dashboard /wp-admin2,897 ▲366.17 ▲0.05115.55 ▼15.40158.89 ▼1.45
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0164.35 ▼1.43140.49 ▼1.34
Add New Post /wp-admin/post-new.php1,784 ▲3222.74 ▲1.44429.94 ▼9.69160.41 ▼8.97
Media Library /wp-admin/upload.php1,706 ▲85.54 ▲0.01138.10 ▼19.98186.10 ▼15.47
Add Metadata /wp-admin/users.php?page=add-user-metadata1,1502.7354.27112.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Screenshot #1 (Add Metadata screen) image required
The official readme.txt might help

add-user-metadata/add-user-metadata.php 92% from 13 tests

The main PHP script in "Import User Meta Data from CSV" version 0.5.2 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin428 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1220163338
PO File1232372
JSON20018

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods433.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png22.25KB10.53KB▼ 52.68%
images/close.png0.26KB0.35KB0.00%