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
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.01ms] Passed 4 tests
Server-side resources used by SV WooCommerce Order Export
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.07 ▼6.57 |
Dashboard /wp-admin | 3.33 ▲0.03 | 63.57 ▲11.43 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.60 ▼3.99 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 102.19 ▼4.09 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 44.75 ▲6.62 |
Order Export /wp-admin/admin.php?page=sv_woocommerce_order_export_user_settings | 3.25 | 35.96 |
Global Settings /wp-admin/admin.php?page=sv_woocommerce_order_export_global_settings | 3.28 | 40.70 |
Global Filters /wp-admin/admin.php?page=sv_woocommerce_order_export_global_filters | 3.26 | 34.95 |
Server storage [IO: ▲5.32MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 281 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
sv_woocommerce_order_export_version |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by SV WooCommerce Order Export
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,086 ▲325 | 14.28 ▲0.04 | 1.67 ▼0.90 | 51.48 ▼0.08 |
Dashboard /wp-admin | 2,477 ▲300 | 5.64 ▼0.04 | 108.20 ▼7.58 | 81.47 ▲30.96 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.07 ▲0.05 | 41.57 ▼0.44 | 37.61 ▼2.53 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 22.93 ▼0.07 | 774.39 ▲30.36 | 42.79 ▼23.57 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.20 ▼0.00 | 116.08 ▼6.61 | 80.88 ▲22.61 |
Order Export /wp-admin/admin.php?page=sv_woocommerce_order_export_user_settings | 1,646 | 2.13 | 51.08 | 37.20 |
Global Settings /wp-admin/admin.php?page=sv_woocommerce_order_export_global_settings | 2,401 | 1.90 | 30.81 | 38.27 |
Global Filters /wp-admin/admin.php?page=sv_woocommerce_order_export_global_filters | 974 | 1.91 | 26.16 | 33.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- sv_woocommerce_order_export_version
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 129× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in wp-content/plugins/sv-woocommerce-order-export/lib/api/phpexcel/PHPExcel/Writer/OpenDocument/MetaInf.php:28
- > PHP Warning
require_once(SV_WOOCOMMERCE_ORDER_EXPORT_DIRlib/common/childs.inc.php): failed to open stream: No such file or directory in wp-content/plugins/sv-woocommerce-order-export/lib/modules/json.inc.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in wp-content/plugins/sv-woocommerce-order-export/lib/api/phpexcel/PHPExcel/Writer/Excel2007/Theme.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in wp-content/plugins/sv-woocommerce-order-export/lib/api/phpexcel/PHPExcel/Style/Color.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sv-woocommerce-order-export/lib/tpl/get_custom_export.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in wp-content/plugins/sv-woocommerce-order-export/lib/api/phpexcel/PHPExcel/Writer/Excel2007/ContentTypes.php:28
- > PHP Warning
Use of undefined constant PHPEXCEL_ROOT - assumed 'PHPEXCEL_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/sv-woocommerce-order-export/lib/api/phpexcel/PHPExcel/Autoloader.php on line 70
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in wp-content/plugins/sv-woocommerce-order-export/lib/api/phpexcel/PHPExcel/Style.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Worksheet_BaseDrawing' not found in wp-content/plugins/sv-woocommerce-order-export/lib/api/phpexcel/PHPExcel/Worksheet/MemoryDrawing.php:28
- > PHP Notice
Undefined variable: field_id in wp-content/plugins/sv-woocommerce-order-export/lib/tpl/subscriptions_user_settings_field.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Donate link: Invalid URI found ("")
sv-woocommerce-order-export/sv_woocommerce_order_export.php 85% from 13 tests
"SV WooCommerce Order Export" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sv-woocommerce-order-export.php" instead of "sv_woocommerce_order_export.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin60,532 lines of code in 235 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 232 | 10,946 | 36,186 | 60,360 |
PO File | 1 | 75 | 107 | 123 |
CSS | 1 | 0 | 0 | 37 |
JavaScript | 1 | 1 | 0 | 12 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,177)
- Method cyclomatic complexity should be reduced to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 49.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,177.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 213 | |
▷ Abstract classes | 10 | 4.69% |
▷ Concrete classes | 203 | 95.31% |
▷ Final classes | 0 | 0.00% |
Methods | 3,090 | |
▷ Static methods | 628 | 20.32% |
▷ Public methods | 2,422 | 78.38% |
▷ Protected methods | 79 | 2.56% |
▷ Private methods | 589 | 19.06% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 817 | |
▷ Global constants | 122 | 14.93% |
▷ Class constants | 695 | 85.07% |
▷ Public constants | 695 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/img/logo_icon.png | 1.34KB | 0.76KB | ▼ 43.44% |