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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 38.41 ▲16.14 |
Dashboard /wp-admin | 3.06 ▲0.00 | 46.40 ▲1.42 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 50.28 ▼1.64 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 91.75 ▼570.19 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.86 ▲0.34 | 9.81 ▼0.18 | 51.60 ▼5.03 |
Dashboard /wp-admin | 2,992 ▲61 | 6.09 ▲0.07 | 143.39 ▼7.20 | 121.73 ▲4.43 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 72.54 ▲2.03 | 92.83 ▲2.48 |
Add New Post /wp-admin/post-new.php | 1,672 ▼11 | 18.89 ▲0.16 | 395.36 ▲0.67 | 120.38 ▲2.07 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.00 ▼0.02 | 152.75 ▼28.33 | 129.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 209 | 80 | 328 |
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 code | 0.25 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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