77% store-migration-products-orders-import-export-with-excel

Code Review | Import Orders Export Orders WooCommerce Products Subscriptions with Excel

WordPress plugin Import Orders Export Orders WooCommerce Products Subscriptions with Excel scored77%from 54 tests.

About plugin

  • Plugin page: store-migration-p...
  • Plugin version: 1.6
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.2
  • WordPress version: 6.3.1
  • First release: Sep 12, 2020
  • Latest release: Jul 13, 2023
  • Number of updates: 26
  • Update frequency: every 39.8 days
  • Top authors: taz_bambu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,411 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.95ms] Passed 4 tests

An overview of server-side resources used by Import Orders Export Orders WooCommerce Products Subscriptions with Excel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.89 ▲1.17
Dashboard /wp-admin3.35 ▲0.0551.71 ▲2.18
Posts /wp-admin/edit.php3.41 ▲0.0548.17 ▼15.08
Add New Post /wp-admin/post-new.php5.93 ▲0.0588.58 ▼16.05
Media Library /wp-admin/upload.php3.28 ▲0.0545.05 ▲9.87
Store Migration /wp-admin/admin.php?page=store-migration-woocommerce3.2837.90

Server storage [IO: ▲5.98MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 410 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Import Orders Export Orders WooCommerce Products Subscriptions with Excel
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲12814.22 ▼0.132.00 ▼0.3543.55 ▼3.06
Dashboard /wp-admin2,292 ▲1185.56 ▼0.0692.88 ▼1.1975.03 ▲28.45
Posts /wp-admin/edit.php2,203 ▲1062.02 ▲0.0136.37 ▼6.4633.76 ▼0.64
Add New Post /wp-admin/post-new.php1,778 ▲25222.04 ▼0.97755.02 ▲61.2354.71 ▼3.65
Media Library /wp-admin/upload.php1,503 ▲1034.15 ▲0.04109.68 ▼5.3181.91 ▲34.61
Store Migration /wp-admin/admin.php?page=store-migration-woocommerce1,1874.0256.1192.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/store-migration-products-orders-import-export-with-excel/Classes/markbaker/complex/examples/testOperations.php
    • > /wp-content/plugins/store-migration-products-orders-import-export-with-excel/Classes/markbaker/matrix/examples/test.php
    • > /wp-content/plugins/store-migration-products-orders-import-export-with-excel/Classes/markbaker/complex/examples/testFunctions.php
    • > /wp-content/plugins/store-migration-products-orders-import-export-with-excel/Classes/markbaker/matrix/buildPhar.php
    • > /wp-content/plugins/store-migration-products-orders-import-export-with-excel/Classes/markbaker/complex/examples/complexTest.php
  • 97× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'PhpOffice\\PhpSpreadsheet\\RichText\\ITextElement' not found in wp-content/plugins/store-migration-products-orders-import-export-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/TextElement.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Style\\Supervisor' not found in wp-content/plugins/store-migration-products-orders-import-export-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Style.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Shared\\OLE\\PPS' not found in wp-content/plugins/store-migration-products-orders-import-export-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE/PPS/File.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'Matrix\\Operators\\Operator' not found in wp-content/plugins/store-migration-products-orders-import-export-with-excel/Classes/markbaker/matrix/classes/src/Operators/Multiplication.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\WriterPart' not found in wp-content/plugins/store-migration-products-orders-import-export-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Chart.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Dimension' not found in wp-content/plugins/store-migration-products-orders-import-export-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/RowDimension.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\WriterPart' not found in wp-content/plugins/store-migration-products-orders-import-export-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Thumbnails.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Matrix\\Operators\\Operator' not found in wp-content/plugins/store-migration-products-orders-import-export-with-excel/Classes/markbaker/matrix/classes/src/Operators/Addition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\BaseParserClass' not found in wp-content/plugins/store-migration-products-orders-import-export-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/SheetViews.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Exception' not found in wp-content/plugins/store-migration-products-orders-import-export-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Exception.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: order export, product export, excel, import orders, migrate

store-migration-products-orders-import-export-with-excel/store-migration-excel.php 62% from 13 tests

This is the main PHP file of "Import Orders Export Orders WooCommerce Products Subscriptions with Excel" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "2.2")
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.2.4" instead of "7.1")
  • Main file name: The principal plugin file should be the same as the plugin slug ("store-migration-products-orders-import-export-with-excel.php" instead of "store-migration-excel.php")
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 73 characters long)

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin68,235 lines of code in 347 files:
LanguageFilesBlank linesComment linesLines of code
PHP31813,93631,47762,430
Markdown942302,002
CSS3104641,609
SVG100685
JSON600684
JavaScript420127673
YAML314182
Bourne Again Shell16324
PO File13523
XML10023

PHP code 0% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,011)
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 387)
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity43.72
▷ Minimum class complexity1.00
▷ Maximum class complexity1,011.00
Average method complexity4.49
▷ Minimum method complexity1.00
▷ Maximum method complexity387.00
Code structure
Namespaces45
Interfaces10
Traits0
Classes236
▷ Abstract classes166.78%
▷ Concrete classes22093.22%
▷ Final classes00.00%
Methods3,039
▷ Static methods69022.70%
▷ Public methods2,34677.20%
▷ Protected methods852.80%
▷ Private methods60820.01%
Functions76
▷ Named functions6281.58%
▷ Anonymous functions1418.42%
Constants779
▷ Global constants20.26%
▷ Class constants77799.74%
▷ Public constants777100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/store-migration-woocommerce-pro.png38.37KB15.10KB▼ 60.64%
images/default.png14.13KB5.96KB▼ 57.80%
images/extendwp.png5.75KB3.37KB▼ 41.46%