84% simple-running-log

Code Review | Simple Running Log

WordPress plugin Simple Running Log scored84%from 54 tests.

About plugin

  • Plugin page: simple-running-log
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Mar 8, 2010
  • Latest release: Nov 21, 2015
  • Number of updates: 107
  • Update frequency: every 19.5 days
  • Top authors: solesurfer (85.98%)kevmarsden (14.95%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,933 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.44ms] Passed 4 tests

Analyzing server-side resources used by Simple Running Log
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.80 ▼1.33
Dashboard /wp-admin3.31 ▲0.0147.92 ▼5.55
Posts /wp-admin/edit.php3.36 ▲0.0145.79 ▼6.44
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.05 ▼0.45
Media Library /wp-admin/upload.php3.23 ▲0.0138.56 ▲2.41

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables
wp_running
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
log_db_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Running Log
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲15913.33 ▼1.431.73 ▲0.0542.12 ▲0.97
Dashboard /wp-admin2,298 ▲1075.04 ▲0.17111.77 ▲7.8142.28 ▼0.99
Posts /wp-admin/edit.php2,104 ▲152.22 ▲0.1840.11 ▼0.0933.49 ▼1.09
Add New Post /wp-admin/post-new.php1,536 ▲218.58 ▼4.62599.30 ▼9.5467.44 ▲18.16
Media Library /wp-admin/upload.php1,406 ▲184.27 ▲0.1099.62 ▲4.5442.55 ▲0.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-running-log/simplerunninglog.php:79

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: simple_running_log, widget, log, sidebar, dashboard...

simple-running-log/simplerunninglog.php 92% from 13 tests

"Simple Running Log" version 1.7'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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-running-log.php" instead of "simplerunninglog.php")

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
No dangerous file extensions were detected166 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25139151
CSS1208
JavaScript1217

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin