Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.67ms] Passed 4 tests
Server-side resources used by Runkeeper Recent Activities
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.89 ▼2.06 |
Dashboard /wp-admin | 3.39 ▲0.08 | 45.28 ▼4.77 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.12 ▲4.20 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 82.33 ▼11.49 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 32.17 ▼0.34 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_ginchens_runkeeper_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Runkeeper Recent Activities
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.29 ▼1.09 | 1.73 ▲0.15 | 42.46 ▼7.52 |
Dashboard /wp-admin | 2,206 ▲14 | 4.87 ▼0.10 | 109.10 ▼6.24 | 40.43 ▼0.94 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.03 | 39.68 ▲3.46 | 34.84 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.29 ▲5.78 | 599.76 ▼46.89 | 64.71 ▲11.51 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▲0.04 | 97.14 ▼16.35 | 40.54 ▼4.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_ginchens_runkeeper_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/feed-widget-for-runkeeper-activities/ginchens-runkeeper-widget.php
- > /wp-content/plugins/feed-widget-for-runkeeper-activities/class.grkw-output.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: runkeeper, widget, activity, activities, feed
feed-widget-for-runkeeper-activities/ginchens-runkeeper-widget.php 85% from 13 tests
The principal PHP file in "Runkeeper Recent Activities" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("feed-widget-for-runkeeper-activities.php" instead of "ginchens-runkeeper-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected631 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 74 | 147 | 336 |
PO File | 1 | 83 | 82 | 169 |
CSS | 1 | 29 | 1 | 126 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 23.53% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/runkeeper-logo.png | 10.86KB | 5.43KB | ▼ 50.00% |
img/connect-healthgraph.png | 8.67KB | 3.55KB | ▼ 59.00% |