83% product-export-for-woocommerce

Code Review | Product Export for Woocommerce to CSV, Excel, XML, and the Google Merchant Center

WordPress plugin Product Export for Woocommerce to CSV, Excel, XML, and the Google Merchant Center scored83%from 54 tests.

About plugin

  • Plugin page: product-export-fo...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 1, 2021
  • Latest release: Aug 10, 2023
  • Number of updates: 18
  • Update frequency: every 35.0 days
  • Top authors: WPAllImport (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

4,000+ active /23,563 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.67ms] Passed 4 tests

Server-side resources used by Product Export for Woocommerce to CSV, Excel, XML, and the Google Merchant Center
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.78 ▲1.03
Dashboard /wp-admin3.31 ▼0.0452.18 ▼14.66
Posts /wp-admin/edit.php3.36 ▲0.0050.97 ▼0.00
Add New Post /wp-admin/post-new.php5.89 ▲0.00102.28 ▼10.49
Media Library /wp-admin/upload.php3.23 ▲0.0034.37 ▼5.54

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Product Export for Woocommerce to CSV, Excel, XML, and the Google Merchant Center
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲3614.25 ▼0.112.10 ▲0.2249.28 ▲5.58
Dashboard /wp-admin2,192 ▲125.56 ▼0.0697.32 ▼9.1943.61 ▼3.81
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.1841.16 ▲4.3234.70 ▼1.22
Add New Post /wp-admin/post-new.php1,531 ▲323.30 ▲0.14617.50 ▼52.4847.85 ▼12.12
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.05104.36 ▼9.8042.98 ▼1.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'PMXE_Model' not found in wp-content/plugins/product-export-for-woocommerce/models/model/list.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PMXE_Model' not found in wp-content/plugins/product-export-for-woocommerce/models/model/record.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/product-export-for-woocommerce/wpae-woocommerce-product-add-on.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

product-export-for-woocommerce/wpae-woocommerce-product-add-on.php 85% from 13 tests

"Product Export for Woocommerce to CSV, Excel, XML, and the Google Merchant Center" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("product-export-for-woocommerce.php" instead of "wpae-woocommerce-product-add-on.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,481 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32172891,715
PHP173144021,672
CSS118094

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity37.89
▷ Minimum class complexity3.00
▷ Maximum class complexity221.00
Average method complexity5.15
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes222.22%
Methods81
▷ Static methods89.88%
▷ Public methods6883.95%
▷ Protected methods1012.35%
▷ Private methods33.70%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants21
▷ Global constants523.81%
▷ Class constants1676.19%
▷ Public constants16100.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
static/img/preloader.png15.60KB0.13KB▼ 99.17%