83% readytoship-woocommerce-tracking-integration

Code Review | ReadyToShip WooCommerce Tracking Integration

WordPress plugin ReadyToShip WooCommerce Tracking Integration scored83%from 54 tests.

About plugin

  • Plugin page: readytoship-wooco...
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Feb 7, 2016
  • Latest release: Aug 9, 2023
  • Number of updates: 29
  • Update frequency: every 94.6 days
  • Top authors: bslinger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,220 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.02MB] [CPU: ▼8.35ms] Passed 4 tests

An overview of server-side resources used by ReadyToShip WooCommerce Tracking Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0349.62 ▲7.90
Dashboard /wp-admin3.33 ▼0.0149.20 ▼12.92
Posts /wp-admin/edit.php3.38 ▲0.0350.02 ▼0.63
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.41 ▼18.14
Media Library /wp-admin/upload.php3.26 ▲0.0334.83 ▼1.70

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

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

Browser metrics Passed 4 tests

ReadyToShip WooCommerce Tracking Integration: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.34 ▲0.101.87 ▼0.1348.44 ▲4.26
Dashboard /wp-admin2,210 ▲335.59 ▼0.0793.95 ▼1.2043.50 ▲0.71
Posts /wp-admin/edit.php2,118 ▲182.10 ▲0.1336.90 ▼9.9236.71 ▼2.25
Add New Post /wp-admin/post-new.php1,549 ▲1418.17 ▼4.87650.30 ▲21.0658.73 ▼2.09
Media Library /wp-admin/upload.php1,415 ▲154.23 ▲0.0799.19 ▼9.0046.24 ▼5.30

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/readytoship-woocommerce-tracking-integration/includes/woocommerce_install_check.php:102

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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:
  • Screenshots: Screenshot #1 (Tracking data inserted via ReadyToShip) image required
The official readme.txt is a good inspiration

readytoship-woocommerce-tracking-integration/readytoship-wootracking-api.php 85% from 13 tests

The entry point to "ReadyToShip WooCommerce Tracking Integration" version 0.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 180 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("readytoship-woocommerce-tracking-integration.php" instead of "readytoship-wootracking-api.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin301 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP46947301

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity12.33
▷ Minimum class complexity5.00
▷ Maximum class complexity19.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods421.05%
▷ Public methods1684.21%
▷ Protected methods00.00%
▷ Private methods315.79%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin