84% woocommerce-export-customer-email

Code Review | WooCommerce Export Customer Email

WordPress plugin WooCommerce Export Customer Email scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-expor...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.2
  • WordPress version: 6.3.1
  • First release: May 18, 2014
  • Latest release: May 17, 2015
  • Number of updates: 10
  • Update frequency: every 36.4 days
  • Top authors: mitcmt (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

2,000+ active /29,608 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.15ms] Passed 4 tests

Server-side resources used by WooCommerce Export Customer Email
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.01 ▲2.81
Dashboard /wp-admin3.31 ▲0.0043.89 ▼0.35
Posts /wp-admin/edit.php3.36 ▲0.0044.23 ▼4.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.11 ▼8.68
Media Library /wp-admin/upload.php3.23 ▲0.0034.79 ▲0.75

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Export Customer Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.45 ▼0.211.68 ▲0.1444.12 ▲0.64
Dashboard /wp-admin2,195 ▲145.55 ▼0.1686.92 ▼13.1540.90 ▼4.79
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0039.62 ▼3.2735.35 ▼0.80
Add New Post /wp-admin/post-new.php1,526 ▼323.01 ▼0.21682.47 ▲50.8448.17 ▼0.00
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.01101.38 ▲1.4442.07 ▼2.70

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-export-customer-email/export-customer-email.php on line 33
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-export-customer-email/export-customer-email.php on line 33
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woocommerce-export-customer-email/export-customer-email.php on line 33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: woocommerce, customer, email, export

woocommerce-export-customer-email/export-customer-email.php 92% from 13 tests

The main PHP file in "WooCommerce Export Customer Email" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-export-customer-email.php" instead of "export-customer-email.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected138 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14072138

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods360.00%
▷ Protected methods00.00%
▷ Private methods240.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin