79% woocommerce-smart-send-australian-shipping

Code Review | Smart Send Shipping for WooCommerce

WordPress plugin Smart Send Shipping for WooCommerce scored79%from 54 tests.

About plugin

  • Plugin page: woocommerce-smart...
  • Plugin version: 4.0.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Feb 5, 2013
  • Latest release: Nov 10, 2023
  • Number of updates: 115
  • Update frequency: every 34.2 days
  • Top authors: GoSmartSend (60.87%)sp4cecat (40%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /6,352 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
Install script ran successfully

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

This is a short check of server-side resources used by Smart Send Shipping for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.85 ▼5.80
Dashboard /wp-admin3.31 ▲0.0060.16 ▲11.42
Posts /wp-admin/edit.php3.36 ▲0.0043.20 ▲0.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.05 ▼7.11
Media Library /wp-admin/upload.php3.23 ▲0.0035.23 ▲4.28

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Smart Send Shipping for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.22 ▼0.021.84 ▲0.0344.39 ▼1.99
Dashboard /wp-admin2,192 ▲155.53 ▼0.1285.07 ▼10.6637.29 ▼7.48
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0133.25 ▼4.4534.24 ▲1.65
Add New Post /wp-admin/post-new.php1,526 ▼1922.98 ▼2.05660.72 ▲9.6553.31 ▼19.15
Media Library /wp-admin/upload.php1,400 ▲64.15 ▼0.1196.83 ▼5.0342.88 ▲0.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/woocommerce-smart-send-australian-shipping/uninstall.php+55
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: The official readme.txt is a good inspiration

woocommerce-smart-send-australian-shipping/smart-send.php 77% from 13 tests

The principal PHP file in "Smart Send Shipping for WooCommerce" v. 4.0.5 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-smart-send-australian-shipping.php" instead of "smart-send.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
No dangerous file extensions were detected1,791 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP113335151,720
JavaScript22043
CSS11028

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity21.62
▷ Minimum class complexity5.00
▷ Maximum class complexity52.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods82
▷ Static methods4251.22%
▷ Public methods5364.63%
▷ Protected methods44.88%
▷ Private methods2530.49%
Functions23
▷ Named functions1669.57%
▷ Anonymous functions730.43%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin