78% mwb-zendesk-woo-order-sync

Code Review | Order Sync with Zendesk for WooCommerce

WordPress plugin Order Sync with Zendesk for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: mwb-zendesk-woo-o...
  • Plugin version: 2.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 6, 2019
  • Latest release: Sep 7, 2023
  • Number of updates: 17
  • Update frequency: every 86.1 days
  • Top authors: makewebbetter (58.82%)wpswings (47.06%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Order Sync with Zendesk for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.71 ▼2.12
Dashboard /wp-admin3.31 ▼0.0445.20 ▼12.57
Posts /wp-admin/edit.php3.36 ▲0.0044.73 ▼5.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.07 ▼24.09
Media Library /wp-admin/upload.php3.23 ▲0.0036.53 ▲3.87

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Order Sync with Zendesk for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.32 ▼0.041.74 ▼0.2343.78 ▲0.89
Dashboard /wp-admin2,192 ▲215.57 ▲0.0581.91 ▼2.1938.13 ▼3.87
Posts /wp-admin/edit.php2,103 ▼02.01 ▲0.0433.98 ▼7.9331.22 ▼6.10
Add New Post /wp-admin/post-new.php1,526 ▼1723.47 ▲5.54684.25 ▲85.0569.45 ▲7.03
Media Library /wp-admin/upload.php1,400 ▼04.36 ▲0.1993.04 ▼8.0042.15 ▼1.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mwb-zendesk-woo-order-sync/admin-templates/deactivation-screen.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/mwb-zendesk-woo-order-sync/uninstall.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: zendesk, woocommerce, customer tickets, woocommerce orders, ecommerce

mwb-zendesk-woo-order-sync/mwb-zendesk-woo-order-sync.php 92% from 13 tests

The principal PHP file in "Order Sync with Zendesk for WooCommerce" v. 2.0.7 is loaded by WordPress automatically on each request
Please make the necessary changes and 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 Passed 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
Good job! No executable or dangerous file extensions detected3,114 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP104155451,840
CSS310610814
JavaScript3416242
PO File19092198
SVG50020

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity31.00
▷ Minimum class complexity18.00
▷ Maximum class complexity52.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods36
▷ Static methods513.89%
▷ Public methods3494.44%
▷ Protected methods00.00%
▷ Private methods25.56%
Functions23
▷ Named functions2295.65%
▷ Anonymous functions14.35%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/switch.png0.40KB0.41KB0.00%