62% route

Code Review | Route | Marketing Automation

WordPress plugin Route | Marketing Automation scored62%from 54 tests.

About plugin

  • Plugin page: route
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.4.2
  • WordPress version: 6.3.1
  • First release: Jan 21, 2016
  • Latest release: Mar 1, 2016
  • Number of updates: 12
  • Update frequency: every 11.1 days
  • Top authors: PabloRoute (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,007 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.93MB] [CPU: ▼42.94ms] Passed 4 tests

An overview of server-side resources used by Route | Marketing Automation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.03 ▲4.93
Dashboard /wp-admin3.03 ▼0.3227.84 ▼37.10
Posts /wp-admin/edit.php3.03 ▼0.3326.44 ▼24.26
Add New Post /wp-admin/post-new.php3.03 ▼2.8623.43 ▼98.16
Media Library /wp-admin/upload.php3.03 ▼0.2024.12 ▼12.24
Route Configuration /wp-admin/options-general.php?page=route-admin3.0325.73

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Route | Marketing Automation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.71 ▲0.541.68 ▼0.0443.25 ▼1.99
Dashboard /wp-admin2,199 ▲225.59 ▼0.0784.76 ▼6.6239.09 ▼6.28
Posts /wp-admin/edit.php2,101 ▲11.99 ▼0.0433.63 ▼3.1634.47 ▼0.16
Add New Post /wp-admin/post-new.php1,531 ▼022.87 ▼0.54672.08 ▼8.2852.13 ▼7.16
Media Library /wp-admin/upload.php1,407 ▲104.18 ▲0.0099.51 ▼4.4747.28 ▲2.14
Route Configuration /wp-admin/options-general.php?page=route-admin7912.0123.5129.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/route/route.php+81
    Undefined index: organization_id
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=route-admin
    • > Notice in wp-content/plugins/route/route.php+81
    Undefined index: organization_id
    • > GET request to /wp-admin/options-general.php?page=route-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=route-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/route/route-js.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/route/page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function route_plugin\\is_admin() in wp-content/plugins/route/route.php:16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/route/route-js.php on line 2
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/route/route-js.php on line 2

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: inbound marketing, marketing automation, route, customer engagement, lead generation...

route/route.php 92% from 13 tests

Analyzing the main PHP file in "Route | Marketing Automation" version 1.1
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin100 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32311100

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.50
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin