84% shipbubble

Code Review | Shipbubble - Shipping rates at checkout

WordPress plugin Shipbubble - Shipping rates at checkout scored84%from 54 tests.

About plugin

  • Plugin page: shipbubble
  • Plugin version: 1.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: May 31, 2023
  • Latest release: Nov 29, 2023
  • Number of updates: 33
  • Update frequency: every 6.2 days
  • Top authors: shipbubble (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /611 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
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼1.48ms] Passed 4 tests

Analyzing server-side resources used by Shipbubble - Shipping rates at checkout
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.58 ▲1.28
Dashboard /wp-admin3.48 ▲0.1848.13 ▼0.57
Posts /wp-admin/edit.php3.59 ▲0.2348.69 ▼3.90
Add New Post /wp-admin/post-new.php6.08 ▲0.1990.97 ▼2.73
Media Library /wp-admin/upload.php3.40 ▲0.1735.88 ▲2.95

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
shipbubble_init

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shipbubble - Shipping rates at checkout
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲18613.28 ▼1.488.58 ▲6.7444.80 ▼0.38
Dashboard /wp-admin2,218 ▲415.59 ▼0.0894.11 ▼4.3041.82 ▼5.28
Posts /wp-admin/edit.php2,123 ▲261.99 ▲0.0336.47 ▼1.4235.00 ▲0.13
Add New Post /wp-admin/post-new.php1,546 ▲2023.38 ▲0.27627.23 ▲11.4750.43 ▼14.21
Media Library /wp-admin/upload.php1,423 ▲234.31 ▲0.1296.09 ▼1.6441.19 ▼1.11

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipbubble/public/woocommerce/enqueue-styles.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipbubble/public/async-checkout-couriers.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shipbubble/admin/woocommerce/shipping-settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipbubble/admin/woocommerce/async-create-shipment.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipbubble/admin/wordpress/async-validate-auth.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipbubble/admin/woocommerce/enqueue-styles.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipbubble/public/woocommerce/checkout.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/shipbubble/includes/constants.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipbubble/admin/woocommerce/orders.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipbubble/admin/woocommerce/async-validate-address.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: deliveries, multiple couriers, logistics, post-purchase experience, shipping rates

shipbubble/shipbubble.php 92% from 13 tests

The entry point to "Shipbubble - Shipping rates at checkout" version 1.9 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,284 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP205254121,594
JavaScript514342397
CSS2610293

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions68
▷ Named functions6697.06%
▷ Anonymous functions22.94%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin