Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.08ms] Passed 4 tests
This is a short check of server-side resources used by WC Order Export
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.37 ▲3.35 |
Dashboard /wp-admin | 3.35 ▲0.04 | 47.71 ▲0.08 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.05 ▼7.01 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.51 ▼21.92 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.90 ▲0.53 |
Server storage [IO: ▲4.42MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 265 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WC Order Export
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.28 ▼1.03 | 1.62 ▼0.19 | 42.94 ▲0.70 |
Dashboard /wp-admin | 2,212 ▲24 | 5.83 ▲0.76 | 102.88 ▼12.07 | 41.39 ▲0.46 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.02 ▲0.04 | 38.51 ▼1.94 | 35.21 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 23.20 ▼0.30 | 656.40 ▼19.58 | 55.45 ▲4.22 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.32 ▲0.14 | 98.05 ▼2.04 | 42.07 ▼1.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 101× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in wp-content/plugins/wc-order-export/classes/PHPExcel/Writer/Excel2007/Comments.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in wp-content/plugins/wc-order-export/classes/PHPExcel/Writer/OpenDocument/Mimetype.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_CachedObjectStorage_CacheBase' not found in wp-content/plugins/wc-order-export/classes/PHPExcel/CachedObjectStorage/SQLite.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in wp-content/plugins/wc-order-export/classes/PHPExcel/Style/Fill.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in wp-content/plugins/wc-order-export/classes/PHPExcel/Writer/Excel2007/Worksheet.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in wp-content/plugins/wc-order-export/classes/PHPExcel/Writer/Excel5.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_CachedObjectStorage_CacheBase' not found in wp-content/plugins/wc-order-export/classes/PHPExcel/CachedObjectStorage/APC.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in wp-content/plugins/wc-order-export/classes/PHPExcel/Style/Font.php:28
- > PHP Fatal error
Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in wp-content/plugins/wc-order-export/classes/PHPExcel/Writer/Abstract.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/wc-order-export/classes/PHPExcel/Shared/trend/exponentialBestFitClass.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please describe screenshot #2 in wc-order-export/assets to your readme.txt
wc-order-export/wcexord_export.php 92% from 13 tests
The principal PHP file in "WC Order Export" v. 1.5.0 is loaded by WordPress automatically on each request
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 ("wc-order-export.php" instead of "wcexord_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
No dangerous file extensions were detected59,533 lines of code in 223 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 219 | 10,860 | 35,809 | 58,541 |
CSS | 2 | 52 | 34 | 776 |
JavaScript | 2 | 39 | 20 | 216 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,019)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 49.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,019.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 209 | |
▷ Abstract classes | 10 | 4.78% |
▷ Concrete classes | 199 | 95.22% |
▷ Final classes | 0 | 0.00% |
Methods | 2,885 | |
▷ Static methods | 628 | 21.77% |
▷ Public methods | 2,291 | 79.41% |
▷ Protected methods | 80 | 2.77% |
▷ Private methods | 514 | 17.82% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 812 | |
▷ Global constants | 118 | 14.53% |
▷ Class constants | 694 | 85.47% |
▷ Public constants | 694 | 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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_555555_256x240.png | 3.20KB | 3.50KB | 0.00% |
assets/css/images/ui-icons_444444_256x240.png | 3.19KB | 3.49KB | 0.00% |