83% shipday-for-woocommerce

Code Review | Local Delivery App for WordPress (WooCommerce) by Shipday

WordPress plugin Local Delivery App for WordPress (WooCommerce) by Shipday scored83%from 54 tests.

About plugin

  • Plugin page: shipday-for-wooco...
  • Plugin version: 1.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 24, 2020
  • Latest release: Aug 28, 2023
  • Number of updates: 122
  • Update frequency: every 8.5 days
  • Top authors: shipdayinc (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /19,987 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.21MB] [CPU: ▲3.54ms] Passed 4 tests

Server-side resources used by Local Delivery App for WordPress (WooCommerce) by Shipday
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2239.07 ▲0.25
Dashboard /wp-admin3.55 ▲0.2554.82 ▲7.40
Posts /wp-admin/edit.php3.60 ▲0.2548.00 ▲2.23
Add New Post /wp-admin/post-new.php6.07 ▲0.1892.69 ▲8.52
Media Library /wp-admin/upload.php3.41 ▲0.1836.51 ▲4.29

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Local Delivery App for WordPress (WooCommerce) by Shipday
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.41 ▼0.151.88 ▲0.1449.48 ▲5.23
Dashboard /wp-admin2,195 ▲155.62 ▼0.0493.56 ▲3.2342.82 ▲6.39
Posts /wp-admin/edit.php2,100 ▲182.03 ▼0.0134.20 ▲0.0534.54 ▼5.12
Add New Post /wp-admin/post-new.php1,535 ▲918.36 ▼4.44625.18 ▼54.2264.50 ▲2.34
Media Library /wp-admin/upload.php1,403 ▲34.19 ▲0.0094.01 ▼13.1240.61 ▼5.40

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Woo_Order_Shipday' not found in wp-content/plugins/shipday-for-woocommerce/order_data/Dokan_Order_Shipday.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: The official readme.txt might help

shipday-for-woocommerce/shipday-integration-for-wooCommerce.php 77% from 13 tests

The principal PHP file in "Local Delivery App for WordPress (WooCommerce) by Shipday" v. 1.7 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 224 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("shipday-for-woocommerce.php" instead of "shipday-integration-for-wooCommerce.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,318 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP22224301,318

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.31
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods92
▷ Static methods3740.22%
▷ Public methods8794.57%
▷ Protected methods00.00%
▷ Private methods55.43%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected