89% soluship-shipping

Code Review | Soluship Shipping For Woocommerce

WordPress plugin Soluship Shipping For Woocommerce scored 89% from 54 tests.

About plugin

  • Plugin page: soluship-shipping
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 18, 2017
  • Latest release: Nov 18, 2022
  • Number of updates: 27
  • Update frequency: every 77.7 days
  • Top authors: iccarrier (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,166 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
Installer ran successfully

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

This is a short check of server-side resources used by Soluship Shipping For Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.88 ▼8.17
Dashboard /wp-admin3.31 ▲0.0048.93 ▲2.74
Posts /wp-admin/edit.php3.36 ▲0.0045.23 ▼7.16
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.47 ▼22.26
Media Library /wp-admin/upload.php3.23 ▲0.0034.04 ▲2.15

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Soluship Shipping For Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.391.57 ▲0.0140.81 ▼0.15
Dashboard /wp-admin2,203 ▲155.83 ▼0.0793.17 ▼20.3137.06 ▼9.11
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0233.56 ▼6.8733.65 ▼3.22
Add New Post /wp-admin/post-new.php1,514 ▼017.82 ▲0.26658.50 ▼6.2149.61 ▼15.31
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.01107.08 ▲15.2445.47 ▲5.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output 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 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Selected shipping method automatically updates customer's checkout price and cart page), #2 (Add handling markups,free shipping if required), #3 (Login to the Soluship "ECOMMERCE" hub and get your WordPress store access key), #4 (Print Shipping Labels in order view Page), #5 (Set From shipping address.), #6 (Packaging methods), #7 (Default dimensions and it's enable functionality.)
Please take inspiration from this readme.txt

soluship-shipping/woo-soluship-shipping.php 77% from 13 tests

The primary PHP file in "Soluship Shipping For Woocommerce" version 1.2.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("soluship-shipping.php" instead of "woo-soluship-shipping.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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 plugin1,354 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1328851,043
JavaScript115340288
CSS13023

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity28.50
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity4.93
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.86MB with 0.62MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png318.70KB93.04KB▼ 70.81%
screenshot-1.png54.60KB14.50KB▼ 73.45%
screenshot-3.png191.40KB56.19KB▼ 70.64%
screenshot-6.png93.64KB25.39KB▼ 72.88%
screenshot-4.png73.79KB20.53KB▼ 72.18%