10% woo-shipping-method-rl-carriers

Code Review | WooCommerce Shipping Method: R+L Carriers

WordPress plugin WooCommerce Shipping Method: R+L Carriers scored10%from 54 tests.

About plugin

  • Plugin page: woo-shipping-meth...
  • Plugin version: 1.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 7.8-6.3
  • WordPress version: 6.3.1
  • First release: Aug 9, 2017
  • Latest release: Nov 30, 2023
  • Number of updates: 31
  • Update frequency: every 76.1 days
  • Top authors: rlcarriers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,587 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/woo-shipping-method-rl-carriers/woocommerce-shipping-rlc.php+112
    include_once(includes/classes/RLC_RateQuote_TravelPoint.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.53ms] Passed 4 tests

Server-side resources used by WooCommerce Shipping Method: R+L Carriers
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.84 ▼6.18
Dashboard /wp-admin3.31 ▼0.0442.32 ▼19.09
Posts /wp-admin/edit.php3.36 ▲0.0044.55 ▼1.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.63 ▼14.74
Media Library /wp-admin/upload.php3.23 ▲0.0034.08 ▼2.12

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Shipping Method: R+L Carriers
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.60 ▲0.261.71 ▲0.0839.94 ▼2.99
Dashboard /wp-admin2,198 ▲215.63 ▼0.0389.88 ▼6.7940.15 ▼3.86
Posts /wp-admin/edit.php2,103 ▼01.94 ▼0.0238.38 ▼4.4036.85 ▲3.69
Add New Post /wp-admin/post-new.php1,526 ▼922.93 ▲4.54578.34 ▼78.6753.70 ▼10.71
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.0795.03 ▲1.2040.52 ▼0.65

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/woo-shipping-method-rl-carriers/views/settings_global.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-shipping-method-rl-carriers/includes/admin/settings/global.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: shipping, woocommerce, rl, ltl, rl carriers...

woo-shipping-method-rl-carriers/woocommerce-shipping-rlc.php 85% from 13 tests

"WooCommerce Shipping Method: R+L Carriers" version 1.8'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: The principal plugin file should be the same as the plugin slug ("woo-shipping-method-rl-carriers.php" instead of "woocommerce-shipping-rlc.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "7.8")

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 detected3,326 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP98206412,706
CSS42438513
JavaScript215865
Sass10042

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity38.43
▷ Minimum class complexity1.00
▷ Maximum class complexity111.00
Average method complexity3.01
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods129
▷ Static methods21.55%
▷ Public methods11589.15%
▷ Protected methods00.00%
▷ Private methods1410.85%
Functions55
▷ Named functions5498.18%
▷ Anonymous functions11.82%
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
14 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/vendor/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
assets/css/vendor/images/ui-bg_gloss-wave_35_f6a828_500x100.png5.68KB1.83KB▼ 67.77%
assets/css/vendor/images/ui-bg_glass_100_f6f6f6_1x400.png0.26KB0.12KB▼ 53.44%
assets/css/vendor/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.32KB0.18KB▼ 42.38%
assets/css/vendor/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%