Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.62MB] [CPU: ▼15.98ms] Passed 4 tests
An overview of server-side resources used by Import items from csv to Existing Orders for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 45.39 ▼1.04 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.38 ▼1.28 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 56.36 ▲0.69 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.68 | 38.46 ▼60.68 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.34 ▼0.93 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
recovery_mode_email_last_sent |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Import items from csv to Existing Orders for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 13.57 ▼0.81 | 1.90 ▼0.15 | 41.28 ▼3.32 |
Dashboard /wp-admin | 2,217 ▲26 | 5.03 ▲0.16 | 109.30 ▼6.06 | 39.69 ▼2.56 |
Posts /wp-admin/edit.php | 2,108 ▲22 | 2.33 ▲0.28 | 39.65 ▼0.37 | 35.88 ▲2.73 |
Add New Post /wp-admin/post-new.php | 45 ▼1,497 | 0.44 ▼17.83 | 0.08 ▼618.70 | 10.16 ▼51.06 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.49 ▲0.27 | 138.37 ▲26.70 | 47.86 ▲3.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- recovery_mode_email_last_sent
- 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
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Button to Add order in WooCommerce orders screen), #2 (Button To import items from csv), #3 (Confirmation popup before import items), #4 (Result after save items, items are added into the order)
import-items-from-csv-to-existing-orders/import-order-items-from-csv.php 77% from 13 tests
The main PHP file in "Import items from csv to Existing Orders for WooCommerce" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "2.3")
- 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
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("import-items-from-csv-to-existing-orders.php" instead of "import-order-items-from-csv.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,585 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 33 | 50 | 1,142 |
PHP | 4 | 113 | 65 | 443 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.29MB with 0.18MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 134.28KB | 51.28KB | ▼ 61.81% |
screenshot-2.png | 46.27KB | 18.62KB | ▼ 59.76% |
screenshot-3.png | 45.56KB | 18.50KB | ▼ 59.39% |
screenshot-1.png | 71.63KB | 27.48KB | ▼ 61.63% |