10% routeapp

Code Review | Route ‑ Shipping Protection

WordPress plugin Route ‑ Shipping Protection scored10%from 54 tests.

About plugin

  • Plugin page: routeapp
  • Plugin version: 2.2.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 29, 2019
  • Latest release: Nov 28, 2023
  • Number of updates: 231
  • Update frequency: every 6.7 days
  • Top authors: routedev (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

800+ active /32,309 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/routeapp/includes/class-routeapp-logger-sentry.php+110
    Uncaught Error: Call to undefined function wc_get_page_permalink() in wp-content/plugins/routeapp/includes/class-routeapp-logger-sentry.php:110
    Stack trace:
    #0 wp-content/plugins/routeapp/includes/class-routeapp-logger-sentry.php(85): Routeapp_Logger_Sentry->_prepare_event()
    #1 wp-content/plugins/routeapp/public/class-routeapp-public.php(1311): Routeapp_Logger_Sentry->sentry_log()
    #2 wp-content/plugins/routeapp/includes/class-routeapp-setup.php(93): Routeapp_Public->routeapp_log()
    #3 wp-content/plugins/routeapp/includes/class-routeapp-setup.php(56): Route_Setup::create_user()
    #4 wp-content/plugins/routeapp/includes/class-routeapp-activator.php(35): Route_Setup::init()
    #5 wp-content/plugins/routeapp/routeapp.php(35): Routeapp_Activator::activate()
    #6 wp-includes/class-wp-hook.php(310): activate_routeapp()
    #7 wp-includes/class-wp-hook.php(334)

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

Analyzing server-side resources used by Route ‑ Shipping Protection
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.77 ▼10.53
Dashboard /wp-admin3.31 ▲0.0044.60 ▼3.11
Posts /wp-admin/edit.php3.36 ▲0.0044.89 ▲0.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.65 ▼4.76
Media Library /wp-admin/upload.php3.23 ▲0.0034.14 ▲3.81

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 59 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
_routeapp_version
can_compress_scripts
widget_recent-posts
_routeapp_last_install_date
theysaidso_admin_options
widget_theysaidso_widget
routeapp_failed_registration
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Route ‑ Shipping Protection
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.70 ▲0.311.60 ▼0.1536.53 ▼7.87
Dashboard /wp-admin2,198 ▲215.61 ▼0.0692.86 ▼11.6040.34 ▼5.90
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0640.17 ▲3.6937.46 ▼0.54
Add New Post /wp-admin/post-new.php1,537 ▲1125.44 ▲2.38636.18 ▲13.0764.97 ▲17.24
Media Library /wp-admin/upload.php1,403 ▲94.18 ▲0.0398.83 ▲0.8643.96 ▲4.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 9 options in the database
    • _routeapp_last_install_date
    • widget_theysaidso_widget
    • widget_recent-posts
    • _routeapp_version
    • routeapp_failed_registration
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/routeapp/admin/partials/routeapp-admin-display.php
  • 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Routeapp_WooCommerce_Common_Tracking_Provider' not found in wp-content/plugins/routeapp/includes/tracking-providers/class-routeapp-blazing-shipment-tracking.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Routeapp_WooCommerce_Common_Tracking_Provider' not found in wp-content/plugins/routeapp/includes/tracking-providers/class-routeapp-woocommerce-shipment-tracking.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Routeapp_WooCommerce_Common_Tracking_Provider' not found in wp-content/plugins/routeapp/includes/tracking-providers/class-routeapp-usps-woocommerce-shipping.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Routeapp_WooCommerce_Common_Tracking_Provider' not found in wp-content/plugins/routeapp/includes/tracking-providers/class-routeapp-shippingeasy.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Routeapp_API_Client' not found in wp-content/plugins/routeapp/includes/class-routeapp-api-compatibility.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Routeapp_WooCommerce_Common_Tracking_Provider' not found in wp-content/plugins/routeapp/includes/tracking-providers/class-routeapp-aftership-shipment-tracking.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Routeapp_WooCommerce_Common_Tracking_Provider' not found in wp-content/plugins/routeapp/includes/tracking-providers/class-routeapp-astracker-shipment-tracking.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Routeapp_WooCommerce_Common_Tracking_Provider' not found in wp-content/plugins/routeapp/includes/tracking-providers/class-routeapp-wooshippinginfo-tracking.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Routeapp_WooCommerce_Common_Tracking_Provider' not found in wp-content/plugins/routeapp/includes/tracking-providers/class-routeapp-shipstation.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_rest_url() in wp-content/plugins/routeapp/admin/partials/routeapp-admin-user-conflict.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: routeapp, protection, route, tracking

routeapp/routeapp.php 92% from 13 tests

The main PHP script in "Route ‑ Shipping Protection" version 2.2.8 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)

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
There were no executable files found in this plugin5,555 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP461,0681,6165,158
JavaScript53036234
CSS384163

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity22.90
▷ Minimum class complexity1.00
▷ Maximum class complexity210.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes39
▷ Abstract classes00.00%
▷ Concrete classes39100.00%
▷ Final classes00.00%
Methods411
▷ Static methods8821.41%
▷ Public methods33882.24%
▷ Protected methods61.46%
▷ Private methods6716.30%
Functions10
▷ Named functions550.00%
▷ Anonymous functions550.00%
Constants59
▷ Global constants11.69%
▷ Class constants5898.31%
▷ Public constants58100.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 are no PNG files in this plugin