90% simple-shipping-labels-for-woocommerce

Code Review | Simple Shipping Labels for WooCommerce

WordPress plugin Simple Shipping Labels for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: simple-shipping-l...
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 5, 2020
  • Latest release: Apr 7, 2023
  • Number of updates: 12
  • Update frequency: every 78.8 days
  • Top authors: dima411 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /7,776 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.07MB] [CPU: ▼14.86ms] Passed 4 tests

Analyzing server-side resources used by Simple Shipping Labels for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.52 ▼2.58
Dashboard /wp-admin3.45 ▲0.1045.44 ▼12.76
Posts /wp-admin/edit.php3.56 ▲0.2045.62 ▼4.28
Add New Post /wp-admin/post-new.php5.34 ▼0.5564.33 ▼39.83
Media Library /wp-admin/upload.php3.37 ▲0.1433.73 ▼0.25
Simple Shipping Labels /wp-admin/admin.php?page=sslabels_settings3.3431.13

Server storage [IO: ▲0.07MB] [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: 8 new files
Database: no new tables, 7 new options
New WordPress options
recovery_mode_email_last_sent
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Simple Shipping Labels for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.031.60 ▼0.0042.06 ▼0.19
Dashboard /wp-admin2,203 ▲155.80 ▼0.2593.48 ▼7.4340.36 ▼6.37
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0133.60 ▼7.1134.41 ▼1.67
Add New Post /wp-admin/post-new.php45 ▼1,4880.44 ▼22.680.07 ▼653.799.41 ▼52.77
Media Library /wp-admin/upload.php1,385 ▼64.17 ▼0.01103.68 ▲5.5560.72 ▲14.04
Simple Shipping Labels /wp-admin/admin.php?page=sslabels_settings1,1581.8529.2730.47

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: shipping labels, print, woocommerce shipping labels, dymo, woocommerce

simple-shipping-labels-for-woocommerce/simple-shipping-labels.php 92% from 13 tests

"Simple Shipping Labels for WooCommerce" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-shipping-labels-for-woocommerce.php" instead of "simple-shipping-labels.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected910 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3203299789
JavaScript2232476
SVG10823
CSS14022

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity89.00
▷ Minimum class complexity89.00
▷ Maximum class complexity89.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.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
PNG images were not found in this plugin