Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/custom-strava-integration/custom-strava-integration.php+23
Undefined variable: html
Server metrics [RAM: ▼0.02MB] [CPU: ▼6.66ms] Passed 4 tests
Server-side resources used by Custom Strava Integration
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.96 ▲1.36 |
Dashboard /wp-admin | 3.40 ▲0.10 | 45.53 ▼3.96 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 57.31 ▲7.90 |
Add New Post /wp-admin/post-new.php | 5.53 ▼0.35 | 75.60 ▼24.83 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.65 ▲0.81 |
Custom Strava Integration /wp-admin/options-general.php?page=strava_for_wp_admin | 3.33 | 34.54 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
strava_settings |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Strava Integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 14.44 ▲0.06 | 1.75 ▼0.12 | 41.29 ▼1.62 |
Dashboard /wp-admin | 2,213 ▲21 | 4.83 ▼0.11 | 102.75 ▼9.21 | 39.95 ▼0.28 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.06 ▲0.06 | 37.97 ▲0.76 | 40.15 ▲7.11 |
Add New Post /wp-admin/post-new.php | 6,328 ▲4,791 | 19.38 ▼3.96 | 936.02 ▲266.55 | 62.16 ▲2.21 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.14 ▼0.07 | 99.04 ▼5.96 | 49.42 ▲7.09 |
Custom Strava Integration /wp-admin/options-general.php?page=strava_for_wp_admin | 1,392 | 6.02 | 129.12 | 64.90 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- strava_settings
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'STRAVA_FOR_WP_PLUGIN_DIRlibs/StravaApi.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-strava-integration/custom-strava-integration-shortcode.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-strava-integration/custom-strava-integration.php:10
- > PHP Warning
Use of undefined constant STRAVA_FOR_WP_PLUGIN_DIR - assumed 'STRAVA_FOR_WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-strava-integration/custom-strava-integration-shortcode.php on line 2
- > PHP Warning
require_once(STRAVA_FOR_WP_PLUGIN_DIRlibs/StravaApi.php): failed to open stream: No such file or directory in wp-content/plugins/custom-strava-integration/custom-strava-integration-metabox.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'STRAVA_FOR_WP_PLUGIN_DIRlibs/StravaApi.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-strava-integration/custom-strava-integration-metabox.php on line 3
- > PHP Warning
Use of undefined constant STRAVA_FOR_WP_PLUGIN_DIR - assumed 'STRAVA_FOR_WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-strava-integration/custom-strava-integration-metabox.php on line 3
- > PHP Warning
Use of undefined constant STRAVA_FOR_WP_PLUGIN_URL - assumed 'STRAVA_FOR_WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-strava-integration/custom-strava-integration-admin.php on line 2
- > PHP Warning
require_once(STRAVA_FOR_WP_PLUGIN_DIRlibs/StravaApi.php): failed to open stream: No such file or directory in wp-content/plugins/custom-strava-integration/custom-strava-integration-shortcode.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/custom-strava-integration/custom-strava-integration-admin.php:3
- > PHP Fatal error
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 94% from 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
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
custom-strava-integration/custom-strava-integration.php 92% from 13 tests
"Custom Strava Integration" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 209 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected508 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 151 | 139 | 508 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 71.43% |
▷ Protected methods | 4 | 28.57% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.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
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 |
assets/ConnectWithStrava.png | 4.04KB | 1.92KB | ▼ 52.50% |