80% shipway-shipment-tracking-and-notify

Code Review | Shipway Experience - Tracking & Notification

WordPress plugin Shipway Experience - Tracking & Notification scored80%from 54 tests.

About plugin

  • Plugin page: shipway-shipment-...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2015
  • Latest release: Sep 22, 2022
  • Number of updates: 34
  • Update frequency: every 77.4 days
  • Top authors: onjection (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /15,987 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.33ms] Passed 4 tests

This is a short check of server-side resources used by Shipway Experience - Tracking & Notification
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1847.03 ▼1.12
Dashboard /wp-admin3.34 ▲0.0456.40 ▲4.69
Posts /wp-admin/edit.php3.39 ▲0.0356.17 ▼3.22
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.05 ▼18.68
Media Library /wp-admin/upload.php3.27 ▲0.0338.33 ▲1.71

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: 1 new table, 7 new options
New tables
wp_sw_couriers
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
jal_db_version
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Shipway Experience - Tracking & Notification
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.34 ▼0.191.65 ▼0.2141.44 ▼8.57
Dashboard /wp-admin2,204 ▲275.62 ▲0.0188.00 ▼5.9439.77 ▼4.81
Posts /wp-admin/edit.php2,104 ▲71.96 ▼0.0238.01 ▼1.2034.32 ▼2.28
Add New Post /wp-admin/post-new.php1,532 ▲623.69 ▲0.75665.45 ▼62.4863.25 ▲10.75
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.00104.05 ▼25.8043.08 ▼7.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_sw_couriers
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • jal_db_version
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
6 plugin tags: woocommerce, tracking, shipway, shipping, notify...

shipway-shipment-tracking-and-notify/init.php 92% from 13 tests

The principal PHP file in "Shipway Experience - Tracking & Notification" v. 3.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("shipway-shipment-tracking-and-notify.php" instead of "init.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
Everything looks great! No dangerous files found in this plugin577 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP221060577

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin