84% feed-widget-for-runkeeper-activities

Code Review | Runkeeper Recent Activities

WordPress plugin Runkeeper Recent Activities scored84%from 54 tests.

About plugin

  • Plugin page: feed-widget-for-r...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.3-4.6.3
  • WordPress version: 6.3.1
  • First release: Feb 12, 2017
  • Latest release: Feb 12, 2017
  • Number of updates: 14
  • Update frequency: every 0.5 days
  • Top authors: Ginchen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /580 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.89 ▼2.06
Dashboard /wp-admin3.39 ▲0.0845.28 ▼4.77
Posts /wp-admin/edit.php3.50 ▲0.1448.12 ▲4.20
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.33 ▼11.49
Media Library /wp-admin/upload.php3.31 ▲0.0832.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.29 ▼1.091.73 ▲0.1542.46 ▼7.52
Dashboard /wp-admin2,206 ▲144.87 ▼0.10109.10 ▼6.2440.43 ▼0.94
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0339.68 ▲3.4634.84 ▲0.72
Add New Post /wp-admin/post-new.php1,533 ▲1923.29 ▲5.78599.76 ▼46.8964.71 ▲11.51
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0497.14 ▼16.3540.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:
LanguageFilesBlank linesComment linesLines of code
PHP274147336
PO File18382169
CSS1291126

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 code0.22
Average class complexity18.50
▷ Minimum class complexity13.00
▷ Maximum class complexity24.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1376.47%
▷ Protected methods00.00%
▷ Private methods423.53%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img/runkeeper-logo.png10.86KB5.43KB▼ 50.00%
img/connect-healthgraph.png8.67KB3.55KB▼ 59.00%