84% run-route

Code Review | run-route

WordPress plugin run-route scored84%from 54 tests.

About plugin

  • Plugin page: run-route
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.3
  • WordPress version: 6.3.1
  • First release: Nov 5, 2014
  • Latest release: Sep 17, 2015
  • Number of updates: 14
  • Update frequency: every 22.6 days
  • Top authors: neilb27 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /927 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.01MB] [CPU: ▼3.71ms] Passed 4 tests

Analyzing server-side resources used by run-route
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.90 ▲3.26
Dashboard /wp-admin3.32 ▲0.0147.92 ▲4.57
Posts /wp-admin/edit.php3.37 ▲0.0146.24 ▼3.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.44 ▼12.88
Media Library /wp-admin/upload.php3.24 ▲0.0134.32 ▼1.50

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for run-route
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.16 ▼1.201.89 ▼0.3341.84 ▼1.64
Dashboard /wp-admin2,206 ▲155.03 ▲0.16109.35 ▲4.0040.16 ▼4.34
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0440.13 ▼2.2134.15 ▼11.60
Add New Post /wp-admin/post-new.php1,528 ▲922.90 ▼0.06622.41 ▼37.4450.34 ▼7.39
Media Library /wp-admin/upload.php1,385 ▼04.12 ▼0.0297.51 ▼6.1541.87 ▼7.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% 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 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
  • 1× 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/run-route/run-route.php:38

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
3 plugin tags: shortcode, runkeeper, endomondo

run-route/run-route.php Passed 13 tests

The main PHP script in "run-route" version 1.1 is automatically included on every request by WordPress
70 characters long description:
Adds a shortcode to display links to routes in Endomondo and RunKeeper

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected32 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP18825
CSS1007

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
endomondo.png4.93KB3.04KB▼ 38.36%
runkeeper.png0.97KB0.78KB▼ 20.00%