72% wc-tracking-status

Code Review | WC Tracking Status

WordPress plugin WC Tracking Status scored72%from 54 tests.

About plugin

  • Plugin page: wc-tracking-status
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 6, 2021
  • Latest release: May 18, 2023
  • Number of updates: 28
  • Update frequency: every 27.6 days
  • Top authors: diurvan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,662 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.16MB] [CPU: ▼7.19ms] Passed 4 tests

A check of server-side resources used by WC Tracking Status
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1740.35 ▼1.27
Dashboard /wp-admin3.47 ▲0.1746.52 ▼0.63
Posts /wp-admin/edit.php3.48 ▲0.1240.23 ▼9.11
Add New Post /wp-admin/post-new.php6.06 ▲0.1780.96 ▼17.74
Media Library /wp-admin/upload.php3.40 ▲0.1734.69 ▲1.50
WC Tracking Settings /wp-admin/admin.php?page=diu_wc_tracking_submenu_settings3.3531.05

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
recovery_mode_email_last_sent
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WC Tracking Status
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.331.85 ▲0.1043.72 ▲0.17
Dashboard /wp-admin2,189 ▲125.52 ▼0.3982.88 ▼18.3436.90 ▼10.47
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0333.41 ▲0.0934.89 ▼1.27
Add New Post /wp-admin/post-new.php1,526 ▼922.95 ▲5.02634.50 ▲16.1051.58 ▼10.02
Media Library /wp-admin/upload.php1,403 ▲34.24 ▲0.0496.75 ▲0.4443.75 ▲3.77
WC Tracking Settings /wp-admin/admin.php?page=diu_wc_tracking_submenu_settings7171.129.1426.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • recovery_mode_email_last_sent
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=diu_wc_tracking_submenu_settings
    • > Error in wp-content/plugins/wc-tracking-status/includes/admin/track-config.php+346
    Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/wc-tracking-status/includes/admin/track-config.php:346
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): diu_wc_tracking_submenu_settings()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/admin.php(259): do_action()
    #4 {main}
    thrown

SRP 0% 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 output text when accessed directly:
    • > /wp-content/plugins/wc-tracking-status/wc-tracking-status.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-tracking-status/includes/admin/track-config.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-tracking-status/includes/front/track-view.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% 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
5 plugin tags: woocommerce, status tracking, status shipping, status order, multilingual

wc-tracking-status/wc-tracking-status.php 92% from 13 tests

The main PHP file in "WC Tracking Status" ver. 2.0.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 detected1,060 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP38658845
PO File14646110
CSS207103
Markdown1102

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions27
▷ Named functions2696.30%
▷ Anonymous functions13.70%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin