94% woo-easy-autocomplete-order

Code Review | WooCommerce Easy Autocomplete Orders

WordPress plugin WooCommerce Easy Autocomplete Orders scored 94% from 54 tests.

About plugin

  • Plugin page: woo-easy-autocomp...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.8
  • WordPress version: 5.8.1
  • First release: Jun 21, 2017
  • Latest release: Jun 21, 2017
  • Number of updates: 8
  • Update frequency: every 0.6 days
  • Top authors: allrain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 499 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by WooCommerce Easy Autocomplete Orders
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0144.72 ▲7.67
Dashboard /wp-admin3.06 ▲0.0148.84 ▼2.01
Posts /wp-admin/edit.php3.11 ▲0.0150.26 ▲0.59
Add New Post /wp-admin/post-new.php5.42 ▼0.0196.52 ▼569.97
Media Library /wp-admin/upload.php3.01 ▲0.0033.68 ▼5.31

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Easy Autocomplete Orders
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.94 ▼0.0210.19 ▼2.4047.00 ▼2.28
Dashboard /wp-admin2,973 ▲425.91 ▼0.03164.48 ▼64.72112.78 ▼7.88
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0170.79 ▲2.8186.92 ▼3.84
Add New Post /wp-admin/post-new.php1,500 ▼9418.55 ▼0.27400.53 ▼0.89107.71 ▼3.09
Media Library /wp-admin/upload.php1,810 ▲35.01 ▼0.03157.83 ▼0.39113.96 ▼11.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-easy-autocomplete-order/woo-easy-autocomplete-order.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: woocommerce, autocomplete-orders, paid_date-for-cheque-order

woo-easy-autocomplete-order/woo-easy-autocomplete-order.php Passed 13 tests

The principal PHP file in "WooCommerce Easy Autocomplete Orders" v. 1.1 is loaded by WordPress automatically on each request
125 characters long description:
Autocomplete order for the type of payment "Check payments(cheque)", "Cash on delivery(cod)" or "Direct bank transfer(bacs)"

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin21 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP142621

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.17
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin