Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼139.51ms] Passed 4 tests
An overview of server-side resources used by All Woocommerce Export
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 37.23 ▲17.25 |
Dashboard /wp-admin | 3.09 ▲0.04 | 41.30 ▼3.84 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 44.85 ▲5.49 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 91.60 ▼555.12 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 32.42 ▼4.57 |
All Export /wp-admin/admin.php?page=all-export | 3.01 | 27.94 |
Server storage [IO: ▲3.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 238 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for All Woocommerce Export
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,710 ▲116 | 15.95 ▲0.12 | 7.15 ▼3.41 | 46.90 ▼2.20 |
Dashboard /wp-admin | 2,980 ▲47 | 6.10 ▲0.15 | 138.48 ▼1.67 | 109.12 ▼3.04 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.70 ▲0.00 | 64.35 ▼5.89 | 93.04 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,624 ▲126 | 21.39 ▲2.59 | 281.64 ▼90.30 | 107.33 ▼2.80 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.03 ▲0.04 | 149.65 ▼4.06 | 118.75 ▼12.02 |
All Export /wp-admin/admin.php?page=all-export | 1,217 | 2.12 | 58.91 | 59.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
The following issues need your attention
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/all-woocommerce-export/product.php
- > /wp-content/plugins/all-woocommerce-export/customer.php
- > /wp-content/plugins/all-woocommerce-export/order.php
- > /wp-content/plugins/all-woocommerce-export/all-woocommerce-export.php
- 85× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in wp-content/plugins/all-woocommerce-export/PHPExcel/Writer/Excel2007/Chart.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_CachedObjectStorage_CacheBase' not found in wp-content/plugins/all-woocommerce-export/PHPExcel/CachedObjectStorage/MemoryGZip.php:36
- > PHP Fatal error
Uncaught Error: Interface 'PHPExcel_Reader_IReader' not found in wp-content/plugins/all-woocommerce-export/PHPExcel/Reader/Abstract.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in wp-content/plugins/all-woocommerce-export/PHPExcel/Writer/Excel2007/DocProps.php:36
- > PHP Fatal error
require_once(): Failed opening required 'PHPEXCEL_ROOTPHPExcel/Shared/trend/bestFitClass.php' (include_path='.:/usr/share/php') in wp-content/plugins/all-woocommerce-export/PHPExcel/Shared/trend/exponentialBestFitClass.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in wp-content/plugins/all-woocommerce-export/PHPExcel/Style/Font.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Settings' not found in wp-content/plugins/all-woocommerce-export/PHPExcel/Writer/PDF/mPDF.php:30
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in wp-content/plugins/all-woocommerce-export/PHPExcel/Style.php:36
- > 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/all-woocommerce-export/PHPExcel/Shared/trend/trendClass.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Exception' not found in wp-content/plugins/all-woocommerce-export/PHPExcel/Chart/Exception.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
8 plugin tags: csv, export orders, xlsx, export, export products...
all-woocommerce-export/all-woocommerce-export.php 92% from 13 tests
The main file in "All Woocommerce Export" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected51,576 lines of code in 197 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 193 | 11,544 | 35,596 | 51,424 |
JavaScript | 3 | 4 | 19 | 105 |
CSS | 1 | 4 | 3 | 47 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,176)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 55.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,176.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 180 | |
▷ Abstract classes | 6 | 3.33% |
▷ Concrete classes | 174 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 2,709 | |
▷ Static methods | 621 | 22.92% |
▷ Public methods | 2,205 | 81.40% |
▷ Protected methods | 31 | 1.14% |
▷ Private methods | 473 | 17.46% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 799 | |
▷ Global constants | 118 | 14.77% |
▷ Class constants | 681 | 85.23% |
▷ Public constants | 681 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin