84% 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 scored84%from 54 tests.

About plugin

  • Plugin page: clone-woo-orders-...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Jul 13, 2021
  • Latest release: Mar 28, 2023
  • Number of updates: 17
  • Update frequency: every 42.5 days
  • Top authors: wpmasterscom (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

1,000+ active /4,691 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼5.34ms] 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 /3.50 ▲0.0334.37 ▼5.53
Dashboard /wp-admin3.33 ▲0.0343.75 ▼3.07
Posts /wp-admin/edit.php3.39 ▲0.0245.20 ▼0.57
Add New Post /wp-admin/post-new.php5.92 ▲0.0282.43 ▼12.18
Media Library /wp-admin/upload.php3.26 ▲0.0235.98 ▲3.50

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, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

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 /2,814 ▲5314.52 ▲1.251.85 ▼2.4740.87 ▲1.77
Dashboard /wp-admin2,195 ▲155.63 ▼0.0582.54 ▼5.6938.64 ▼4.08
Posts /wp-admin/edit.php2,082 ▼152.00 ▲0.0335.51 ▼2.4237.10 ▲2.08
Add New Post /wp-admin/post-new.php1,527 ▼222.92 ▼0.10597.77 ▼31.6260.60 ▲12.20
Media Library /wp-admin/upload.php1,403 ▲64.21 ▼0.0994.49 ▼11.1945.52 ▲2.86

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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:152

User-side errors Passed 1 test

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

Optimizations

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
8 plugin tags: copy order, clone order, clone, duplicate order, woo...

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.3
The following require your attention:
  • 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")
  • 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

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 detected109 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12676109

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.39
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%
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

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