100% wc-duplicate-order

Code Review | WC Duplicate Order

WordPress plugin WC Duplicate Order scored 100% from 54 tests.

About plugin

  • Plugin page: wc-duplicate-order
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.4
  • WordPress version: 5.8.1
  • First release: Sep 12, 2016
  • Latest release: Sep 8, 2019
  • Number of updates: 16
  • Update frequency: every 68.3 days
  • Top authors: Patchgill (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

2,000+ active / 14,647 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by WC Duplicate Order
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1238.41 ▲16.14
Dashboard /wp-admin3.06 ▲0.0046.40 ▲1.42
Posts /wp-admin/edit.php3.11 ▲0.0050.28 ▼1.64
Add New Post /wp-admin/post-new.php5.42 ▼0.0291.75 ▼570.19
Media Library /wp-admin/upload.php3.00 ▲0.0034.27 ▼2.83

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WC Duplicate Order
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.86 ▲0.349.81 ▼0.1851.60 ▼5.03
Dashboard /wp-admin2,992 ▲616.09 ▲0.07143.39 ▼7.20121.73 ▲4.43
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0072.54 ▲2.0392.83 ▲2.48
Add New Post /wp-admin/post-new.php1,672 ▼1118.89 ▲0.16395.36 ▲0.67120.38 ▲2.07
Media Library /wp-admin/upload.php1,810 ▼05.00 ▼0.02152.75 ▼28.33129.54 ▲1.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 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
2 plugin tags: woocommerce clone order, woocommerce duplicate order

wc-duplicate-order/wc-duplicate-order.php Passed 13 tests

The primary PHP file in "WC Duplicate Order" version 1.7 is used by WordPress to initiate all plugin functionality
89 characters long description:
Adds a duplicate link to Woocommerce on the order actions to duplicate the existing order

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin328 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP420980328

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity15.50
▷ Minimum class complexity7.00
▷ Maximum class complexity24.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin