78% parcelpanel

Code Review | Shipment Tracking, Tracking, and Order Tracking for WooCommerce - ParcelPanel (Free plan available)

WordPress plugin Shipment Tracking, Tracking, and Order Tracking for WooCommerce - ParcelPanel (Free plan available) scored78%from 54 tests.

About plugin

  • Plugin page: parcelpanel
  • Plugin version: 3.7.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 8, 2021
  • Latest release: Nov 6, 2023
  • Number of updates: 330
  • Update frequency: every 2.3 days
  • Top authors: lijiahao (66.67%)parcelpanel (33.64%)

Code review

54 tests

User reviews

433 reviews

Install metrics

6,000+ active /70,513 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Shipment Tracking, Tracking, and Order Tracking for WooCommerce - ParcelPanel (Free plan available)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.99 ▼4.34
Dashboard /wp-admin3.31 ▼0.0345.21 ▼15.72
Posts /wp-admin/edit.php3.36 ▲0.0142.61 ▼2.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.86 ▼6.19
Media Library /wp-admin/upload.php3.23 ▲0.0031.56 ▼1.74

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 200 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Shipment Tracking, Tracking, and Order Tracking for WooCommerce - ParcelPanel (Free plan available): an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲1814.04 ▼0.321.81 ▼0.0643.81 ▲1.14
Dashboard /wp-admin2,189 ▲95.50 ▼0.1189.86 ▼10.6739.73 ▼10.73
Posts /wp-admin/edit.php2,097 ▼31.94 ▼0.0335.04 ▼2.0034.41 ▲0.31
Add New Post /wp-admin/post-new.php1,526 ▼023.08 ▲1.89629.44 ▼63.2852.01 ▼0.54
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0296.01 ▼1.1841.67 ▼1.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/parcelpanel/templates/app.php
  • 40× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Trait 'ParcelPanel\\Libs\\Singleton' not found in wp-content/plugins/parcelpanel/includes/Action/AdminHome.php on line 9
    • > PHP Notice
      Undefined variable: display_option in wp-content/plugins/parcelpanel/templates/tracking/tracking-page.php on line 16
    • > PHP Fatal error
      Trait 'ParcelPanel\\Libs\\Singleton' not found in wp-content/plugins/parcelpanel/includes/Action/Email.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/parcelpanel/includes/Emails/WC_Email_Shipping_Notice.php:9
    • > PHP Fatal error
      Trait 'ParcelPanel\\Libs\\Singleton' not found in wp-content/plugins/parcelpanel/includes/Action/UserTrackPage.php on line 15
    • > PHP Fatal error
      Trait 'ParcelPanel\\Libs\\Singleton' not found in wp-content/plugins/parcelpanel/includes/Action/Courier.php on line 10
    • > PHP Fatal error
      Trait 'ParcelPanel\\Libs\\Singleton' not found in wp-content/plugins/parcelpanel/includes/Action/Upload.php on line 8
    • > PHP Fatal error
      Trait 'ParcelPanel\\Libs\\Singleton' not found in wp-content/plugins/parcelpanel/includes/Api/Tracking.php on line 11
    • > PHP Fatal error
      Trait 'ParcelPanel\\Libs\\Singleton' not found in wp-content/plugins/parcelpanel/includes/Action/AdminSettings.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/parcelpanel/includes/Api/RestApi.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

parcelpanel/parcelpanel.php 85% from 13 tests

The main PHP file in "Shipment Tracking, Tracking, and Order Tracking for WooCommerce - ParcelPanel (Free plan available)" ver. 3.7.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.9" instead of "5.8")
  • Description: Keep the plugin description shorter than 140 characters (currently 154 characters long)

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 plugin25,385 lines of code in 169 files:
LanguageFilesBlank linesComment linesLines of code
PHP804,2053,65318,042
JavaScript408369095,616
LESS202301211,193
CSS144341452
SVG1312359
HTML11018
JSON1005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity42.06
▷ Minimum class complexity1.00
▷ Maximum class complexity322.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces11
Interfaces0
Traits1
Classes48
▷ Abstract classes00.00%
▷ Concrete classes48100.00%
▷ Final classes24.17%
Methods607
▷ Static methods17228.34%
▷ Public methods45875.45%
▷ Protected methods254.12%
▷ Private methods12420.43%
Functions39
▷ Named functions717.95%
▷ Anonymous functions3282.05%
Constants91
▷ Global constants4549.45%
▷ Class constants4650.55%
▷ Public constants46100.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
5 PNG files occupy 0.20MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/imgs/logo.png18.46KB7.57KB▼ 58.99%
assets/icons/status/blank.png0.15KB0.11KB▼ 28.03%
assets/imgs/settings/my-orders.png24.95KB7.65KB▼ 69.32%
assets/imgs/settings/admin-orders.png43.15KB15.08KB▼ 65.05%
assets/imgs/popup/mask1.png121.74KB81.52KB▼ 33.04%