83% wc-couryier

Code Review | Couryier For WooCommerce

WordPress plugin Couryier For WooCommerce scored 83% from 54 tests.

About plugin

  • Plugin page: wc-couryier
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.0.2
  • WordPress version: 6.3.1
  • First release: Jul 26, 2021
  • Latest release: Oct 6, 2022
  • Number of updates: 6
  • Update frequency: every 73.0 days
  • Top authors: couryierwc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 639 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Couryier For WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.57 ▼2.93
Dashboard /wp-admin3.31 ▲0.0043.29 ▼3.00
Posts /wp-admin/edit.php3.36 ▲0.0048.69 ▲1.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.42 ▼0.47
Media Library /wp-admin/upload.php3.23 ▲0.0033.86 ▼0.59

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

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

Browser metrics Passed 4 tests

Couryier For WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.15 ▼1.221.64 ▼0.1439.68 ▼1.06
Dashboard /wp-admin2,203 ▲184.84 ▼1.07110.05 ▼3.7440.60 ▼0.37
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0039.60 ▲5.3436.25 ▲3.99
Add New Post /wp-admin/post-new.php1,514 ▼2817.75 ▼0.48623.27 ▲18.7859.42 ▲8.29
Media Library /wp-admin/upload.php1,388 ▼04.13 ▼0.09107.57 ▲5.1945.50 ▼1.27

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 8× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wc-couryier/admin/couryier-login/login-form.php
    • > /wp-content/plugins/wc-couryier/couryier-delivery.php
    • > /wp-content/plugins/wc-couryier/classes/class-couryier-api.php
    • > /wp-content/plugins/wc-couryier/admin/couryier-login/login_logout.php
    • > /wp-content/plugins/wc-couryier/classes/class-couryier-shipping.php
    • > /wp-content/plugins/wc-couryier/admin/couryier-orders.php
    • > /wp-content/plugins/wc-couryier/admin/couryier-settings/couryier-user-settings.php
    • > /wp-content/plugins/wc-couryier/utils/functions.php

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #3 (Assign Couryier to a zone)
Please take inspiration from this readme.txt

wc-couryier/couryier-delivery.php 85% from 13 tests

Analyzing the main PHP file in "Couryier For WooCommerce" version 1.0.1
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "5.4")
  • Main file name: Name the main plugin file the same as the plugin slug ("wc-couryier.php" instead of "couryier-delivery.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin941 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP822487890
JavaScript12033
CSS12018

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity20.00
▷ Minimum class complexity6.00
▷ Maximum class complexity46.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods931.03%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/couryier-settings/logo1.png32.48KB15.28KB▼ 52.95%
admin/couryier-login/logo.png5.72KB3.51KB▼ 38.63%
admin/assets/imgs/couryierlogo.png2.94KB2.46KB▼ 16.19%
admin/couryier-login/logo1.png32.48KB15.28KB▼ 52.95%
admin/assets/imgs/icon.png0.46KB0.45KB▼ 1.71%