94% clone-woo-orders-free-by-wp-masters

Code Review | Clone Woo Orders - Free by WP Masters

WordPress plugin Clone Woo Orders - Free by WP Masters scored 94% from 54 tests.

About plugin

  • Plugin page: clone-woo-orders-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.8.1
  • First release: Jul 13, 2021
  • Latest release: Sep 11, 2021
  • Number of updates: 3
  • Update frequency: every 53.0 days
  • Top authors: wpmasterscom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 100 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼138.73ms] Passed 4 tests

A check of server-side resources used by Clone Woo Orders - Free by WP Masters
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0232.88 ▼2.50
Dashboard /wp-admin3.08 ▲0.0246.62 ▲1.71
Posts /wp-admin/edit.php3.13 ▲0.0246.87 ▲2.85
Add New Post /wp-admin/post-new.php5.43 ▲0.00103.26 ▼549.37
Media Library /wp-admin/upload.php3.02 ▲0.0234.02 ▼4.76

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Clone Woo Orders - Free by WP Masters
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.95 ▲0.0515.66 ▲6.9849.33 ▼1.20
Dashboard /wp-admin2,969 ▲355.92 ▼0.03157.73 ▲15.74109.42 ▲1.33
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0063.58 ▼3.5194.89 ▲4.66
Add New Post /wp-admin/post-new.php1,500 ▼2,18718.61 ▲0.55432.56 ▼38.60112.80 ▲2.91
Media Library /wp-admin/upload.php1,822 ▲745.03 ▲0.03156.67 ▲0.91117.40 ▲4.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% 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 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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clone-woo-orders-free-by-wp-masters/wpm-woo-clone-order.php:143

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: clone orders, copy order, clone, duplicate order, duplicate...

clone-woo-orders-free-by-wp-masters/wpm-woo-clone-order.php 85% from 13 tests

Analyzing the main PHP file in "Clone Woo Orders - Free by WP Masters" version 1.0
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("clone-woo-orders-free-by-wp-masters.php" instead of "wpm-woo-clone-order.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected87 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.48
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin