78% woo-send-csvs-to-your-fullfillment-partner

Code Review | WooCommerce Send CSVs to your Fullfillment-Partner

WordPress plugin WooCommerce Send CSVs to your Fullfillment-Partner scored78%from 54 tests.

About plugin

  • Plugin page: woo-send-csvs-to-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Nov 29, 2017
  • Latest release: Nov 29, 2017
  • Number of updates: 17
  • Update frequency: N/A
  • Top authors: schmeidt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /566 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼9.91ms] Passed 4 tests

A check of server-side resources used by WooCommerce Send CSVs to your Fullfillment-Partner
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.21 ▼2.71
Dashboard /wp-admin3.39 ▲0.0548.35 ▼13.60
Posts /wp-admin/edit.php3.44 ▲0.0945.47 ▼6.83
Add New Post /wp-admin/post-new.php5.97 ▲0.0988.17 ▼16.50
Media Library /wp-admin/upload.php3.32 ▲0.0933.93 ▼2.19
History /wp-admin/admin.php?page=send_email_to_fullfilment3.2832.93
WC Fullfilment-Emailer /wp-admin/admin.php?page=theme-options3.3540.29

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
WC_FFM_encoding
can_compress_scripts
widget_recent-comments
WC_FFM_csvname
WC_FFM_sendingtime
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Send CSVs to your Fullfillment-Partner
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.67 ▼0.721.61 ▼0.1039.86 ▼6.36
Dashboard /wp-admin2,236 ▲484.81 ▼1.06101.94 ▲0.6539.65 ▼4.01
Posts /wp-admin/edit.php2,116 ▲242.02 ▲0.0433.60 ▼3.9733.07 ▼0.51
Add New Post /wp-admin/post-new.php1,556 ▲3723.05 ▼0.08665.10 ▼18.6668.05 ▲13.47
Media Library /wp-admin/upload.php1,409 ▲214.18 ▼0.0397.59 ▼2.0742.85 ▼2.93
History /wp-admin/admin.php?page=send_email_to_fullfilment8032.1823.6326.36
WC Fullfilment-Emailer /wp-admin/admin.php?page=theme-options2,0696.63134.5664.97

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 did not uninstall successfully, leaving 9 options in the database
    • db_upgraded
    • WC_FFM_encoding
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • WC_FFM_csvname
    • WC_FFM_sendingtime

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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 fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-send-csvs-to-your-fullfillment-partner/functions.php:144
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/woo-send-csvs-to-your-fullfillment-partner/send_csv_to_fullfilment.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=theme-options
    • > Javascript (severe) in unknown
    /wp-content/plugins/woo-send-csvs-to-your-fullfillment-partner/assets/sortable.js?ver=6.3.1 3:26 Uncaught TypeError: jQuery(...).sortable is not a function

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: export, csv export, csv, fullfilment, woocommerce...

woo-send-csvs-to-your-fullfillment-partner/send_csv_to_fullfilment.php 92% from 13 tests

The entry point to "WooCommerce Send CSVs to your Fullfillment-Partner" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-send-csvs-to-your-fullfillment-partner.php" instead of "send_csv_to_fullfilment.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin496 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP324093473
JavaScript210617
CSS15136

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin