90% run-log

Code Review | Run Log

WordPress plugin Run Log scored 90% from 54 tests.

About plugin

  • Plugin page: run-log
  • Plugin version: 1.7.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 11, 2016
  • Latest release: Aug 26, 2023
  • Number of updates: 75
  • Update frequency: every 35.1 days
  • Top authors: izem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 4,976 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼3.03ms] Passed 4 tests

Server-side resources used by Run Log
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2943.46 ▲0.34
Dashboard /wp-admin3.57 ▲0.2746.85 ▲0.02
Posts /wp-admin/edit.php3.69 ▲0.3347.97 ▲1.05
Add New Post /wp-admin/post-new.php6.18 ▲0.3094.82 ▼13.54
Media Library /wp-admin/upload.php3.49 ▲0.2736.61 ▲1.45
All Runs /wp-admin/edit.php?post_type=oi_run_log_post3.5538.18
Goal /wp-admin/edit-tags.php?taxonomy=oi_goal_taxonomy3.4932.82
Gear /wp-admin/edit-tags.php?taxonomy=oi_gear_taxonomy&post_type=oi_run_log_post3.4938.30
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=oi_run_log_post3.4939.15
Goal /wp-admin/edit-tags.php?taxonomy=oi_goal_taxonomy&post_type=page3.4936.89
Gear /wp-admin/edit-tags.php?taxonomy=oi_gear_taxonomy3.4934.03
Add New /wp-admin/post-new.php?post_type=oi_run_log_post3.6562.63
Gear /wp-admin/edit-tags.php?taxonomy=oi_gear_taxonomy&post_type=page3.4936.51
Goal /wp-admin/edit-tags.php?taxonomy=oi_goal_taxonomy&post_type=oi_run_log_post3.4936.33
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=oi_run_log_post3.4931.10

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
category_children
widget_oirl_total_widget
widget_theysaidso_widget
oi-run-log-options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Run Log
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲11113.32 ▼1.044.14 ▲2.2046.47 ▲1.70
Dashboard /wp-admin2,263 ▲775.84 ▲0.90100.50 ▼12.0242.73 ▲0.52
Posts /wp-admin/edit.php2,227 ▲1382.12 ▲0.1639.82 ▼1.9936.54 ▲1.92
Add New Post /wp-admin/post-new.php1,579 ▲3218.36 ▲0.28599.90 ▼13.9154.58 ▼17.86
Media Library /wp-admin/upload.php1,451 ▲664.19 ▲0.0499.75 ▼1.9944.98 ▲1.01
All Runs /wp-admin/edit.php?post_type=oi_run_log_post1,2291.9529.9728.97
Goal /wp-admin/edit-tags.php?taxonomy=oi_goal_taxonomy1,3282.1430.0930.78
Gear /wp-admin/edit-tags.php?taxonomy=oi_gear_taxonomy&post_type=oi_run_log_post1,2972.1426.1128.92
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=oi_run_log_post1,5032.1427.0228.83
Goal /wp-admin/edit-tags.php?taxonomy=oi_goal_taxonomy&post_type=page1,3252.1426.3130.53
Gear /wp-admin/edit-tags.php?taxonomy=oi_gear_taxonomy1,2942.1326.9530.06
Add New /wp-admin/post-new.php?post_type=oi_run_log_post3,0907.62184.2168.70
Gear /wp-admin/edit-tags.php?taxonomy=oi_gear_taxonomy&post_type=page1,2972.1325.6828.97
Goal /wp-admin/edit-tags.php?taxonomy=oi_goal_taxonomy&post_type=oi_run_log_post1,3222.1326.8629.74
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=oi_run_log_post1,3672.1427.9326.49

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • category_children
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_oirl_total_widget
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
The official readme.txt is a good inspiration

run-log/run-log.php Passed 13 tests

The primary PHP file in "Run Log" version 1.7.6 is used by WordPress to initiate all plugin functionality
116 characters long description:
Adds running diary capabilities - log your sport activities with custom post type, custom fields and new taxonomies.

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
There were no executable files found in this plugin1,402 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2103270865
CSS22712260
PO File1117123250
JavaScript162227

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity8.75
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions2295.65%
▷ Anonymous functions14.35%
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
PNG images were not found in this plugin