83% order-auto-complete-for-woocommerce

Code Review | Order auto complete for WooCommerce

WordPress plugin Order auto complete for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: order-auto-comple...
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 8, 2022
  • Latest release: Nov 12, 2023
  • Number of updates: 5
  • Update frequency: every 128.4 days
  • Top authors: kardi420 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /4,987 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Order auto complete for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.93 ▼1.28
Dashboard /wp-admin3.34 ▼0.0144.74 ▼16.87
Posts /wp-admin/edit.php3.39 ▲0.0348.20 ▲0.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.21 ▼8.83
Media Library /wp-admin/upload.php3.26 ▲0.0334.92 ▲2.33

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Order auto complete for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲4814.18 ▼0.172.09 ▲0.0344.06 ▼0.95
Dashboard /wp-admin2,216 ▲395.64 ▼0.1986.84 ▼5.1539.28 ▲0.77
Posts /wp-admin/edit.php2,121 ▲212.02 ▲0.0740.77 ▲4.8035.97 ▼0.99
Add New Post /wp-admin/post-new.php1,541 ▲1123.21 ▲0.21648.93 ▲23.3957.71 ▼5.22
Media Library /wp-admin/upload.php1,421 ▲244.14 ▼0.0598.84 ▼3.6042.45 ▲0.90

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/order-auto-complete-for-woocommerce/function.php:3

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 86% from 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
9 plugin tags: button text, out of stock button change option, add to cart button option, order auto complete, wordpress...

order-auto-complete-for-woocommerce/index.php 69% from 13 tests

"Order auto complete for WooCommerce" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("order-auto-complete-for-woocommerce.php" instead of "index.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.8" instead of "4.2.0")
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin185 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24965145
CSS25140

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin