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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.21 ▼2.90 |
Dashboard /wp-admin | 3.35 ▲0.04 | 47.82 ▼0.08 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.12 ▼2.48 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 100.25 ▼1.22 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.91 ▼1.86 |
Strava Ride Details /wp-admin/options-general.php?page=strava-ride-details/strava-ride-details.php | 3.24 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.25 ▼1.51 | 1.86 ▲0.21 | 40.71 ▼3.72 |
Dashboard /wp-admin | 2,210 ▲19 | 4.89 ▼0.19 | 112.76 ▲8.78 | 43.12 ▼0.69 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.06 | 39.63 ▼2.28 | 34.53 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,538 ▲3 | 23.35 ▲0.20 | 587.55 ▼38.83 | 49.88 ▲3.78 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.17 ▼0.03 | 95.47 ▲0.61 | 41.51 ▼2.12 |
Strava Ride Details /wp-admin/options-general.php?page=strava-ride-details/strava-ride-details.php | 857 | 2.01 | 25.06 | 24.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 80 | 28 | 165 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ConnectWithStrava.png | 4.04KB | 1.92KB | ▼ 52.50% |