84% last-updated-datetime-in-posts

Code Review | Last Updated DateTime in Posts

WordPress plugin Last Updated DateTime in Posts scored84%from 54 tests.

About plugin

  • Plugin page: last-updated-date...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2022
  • Latest release: Aug 9, 2022
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: karthikswot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /917 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 gracefully, with no errors

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

An overview of server-side resources used by Last Updated DateTime in Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.93 ▼9.91
Dashboard /wp-admin3.31 ▲0.0143.63 ▼4.38
Posts /wp-admin/edit.php3.36 ▲0.0047.37 ▲0.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.60 ▼17.56
Media Library /wp-admin/upload.php3.23 ▲0.0038.67 ▲5.67

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Last Updated DateTime in Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.37 ▼1.021.80 ▲0.0737.04 ▼6.44
Dashboard /wp-admin2,206 ▲174.86 ▼0.08103.69 ▼15.6242.78 ▼3.19
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0540.76 ▲2.7435.51 ▲1.17
Add New Post /wp-admin/post-new.php1,535 ▲2123.34 ▲5.82654.15 ▼18.6355.59 ▼6.44
Media Library /wp-admin/upload.php1,388 ▼04.29 ▲0.0893.21 ▼11.0940.39 ▼4.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 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 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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/last-updated-datetime-in-posts/last-updated-date.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: modified date, updated date, updated time, modified time

last-updated-datetime-in-posts/last-updated-date.php 92% from 13 tests

The main PHP file in "Last Updated DateTime in Posts" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("last-updated-datetime-in-posts.php" instead of "last-updated-date.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102113

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected