93% wc-shipmendo-lite

Code Review | shipmendo - Lite

WordPress plugin shipmendo - Lite scored 93% from 54 tests.

About plugin

  • Plugin page: wc-shipmendo-lite
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8
  • WordPress version: 5.8.1
  • First release: Aug 13, 2021
  • Latest release: Nov 8, 2021
  • Number of updates: 15
  • Update frequency: every 5.8 days
  • Top authors: grilabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 278 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by shipmendo - Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0127.09 ▼8.22
Dashboard /wp-admin3.07 ▲0.0034.93 ▼18.33
Posts /wp-admin/edit.php3.12 ▲0.0137.71 ▼2.49
Add New Post /wp-admin/post-new.php5.43 ▼0.0174.21 ▼586.66
Media Library /wp-admin/upload.php3.01 ▲0.0125.26 ▼2.75

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

shipmendo - Lite: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲7815.99 ▲0.335.00 ▼1.0476.08 ▼10.64
Dashboard /wp-admin2,942 ▲436.13 ▲0.03116.54 ▼25.27167.81 ▼31.39
Posts /wp-admin/edit.php2,749 ▲93.24 ▲0.0065.11 ▼4.75138.37 ▼9.89
Add New Post /wp-admin/post-new.php3,743 ▲5018.81 ▲3.37421.93 ▼23.73158.85 ▼7.66
Media Library /wp-admin/upload.php1,761 ▲95.52 ▼0.01133.61 ▼7.98181.92 ▼1.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/wc-shipmendo-lite/emails/shipped-order.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt is a good inspiration

wc-shipmendo-lite/shipmendo-lite.php 77% from 13 tests

The primary PHP file in "shipmendo - Lite" version 1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.6" instead of "5.5")
  • Main file name: Name the main plugin file the same as the plugin slug ("wc-shipmendo-lite.php" instead of "shipmendo-lite.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 plugin766 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
Sass1450250
CSS141241
PO File15978132
SVG302101
PHP70624
JavaScript13118

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity11.50
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
13 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/shipment-tracking.png1.98KB0.67KB▼ 65.94%
assets/images/up-arrow.png12.49KB5.93KB▼ 52.49%
assets/images/shipmendo-small-icon.png2.71KB0.27KB▼ 90.14%
assets/images/shipmendo-transparent-logo.png9.98KB6.16KB▼ 38.31%
assets/images/grilabs-logo.png9.43KB3.27KB▼ 65.26%