88% all-woocommerce-export

Code Review | All Woocommerce Export

WordPress plugin All Woocommerce Export scored 88% from 54 tests.

About plugin

  • Plugin page: all-woocommerce-e...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.8
  • WordPress version: 5.8.1
  • First release: Sep 12, 2017
  • Latest release: Jul 11, 2021
  • Number of updates: 12
  • Update frequency: every 112.9 days
  • Top authors: vishitshah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 2,403 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1437.23 ▲17.25
Dashboard /wp-admin3.09 ▲0.0441.30 ▼3.84
Posts /wp-admin/edit.php3.14 ▲0.0444.85 ▲5.49
Add New Post /wp-admin/post-new.php5.46 ▲0.0291.60 ▼555.12
Media Library /wp-admin/upload.php3.03 ▲0.0332.42 ▼4.57
All Export /wp-admin/admin.php?page=all-export3.0127.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲11615.95 ▲0.127.15 ▼3.4146.90 ▼2.20
Dashboard /wp-admin2,980 ▲476.10 ▲0.15138.48 ▼1.67109.12 ▼3.04
Posts /wp-admin/edit.php2,748 ▲92.70 ▲0.0064.35 ▼5.8993.04 ▼0.42
Add New Post /wp-admin/post-new.php1,624 ▲12621.39 ▲2.59281.64 ▼90.30107.33 ▼2.80
Media Library /wp-admin/upload.php1,816 ▲95.03 ▲0.04149.65 ▼4.06118.75 ▼12.02
All Export /wp-admin/admin.php?page=all-export1,2172.1258.9159.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP19311,54435,59651,424
JavaScript3419105
CSS14347

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 code0.39
Average class complexity55.34
▷ Minimum class complexity1.00
▷ Maximum class complexity1,176.00
Average method complexity4.78
▷ Minimum method complexity1.00
▷ Maximum method complexity387.00
Code structure
Namespaces0
Interfaces7
Traits0
Classes180
▷ Abstract classes63.33%
▷ Concrete classes17496.67%
▷ Final classes00.00%
Methods2,709
▷ Static methods62122.92%
▷ Public methods2,20581.40%
▷ Protected methods311.14%
▷ Private methods47317.46%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants799
▷ Global constants11814.77%
▷ Class constants68185.23%
▷ Public constants681100.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