84% strava-ride-details

Code Review | Strava Ride Details

WordPress plugin Strava Ride Details scored84%from 54 tests.

About plugin

  • Plugin page: strava-ride-details
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.8.1
  • WordPress version: 6.3.1
  • First release: Jan 25, 2013
  • Latest release: Mar 23, 2014
  • Number of updates: 10
  • Update frequency: every 42.2 days
  • Top authors: endocreative (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,299 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.12ms] Passed 4 tests

A check of server-side resources used by Strava Ride Details
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0337.21 ▼2.90
Dashboard /wp-admin3.35 ▲0.0447.82 ▼0.08
Posts /wp-admin/edit.php3.40 ▲0.0447.12 ▼2.48
Add New Post /wp-admin/post-new.php5.93 ▲0.04100.25 ▼1.22
Media Library /wp-admin/upload.php3.27 ▲0.0432.91 ▼1.86
Strava Ride Details /wp-admin/options-general.php?page=strava-ride-details/strava-ride-details.php3.2430.25

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Strava Ride Details
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.25 ▼1.511.86 ▲0.2140.71 ▼3.72
Dashboard /wp-admin2,210 ▲194.89 ▼0.19112.76 ▲8.7843.12 ▼0.69
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0639.63 ▼2.2834.53 ▼0.55
Add New Post /wp-admin/post-new.php1,538 ▲323.35 ▲0.20587.55 ▼38.8349.88 ▲3.78
Media Library /wp-admin/upload.php1,392 ▲104.17 ▼0.0395.47 ▲0.6141.51 ▼2.12
Strava Ride Details /wp-admin/options-general.php?page=strava-ride-details/strava-ride-details.php8572.0125.0624.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/strava-ride-details/strava-ride-details.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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: strava, shortcode, biking

strava-ride-details/strava-ride-details.php Passed 13 tests

The main PHP file in "Strava Ride Details" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
68 characters long description:
Display Strava ride details in your pages and posts with a shortcode

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
Good job! No executable or dangerous file extensions detected165 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18028165

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions15
▷ Named functions15100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/ConnectWithStrava.png4.04KB1.92KB▼ 52.50%