99% woo-save-manual-order-user

Code Review | WooCommerce Save Manual Order User

WordPress plugin WooCommerce Save Manual Order User scored 99% from 53 tests.

About plugin

  • Plugin page: woo-save-manual-o...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.7.2
  • WordPress version: 5.8.1
  • First release: Jun 17, 2019
  • Latest release: May 27, 2021
  • Number of updates: 15
  • Update frequency: every 47.4 days
  • Top authors: TimsSolutions (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 385 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by WooCommerce Save Manual Order User
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1331.68 ▲10.40
Dashboard /wp-admin3.07 ▲0.0243.37 ▼0.11
Posts /wp-admin/edit.php3.12 ▲0.0243.31 ▼0.44
Add New Post /wp-admin/post-new.php5.44 ▲0.0191.10 ▼1,097.75
Media Library /wp-admin/upload.php3.02 ▲0.0126.27 ▼12.61

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Save Manual Order User
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲6815.75 ▲0.317.93 ▲0.5742.50 ▼8.61
Dashboard /wp-admin2,934 ▲816.15 ▲0.28134.91 ▼1.42102.60 ▲4.70
Posts /wp-admin/edit.php2,706 ▲32.81 ▲0.1165.92 ▲1.8491.78 ▼0.38
Add New Post /wp-admin/post-new.php1,851 ▼18718.78 ▼0.51350.25 ▼36.15105.04 ▼10.85
Media Library /wp-admin/upload.php1,775 ▲35.01 ▼0.02149.42 ▼2.36111.58 ▼9.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: manual order, save manual order user, billing details, woocommerce, order actions...

woo-save-manual-order-user/woocommerce-save-manual-order-user.php 69% from 13 tests

The entry point to "WooCommerce Save Manual Order User" version 1.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("4.0.0" instead of "3.0.0")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-save-manual-order-user.php" instead of "woocommerce-save-manual-order-user.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 199 characters long)
  • 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin145 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File2141486
PHP1142459

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin