90% wc-shipmondo-shipping

Code Review | Multi-Carrier Shipmondo Shipping for WooCommerce

WordPress plugin Multi-Carrier Shipmondo Shipping for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wc-shipmondo-ship...
  • Plugin version: 1.2.9
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 23, 2021
  • Latest release: Aug 21, 2023
  • Number of updates: 26
  • Update frequency: every 32.7 days
  • Top authors: oneteamsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /885 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Multi-Carrier Shipmondo Shipping for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.75 ▼4.94
Dashboard /wp-admin3.31 ▼0.0351.92 ▼13.06
Posts /wp-admin/edit.php3.43 ▲0.0743.55 ▼1.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.69 ▼16.48
Media Library /wp-admin/upload.php3.24 ▲0.0137.00 ▼0.71

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multi-Carrier Shipmondo Shipping for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.171.97 ▲0.2047.13 ▲1.95
Dashboard /wp-admin2,192 ▲125.55 ▼0.1083.49 ▼5.0341.92 ▲3.97
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0535.84 ▲0.1834.82 ▲1.49
Add New Post /wp-admin/post-new.php1,555 ▲2418.13 ▼4.92602.34 ▼35.9260.74 ▲6.99
Media Library /wp-admin/upload.php1,394 ▼64.24 ▼0.0395.63 ▼10.4840.55 ▼1.80

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

wc-shipmondo-shipping/wc-shipmondo-shipping.php Passed 13 tests

The main PHP script in "Multi-Carrier Shipmondo Shipping for WooCommerce" version 1.2.9 is automatically included on every request by WordPress
48 characters long description:
Adds Shipmondo shippping methods to Woocommerce.

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
Good job! No executable or dangerous file extensions detected4,802 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP219862244,802

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.37
Average class complexity27.37
▷ Minimum class complexity1.00
▷ Maximum class complexity171.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes19
▷ Abstract classes526.32%
▷ Concrete classes1473.68%
▷ Final classes00.00%
Methods291
▷ Static methods20.69%
▷ Public methods17359.45%
▷ Protected methods11238.49%
▷ Private methods62.06%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/1TeamSoftware-logo.png14.55KB4.50KB▼ 69.05%
assets/images/1TeamSoftware-icon.png0.59KB0.75KB0.00%