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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 60.33 ▲9.21 |
Dashboard /wp-admin | 3.43 ▲0.02 | 33.12 ▼1.19 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 36.23 ▼1.24 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 93.50 ▼1,198.36 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 25.23 ▼6.48 |
Add Metadata /wp-admin/users.php?page=add-user-metadata | 3.28 | 21.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 15.77 ▲0.00 | 5.90 ▼0.10 | 2.84 ▲0.19 |
Dashboard /wp-admin | 2,897 ▲36 | 6.17 ▲0.05 | 115.55 ▼15.40 | 158.89 ▼1.45 |
Posts /wp-admin/edit.php | 2,696 ▲5 | 3.24 ▲0.01 | 64.35 ▼1.43 | 140.49 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,784 ▲32 | 22.74 ▲1.44 | 429.94 ▼9.69 | 160.41 ▼8.97 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.54 ▲0.01 | 138.10 ▼19.98 | 186.10 ▼15.47 |
Add Metadata /wp-admin/users.php?page=add-user-metadata | 1,150 | 2.73 | 54.27 | 112.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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 220 | 163 | 338 |
PO File | 1 | 23 | 23 | 72 |
JSON | 2 | 0 | 0 | 18 |
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 code | 0.40 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 4 | 33.33% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 22.25KB | 10.53KB | ▼ 52.68% |
images/close.png | 0.26KB | 0.35KB | 0.00% |