90% tk-timestamp-to-human

Code Review | TK Timestamp to Human Readable Date

WordPress plugin TK Timestamp to Human Readable Date scored90%from 54 tests.

About plugin

  • Plugin page: tk-timestamp-to-h...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.1.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2020
  • Latest release: Jan 22, 2020
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: cliffpaulick (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /512 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼2.34ms] Passed 4 tests

An overview of server-side resources used by TK Timestamp to Human Readable Date
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1444.65 ▲1.65
Dashboard /wp-admin3.50 ▲0.1946.95 ▼4.84
Posts /wp-admin/edit.php3.55 ▲0.1951.83 ▼1.56
Add New Post /wp-admin/post-new.php6.01 ▲0.1292.81 ▼3.54
Media Library /wp-admin/upload.php3.36 ▲0.1238.44 ▲0.58

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

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

Browser metrics Passed 4 tests

Checking browser requirements for TK Timestamp to Human Readable Date
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲3014.35 ▼0.022.05 ▼0.1643.84 ▼0.36
Dashboard /wp-admin2,198 ▲185.58 ▼0.0791.08 ▼9.1239.71 ▲0.97
Posts /wp-admin/edit.php2,097 ▼01.96 ▼0.0237.21 ▼2.8635.23 ▼3.48
Add New Post /wp-admin/post-new.php1,526 ▼023.05 ▼0.48630.09 ▼71.1253.10 ▼1.18
Media Library /wp-admin/upload.php1,403 ▲64.23 ▲0.0396.87 ▼14.5642.30 ▼4.48

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
These attributes need your attention: Please take inspiration from this readme.txt

tk-timestamp-to-human/tk-timestamp-to-human.php Passed 13 tests

"TK Timestamp to Human Readable Date" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
103 characters long description:
Given a timestamp (assumed in UTC), convert to a human-readable date format using PHP named time zones.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,200 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP293398961,192
CSS1057
JSON1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity9.08
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes24
▷ Abstract classes14.17%
▷ Concrete classes2395.83%
▷ Final classes14.35%
Methods115
▷ Static methods1815.65%
▷ Public methods10490.43%
▷ Protected methods00.00%
▷ Private methods119.57%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin