90% smart-send-logistics

Code Review | Smart Send Logistics

WordPress plugin Smart Send Logistics scored90%from 54 tests.

About plugin

  • Plugin page: smart-send-logistics
  • Plugin version: 8.0.27
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: May 29, 2015
  • Latest release: Aug 7, 2023
  • Number of updates: 130
  • Update frequency: every 23.0 days
  • Top authors: SmartSend (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active /25,039 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.78ms] Passed 4 tests

A check of server-side resources used by Smart Send Logistics
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.97 ▼2.93
Dashboard /wp-admin3.42 ▲0.1146.17 ▼6.15
Posts /wp-admin/edit.php3.53 ▲0.1746.68 ▼0.99
Add New Post /wp-admin/post-new.php6.00 ▲0.1191.61 ▲2.99
Media Library /wp-admin/upload.php3.34 ▲0.1137.97 ▲2.96

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Smart Send Logistics
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6413.24 ▼1.041.68 ▼0.8645.09 ▲4.16
Dashboard /wp-admin2,229 ▲265.82 ▼0.0799.03 ▼18.8943.67 ▼0.60
Posts /wp-admin/edit.php2,109 ▲92.01 ▼0.0133.91 ▼3.0538.62 ▲3.29
Add New Post /wp-admin/post-new.php1,550 ▲523.22 ▲0.06650.25 ▼49.6551.71 ▼18.61
Media Library /wp-admin/upload.php1,411 ▲114.22 ▲0.0197.60 ▼11.5045.32 ▼1.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 38 tag instead of maximum 10
You can look at the official readme.txt

smart-send-logistics/smart-send-logistics.php Passed 13 tests

The main PHP file in "Smart Send Logistics" ver. 8.0.27 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
Smart Send Shipping for WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,935 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP221,0851,9824,762
JavaScript34021149
CSS25024

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity25.77
▷ Minimum class complexity1.00
▷ Maximum class complexity136.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity92.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes00.00%
Methods420
▷ Static methods20.48%
▷ Public methods38691.90%
▷ Protected methods225.24%
▷ Private methods122.86%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants1285.71%
▷ Class constants214.29%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected