94% add-post-last-updated-date-for-wp

Code Review | Add Post Last Updated Date For WP

WordPress plugin Add Post Last Updated Date For WP scored 94% from 54 tests.

About plugin

  • Plugin page: add-post-last-upd...
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.9
  • WordPress version: 5.9.2
  • First release: Jan 22, 2019
  • Latest release: Jan 30, 2022
  • Number of updates: 10
  • Update frequency: every 110.5 days
  • Top authors: aftabmuni (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 809 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Add Post Last Updated Date For WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0253.32 ▲0.17
Dashboard /wp-admin3.42 ▲0.0133.48 ▼1.68
Posts /wp-admin/edit.php3.66 ▲0.0138.73 ▲1.64
Add New Post /wp-admin/post-new.php6.89 ▼0.0892.69 ▼1,194.40
Media Library /wp-admin/upload.php3.31 ▲0.0125.69 ▼1.01

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Add Post Last Updated Date For WP: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1015.97 ▼0.067.13 ▲1.212.30 ▼0.11
Dashboard /wp-admin2,895 ▲416.08 ▼0.05120.36 ▼14.12157.30 ▼3.86
Posts /wp-admin/edit.php2,694 ▲33.23 ▼0.1463.33 ▼7.93143.96 ▼10.74
Add New Post /wp-admin/post-new.php1,760 ▲4916.93 ▼3.74421.63 ▼28.42162.14 ▲4.31
Media Library /wp-admin/upload.php1,698 ▼05.54 ▲0.03142.80 ▼0.54186.36 ▲1.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 plugin_dir_path() in wp-content/plugins/add-post-last-updated-date-for-wp/add-post-last-updated-wp.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: last updated date to post, post modified on, add last modified date in post

add-post-last-updated-date-for-wp/add-post-last-updated-wp.php 92% from 13 tests

The main PHP file in "Add Post Last Updated Date For WP" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("add-post-last-updated-date-for-wp.php" instead of "add-post-last-updated-wp.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
Success! There were no dangerous files found in this plugin36 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.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
No PNG files were detected