Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.13ms] Passed 4 tests
A check of server-side resources used by Import Users from CSV
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.57 ▼0.68 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.32 ▼0.73 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.80 ▼4.09 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.30 ▼11.01 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.46 ▲1.32 |
Import From CSV /wp-admin/users.php?page=import-users-from-csv | 3.20 | 30.46 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Import Users from CSV
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.34 ▼1.04 | 2.00 ▲0.20 | 42.70 ▼1.39 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▲0.98 | 111.34 ▼6.81 | 44.98 ▼1.56 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.01 | 34.15 ▼2.19 | 37.52 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,517 ▼17 | 17.41 ▼5.67 | 686.99 ▲23.54 | 57.69 ▲7.95 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.23 ▲0.05 | 94.57 ▼11.75 | 43.41 ▼0.28 |
Import From CSV /wp-admin/users.php?page=import-users-from-csv | 845 | 2.18 | 24.00 | 28.80 |
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 does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/import-users-from-csv/import-users-from-csv.php:35
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/import-users-from-csv/includes/import-users-from-csv.wpcli.php:3
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (User import screen) image not found
import-users-from-csv/import-users-from-csv.php Passed 13 tests
The main PHP script in "Import Users from CSV" version 1.1 is automatically included on every request by WordPress
47 characters long description:
Import Users data and metadata from a csv file.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin579 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 96 | 166 | 431 |
PO File | 2 | 58 | 96 | 148 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 36.50 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 8.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 7 | 70.00% |
▷ Public methods | 7 | 70.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 30.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 45.96KB | 17.63KB | ▼ 61.64% |