78% time-goes-by

Code Review | Time goes by

WordPress plugin Time goes by scored78%from 54 tests.

About plugin

  • Plugin page: time-goes-by
  • Plugin version: 1.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.9
  • WordPress version: 6.3.1
  • First release: Jan 6, 2016
  • Latest release: Jan 26, 2022
  • Number of updates: 28
  • Update frequency: every 79.0 days
  • Top authors: tsato (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,980 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.73ms] Passed 4 tests

Analyzing server-side resources used by Time goes by
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.47 ▲0.89
Dashboard /wp-admin3.31 ▲0.0144.44 ▼10.59
Posts /wp-admin/edit.php3.36 ▲0.0047.00 ▼1.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.25 ▼0.32
Media Library /wp-admin/upload.php3.23 ▲0.0034.40 ▼2.71

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Time goes by
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.18 ▼0.981.90 ▼0.0940.01 ▼8.11
Dashboard /wp-admin2,210 ▲195.83 ▲0.93103.54 ▼0.4142.25 ▼3.32
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0339.38 ▼0.7235.22 ▼2.45
Add New Post /wp-admin/post-new.php1,536 ▲323.13 ▼0.05609.18 ▼84.8154.79 ▼3.21
Media Library /wp-admin/upload.php1,395 ▲74.19 ▼0.0295.60 ▼14.7940.78 ▼6.78
Time goes by /wp-admin/time_goes_by.php260.440.0812.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/time-goes-by/time_goes_by.php:32

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/time_goes_by.php
    • > Network (severe)
    wp-admin/time_goes_by.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: contents, scheduled, time goes by

time-goes-by/time_goes_by.php 92% from 13 tests

"Time goes by" version 1.2.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("time-goes-by.php" instead of "time_goes_by.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected340 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP353147340

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin