10% quiposte-orders-tracking-for-woocommerce

Code Review | QUIPOSTE Orders Tracking for WooCommerce

WordPress plugin QUIPOSTE Orders Tracking for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: quiposte-orders-t...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: May 30, 2023
  • Latest release: May 30, 2023
  • Number of updates: 2
  • Update frequency: every 43.5 days
  • Top authors: samendola (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /333 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

Server metrics [RAM: ▼1.92MB] [CPU: ▼58.31ms] Passed 4 tests

Analyzing server-side resources used by QUIPOSTE Orders Tracking for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.83 ▼35.42
Dashboard /wp-admin2.10 ▼1.256.71 ▼55.32
Posts /wp-admin/edit.php2.10 ▼1.268.39 ▼40.37
Add New Post /wp-admin/post-new.php2.10 ▼3.796.17 ▼102.14
Media Library /wp-admin/upload.php2.10 ▼1.146.80 ▼27.48

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: 1 new table, 6 new options
New tables
qp_tracking_info
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

QUIPOSTE Orders Tracking for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.63 ▼0.748.61 ▲6.8039.70 ▼2.26
Dashboard /wp-admin2,207 ▲194.84 ▼0.03105.24 ▼11.5741.94 ▼8.53
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0439.98 ▲2.8936.08 ▼0.79
Add New Post /wp-admin/post-new.php1,523 ▲923.30 ▲5.59677.15 ▲5.6853.27 ▼3.46
Media Library /wp-admin/upload.php1,386 ▼54.27 ▲0.0697.86 ▼0.7541.15 ▼8.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the edit-tracking-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie tables were found after uninstall: 1 table
    • qp_tracking_info
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • 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
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/quiposte-orders-tracking-for-woocommerce/includes/uninstall.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/quiposte-orders-tracking-for-woocommerce/includes/edit-tracking-all.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'quiposte_query_db' not found in wp-content/plugins/quiposte-orders-tracking-for-woocommerce/includes/edit-tracking-all.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/quiposte-orders-tracking-for-woocommerce/includes/popup-new.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'quiposte_query_db' not found in wp-content/plugins/quiposte-orders-tracking-for-woocommerce/includes/edit-tracking-item.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/quiposte-orders-tracking-for-woocommerce/quiposte-orders-tracking-for-woocommerce.php:17

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (orderlistview.png Shows in the list of orders a brief description of the shipping status of the order), #2 (itemview.png Shows the shipping status under each item), #3 (edititem.png Shows the window where the shipping status of the item is modified), #4 (boxview.png Box that is added with access to a button to modify all the shipping statuses of the items), #5 (editallitems.png Shows the window that allows you to modify all the items)
The official readme.txt is a good inspiration

quiposte-orders-tracking-for-woocommerce/quiposte-orders-tracking-for-woocommerce.php Passed 13 tests

The principal PHP file in "QUIPOSTE Orders Tracking for WooCommerce" v. 1.2.0 is loaded by WordPress automatically on each request
87 characters long description:
Allows tracking of the shipment of woocommerce orders and integration with quiposte.com

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected635 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP65333352
JavaScript1151107
PO File23030104
CSS114072

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity3.40
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods28
▷ Static methods1657.14%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/edit.png1.27KB1.35KB0.00%