78% pd-woo-tracking-order

Code Review | pd Woo Tracking Order

WordPress plugin pd Woo Tracking Order scored78%from 54 tests.

About plugin

  • Plugin page: pd-woo-tracking-o...
  • Plugin version: 2.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-5.8.1
  • WordPress version: 6.3.1
  • First release: Feb 22, 2020
  • Latest release: Oct 8, 2021
  • Number of updates: 13
  • Update frequency: every 45.9 days
  • Top authors: proficientdesigners (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /6,182 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by pd Woo Tracking Order
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.68 ▲0.62
Dashboard /wp-admin3.31 ▲0.0046.69 ▼7.50
Posts /wp-admin/edit.php3.36 ▲0.0045.65 ▼1.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.60 ▼13.30
Media Library /wp-admin/upload.php3.23 ▲0.0035.66 ▼2.20

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by pd Woo Tracking Order
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.76 ▲0.381.95 ▲0.1845.76 ▼10.41
Dashboard /wp-admin2,206 ▲185.90 ▲1.03100.34 ▼19.4444.15 ▼2.08
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0435.44 ▲0.6731.81 ▼1.83
Add New Post /wp-admin/post-new.php1,544 ▲3018.20 ▲0.53637.13 ▼60.7157.27 ▲2.60
Media Library /wp-admin/upload.php1,385 ▼64.19 ▲0.0298.66 ▼1.5239.74 ▼8.95

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/pd-woo-tracking-order/admin/settings/inc/placeholder.php
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pd-woo-tracking-order/ajax/status-visibility.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pd-woo-tracking-order/admin/metaboxes/shop-metabox.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'pd_Woo_Tracking_Send_Email' not found in wp-content/plugins/pd-woo-tracking-order/class/class-admin.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pd-woo-tracking-order/admin/settings/inc/settings.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/pd-woo-tracking-order/admin/settings/main.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/pd-woo-tracking-order/admin/metaboxes/admin-metabox.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/pd-woo-tracking-order/admin/metaboxes/placeholders.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pd-woo-tracking-order/admin/custom-column/order-status.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pd-woo-tracking-order/admin/settings/inc/carriers.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'pd_Woo_Tracking_Order_Front' not found in wp-content/plugins/pd-woo-tracking-order/class/class-email.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: tracking, woocommerce, woocommerce order tracking, order tracking

pd-woo-tracking-order/pd-woo-tracking-order.php 85% from 13 tests

This is the main PHP file of "pd Woo Tracking Order" version 2.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 171 characters long)
  • Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.4.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,898 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP162941351,130
JSON100321
Sass810223
JavaScript2321218
Ruby15174
CSS2002

PHP code Passed 2 tests

Analyzing 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.35
Average class complexity17.75
▷ Minimum class complexity12.00
▷ Maximum class complexity21.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods50
▷ Static methods00.00%
▷ Public methods50100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.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