89% add-user-metadata

Code Review | Import User Meta Data from CSV

WordPress plugin Import User Meta Data from CSV scored89%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: 6.3.1
  • 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

3 reviews

Install metrics

100+ active /11,836 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.72ms] Passed 4 tests

Server-side resources used by Import User Meta Data from CSV
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.85 ▲2.37
Dashboard /wp-admin3.36 ▲0.0651.27 ▲0.86
Posts /wp-admin/edit.php3.42 ▲0.0650.72 ▼5.11
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.08 ▼16.99
Media Library /wp-admin/upload.php3.29 ▲0.0641.86 ▲3.00
Add Metadata /wp-admin/users.php?page=add-user-metadata3.3335.51

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Import User Meta Data from CSV
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.59 ▼1.011.75 ▲0.1544.37 ▲2.95
Dashboard /wp-admin2,228 ▲344.84 ▼1.03131.31 ▲20.2439.34 ▼10.46
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0339.78 ▼0.3435.70 ▼3.07
Add New Post /wp-admin/post-new.php1,550 ▲922.92 ▲4.64663.64 ▲39.5159.03 ▲5.93
Media Library /wp-admin/upload.php1,404 ▲44.15 ▼0.14111.76 ▲6.4246.45 ▲0.93
Add Metadata /wp-admin/users.php?page=add-user-metadata9052.0922.9827.23

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
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 principal PHP file in "Import User Meta Data from CSV" v. 0.5.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • 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

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 plugin428 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1220163338
PO File1232372
JSON20018

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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
images/close.png0.26KB0.35KB0.00%
screenshot-1.png22.25KB10.53KB▼ 52.68%