77% autocomplete-wc-order-status

Code Review | Autocomplete Order Status for WooCommerce

WordPress plugin Autocomplete Order Status for WooCommerce scored77%from 54 tests.

About plugin

  • Plugin page: autocomplete-wc-o...
  • Plugin version: 1.4.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 5, 2023
  • Latest release: Nov 9, 2023
  • Number of updates: 22
  • Update frequency: every 14.0 days
  • Top authors: noruzzaman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,098 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.29MB] [CPU: ▼6.32ms] Passed 4 tests

An overview of server-side resources used by Autocomplete Order Status for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3342.98 ▲3.62
Dashboard /wp-admin3.63 ▲0.2850.53 ▼11.05
Posts /wp-admin/edit.php3.68 ▲0.3250.20 ▲0.04
Add New Post /wp-admin/post-new.php6.17 ▲0.2884.19 ▼17.39
Media Library /wp-admin/upload.php3.49 ▲0.2635.40 ▲3.14

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Autocomplete Order Status for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲11513.37 ▼0.987.97 ▲6.1243.66 ▼0.24
Dashboard /wp-admin2,199 ▲255.61 ▲0.0289.83 ▼11.7339.89 ▼2.84
Posts /wp-admin/edit.php2,101 ▲11.95 ▼0.2036.93 ▼0.6233.54 ▲0.55
Add New Post /wp-admin/post-new.php1,530 ▲423.10 ▲0.10645.37 ▼44.0955.95 ▲8.78
Media Library /wp-admin/upload.php1,398 ▲14.22 ▲0.0896.35 ▼0.7444.91 ▲1.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/autocomplete-wc-order-status/public/partials/autocomplete-woocommerce-order-status-public-display.php
    • > /wp-content/plugins/autocomplete-wc-order-status/admin/partials/autocomplete-woocommerce-order-status-admin-display.php
  • 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/autocomplete-wc-order-status/includes/class-autocomplete-woocommerce-order-status-completed.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed: Please take inspiration from this readme.txt

autocomplete-wc-order-status/autocomplete-woocommerce-order-status.php 77% from 13 tests

The main file in "Autocomplete Order Status for WooCommerce" v. 1.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 256 characters long)
  • 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: Please rename the main PHP file in this plugin to the plugin slug ("autocomplete-wc-order-status.php" instead of "autocomplete-woocommerce-order-status.php")

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
No dangerous file extensions were detected2,751 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP276601,4372,321
Markdown1700196
XML151199
JSON30097
YAML16032
JavaScript24546
CSS2080

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 code0.40
Average class complexity18.56
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods156
▷ Static methods2113.46%
▷ Public methods11473.08%
▷ Protected methods63.85%
▷ Private methods3623.08%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
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
There were not PNG files found in your plugin