Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.21MB] [CPU: ▼44.39ms] Passed 4 tests
Server-side resources used by Woocommerce Order Report Snapshot
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.76 ▼0.70 | 12.64 ▼25.91 |
Dashboard /wp-admin | 2.80 ▼0.50 | 15.65 ▼30.91 |
Posts /wp-admin/edit.php | 2.80 ▼0.56 | 15.91 ▼36.68 |
Add New Post /wp-admin/post-new.php | 2.80 ▼3.09 | 15.16 ▼84.05 |
Media Library /wp-admin/upload.php | 2.80 ▼0.43 | 15.01 ▼20.79 |
Order Export /wp-admin/admin.php?page=order-export | 2.80 | 16.09 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Woocommerce Order Report Snapshot
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.37 | 1.77 ▲0.15 | 42.83 ▲5.16 |
Dashboard /wp-admin | 2,195 ▲18 | 5.67 ▲0.02 | 86.07 ▼1.12 | 36.32 ▼4.57 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.03 | 35.39 ▼0.38 | 33.37 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.96 ▲0.18 | 602.21 ▼22.50 | 56.92 ▼19.22 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▲0.04 | 96.21 ▼9.01 | 39.52 ▼6.40 |
Order Export /wp-admin/admin.php?page=order-export | 827 | 1.85 | 26.61 | 24.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/woocommerce-csv-export-for-user-roles/wooexportcsv.php+36
Undefined index: woo_export_csv
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=order-export
- > Notice in wp-content/plugins/woocommerce-csv-export-for-user-roles/wooexportcsv.php+36
Undefined index: woo_export_csv
SRP 50% from 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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woocommerce-csv-export-for-user-roles/export.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/woocommerce-csv-export-for-user-roles/wooexportcsv.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== woocommerce-csv-export-for-user-roles ===
)
woocommerce-csv-export-for-user-roles/wooexportcsv.php 85% from 13 tests
The main PHP file in "Woocommerce Order Report Snapshot" 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:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-csv-export-for-user-roles.php" instead of "wooexportcsv.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 191 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin244 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 30 | 21 | 238 |
CSS | 2 | 1 | 5 | 4 |
JavaScript | 1 | 0 | 10 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-icons_2e83ff_256x240.png | 4.49KB | 4.18KB | ▼ 6.89% |
images/ui-bg_glass_95_fef1ec_1x400.png | 0.36KB | 0.15KB | ▼ 59.57% |
images/ui-icons_888888_256x240.png | 6.93KB | 4.18KB | ▼ 39.62% |
images/ui-icons_222222_256x240.png | 6.84KB | 4.18KB | ▼ 38.88% |
images/ui-icons_454545_256x240.png | 6.91KB | 4.18KB | ▼ 39.44% |