84% post-updated-date

Code Review | Posts Modified Date

WordPress plugin Posts Modified Date scored84%from 54 tests.

About plugin

  • Plugin page: post-updated-date
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1
  • WordPress version: 6.3.1
  • First release: Jun 10, 2016
  • Latest release: Nov 14, 2022
  • Number of updates: 15
  • Update frequency: every 156.5 days
  • Top authors: mag_oberon (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /16,808 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Posts Modified Date
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.59 ▼7.62
Dashboard /wp-admin3.31 ▲0.0043.67 ▼5.62
Posts /wp-admin/edit.php3.36 ▲0.0045.89 ▼3.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.68 ▼18.93
Media Library /wp-admin/upload.php3.23 ▲0.0034.81 ▼0.49

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Posts Modified Date
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.145.72 ▲3.8541.29 ▼0.98
Dashboard /wp-admin2,206 ▲185.86 ▲0.0099.17 ▼19.3638.52 ▼6.50
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0139.40 ▲1.1536.34 ▲0.61
Add New Post /wp-admin/post-new.php1,514 ▼1917.70 ▼0.79686.23 ▲55.8859.47 ▼1.71
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.0495.49 ▼8.2941.44 ▼4.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/post-updated-date/post-updated-date.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
  • Screenshots: Add an image for screenshot #1 (demo)
Please take inspiration from this readme.txt

post-updated-date/post-updated-date.php Passed 13 tests

"Posts Modified Date" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
Add Last Updated Date in WordPress Blog Posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172218

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions2
▷ Named functions2100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
demo.png38.61KB13.73KB▼ 64.42%