68% wp-google-auto-directions-path-finder

Code Review | WP Google Auto Directions Path Finder

WordPress plugin WP Google Auto Directions Path Finder scored 68% from 54 tests.

About plugin

  • Plugin page: wp-google-auto-di...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 23, 2015
  • Latest release: Jul 26, 2015
  • Number of updates: 14
  • Update frequency: every 0.2 days
  • Top authors: lucia.intelisano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,589 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.95MB] [CPU: ▼31.97ms] Passed 4 tests

Server-side resources used by WP Google Auto Directions Path Finder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.28 ▼4.83
Dashboard /wp-admin2.99 ▼0.3125.83 ▼22.86
Posts /wp-admin/edit.php2.99 ▼0.3623.70 ▼28.20
Add New Post /wp-admin/post-new.php2.99 ▼2.8924.48 ▼65.22
Media Library /wp-admin/upload.php2.99 ▼0.2321.90 ▼11.60
WP Google Auto Directions Path Finder /wp-admin/options-general.php?page=wp-google-auto-directions-path-finder/wp-google-auto-directions-path-finder.php3.0022.70

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Google Auto Directions Path Finder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9515.44 ▲0.6543.28 ▲41.2236.84 ▼8.24
Dashboard /wp-admin2,210 ▲225.90 ▲0.9897.90 ▼12.1741.20 ▲0.27
Posts /wp-admin/edit.php2,093 ▲12.05 ▼0.0133.70 ▼10.3732.85 ▼3.24
Add New Post /wp-admin/post-new.php1,541 ▼123.40 ▲5.27604.07 ▼22.9448.21 ▼8.28
Media Library /wp-admin/upload.php1,386 ▲14.20 ▲0.0298.33 ▼2.7642.03 ▼0.26
WP Google Auto Directions Path Finder /wp-admin/options-general.php?page=wp-google-auto-directions-path-finder/wp-google-auto-directions-path-finder.php8932.0324.1725.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=wp-google-auto-directions-path-finder/wp-google-auto-directions-path-finder.php
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-google-auto-directions-path-finder/wp-google-auto-directions-path-finder.php:58

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (52 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: No descriptions were found for these screenshots #1, #2 in wp-google-auto-directions-path-finder/assets to your readme.txt
You can take inspiration from this readme.txt

wp-google-auto-directions-path-finder/wp-google-auto-directions-path-finder.php Passed 13 tests

"WP Google Auto Directions Path Finder" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
69 characters long description:
A plugin to get/find best route between two points with autodetection

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin464 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15132179
JavaScript1561149
CSS1230107
HTML13029

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/printer.png3.87KB1.35KB▼ 65.15%
img/driving.png4.31KB1.39KB▼ 67.82%
img/fsicon2.png4.79KB1.60KB▼ 66.66%
img/pin.png3.34KB1.85KB▼ 44.62%
img/fsicon.png4.79KB1.60KB▼ 66.66%