Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.35MB] [CPU: ▼7.34ms] Passed 4 tests
An overview of server-side resources used by WP-Strava
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.38 | 44.23 ▲8.20 |
Dashboard /wp-admin | 3.70 ▲0.35 | 45.68 ▼14.14 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 45.53 ▼3.38 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 83.46 ▼17.27 |
Media Library /wp-admin/upload.php | 3.56 ▲0.32 | 37.67 ▲5.45 |
Strava /wp-admin/options-general.php?page=wp-strava-options | 3.53 | 35.82 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 65 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_wpstrava_latestmapwidget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_wp-strava |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-Strava
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.55 ▼1.04 | 1.83 ▲0.19 | 42.73 ▲1.59 |
Dashboard /wp-admin | 2,207 ▲22 | 5.83 ▼0.05 | 94.76 ▼7.50 | 39.68 ▼3.17 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.03 | 37.14 ▼3.84 | 31.80 ▼3.46 |
Add New Post /wp-admin/post-new.php | 6,185 ▲4,671 | 19.09 ▲1.56 | 895.28 ▲279.44 | 73.52 ▲14.04 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.00 | 97.92 ▼6.77 | 42.01 ▼0.34 |
Strava /wp-admin/options-general.php?page=wp-strava-options | 1,090 | 2.04 | 24.19 | 30.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- widget_wpstrava_latestmapwidget
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_wp-strava
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'WPStrava_Blocks_Interface' not found in wp-content/plugins/wp-strava/src/WPStrava/Blocks/Route.php:6
- > PHP Fatal error
Uncaught Error: Interface 'WPStrava_Blocks_Interface' not found in wp-content/plugins/wp-strava/src/WPStrava/Blocks/Segment.php:6
- > PHP Fatal error
Uncaught Error: Interface 'WPStrava_Blocks_Interface' not found in wp-content/plugins/wp-strava/src/WPStrava/Blocks/ActivitiesList.php:6
- > PHP Fatal error
Uncaught Error: Class 'WPStrava_StaticMap' not found in wp-content/plugins/wp-strava/src/WPStrava/StaticGMap.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wp-strava/wp-strava.php:33
- > PHP Fatal error
Uncaught Error: Class 'WPStrava_SOM' not found in wp-content/plugins/wp-strava/src/WPStrava/SOMMetric.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-strava/src/WPStrava/ActivitiesListWidget.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-strava/src/WPStrava/LatestMapWidget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WPStrava_SOM' not found in wp-content/plugins/wp-strava/src/WPStrava/SOMEnglish.php:8
- > PHP Fatal error
Uncaught Error: Interface 'WPStrava_Blocks_Interface' not found in wp-content/plugins/wp-strava/src/WPStrava/Blocks/Activity.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 17 tag instead of maximum 10
wp-strava/wp-strava.php 85% from 13 tests
Analyzing the main PHP file in "WP-Strava" version 2.12.1
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 180 characters long)
- Domain Path: The domain path is invalid: folder "/lang" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,440 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 540 | 1,653 | 2,305 |
JavaScript | 14 | 82 | 25 | 647 |
CSS | 4 | 20 | 16 | 380 |
JSON | 4 | 0 | 0 | 108 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 6 | 16.67% |
▷ Concrete classes | 30 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 194 | |
▷ Static methods | 13 | 6.70% |
▷ Public methods | 169 | 87.11% |
▷ Protected methods | 12 | 6.19% |
▷ Private methods | 13 | 6.70% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 46 | |
▷ Global constants | 6 | 13.04% |
▷ Class constants | 40 | 86.96% |
▷ Public constants | 40 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.65MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/blocks/activity/activity.png | 271.14KB | 271.62KB | 0.00% |
images/fugue-sprite.png | 122.23KB | 33.22KB | ▼ 72.82% |
images/example-activity.png | 271.14KB | 271.62KB | 0.00% |