90% woo-linnworks-shipment-tracking

Code Review | Shipment Tracking for Linnworks on WooCommerce

WordPress plugin Shipment Tracking for Linnworks on WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woo-linnworks-shi...
  • Plugin version: 0.7
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.5.3
  • WordPress version: 6.3.1
  • First release: Sep 18, 2019
  • Latest release: Nov 21, 2020
  • Number of updates: 11
  • Update frequency: every 39.1 days
  • Top authors: andrewabarber (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /865 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.45ms] Passed 4 tests

Analyzing server-side resources used by Shipment Tracking for Linnworks on WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.95 ▼4.67
Dashboard /wp-admin3.33 ▼0.0148.61 ▼13.77
Posts /wp-admin/edit.php3.38 ▲0.0252.55 ▼0.83
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.99 ▼18.53
Media Library /wp-admin/upload.php3.25 ▲0.0239.29 ▲1.27

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please fix the following
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/woo-linnworks-shipment-tracking/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Shipment Tracking for Linnworks on WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲8313.20 ▼1.172.02 ▼0.2141.19 ▲1.00
Dashboard /wp-admin2,224 ▲204.88 ▼1.04111.21 ▲1.2443.00 ▲0.38
Posts /wp-admin/edit.php2,103 ▲32.06 ▲0.0039.34 ▼1.4034.37 ▼2.04
Add New Post /wp-admin/post-new.php1,554 ▲923.20 ▲0.22670.82 ▲41.9356.46 ▼5.12
Media Library /wp-admin/upload.php1,397 ▼34.33 ▲0.1694.25 ▼13.4041.93 ▼5.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: woocommerce, linnworks, shipping

woo-linnworks-shipment-tracking/woo-linnworks-shipment-tracking.php Passed 13 tests

Analyzing the main PHP file in "Shipment Tracking for Linnworks on WooCommerce" version 0.7
118 characters long description:
A plugin to pull the shipment details from Linnworks -> WooCommerce integration to the frontend for customers to view.

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
Everything looks great! No dangerous files found in this plugin145 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3182691
Markdown144054

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
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