77% post-modified-date

Code Review | WP Last Updated Date

WordPress plugin WP Last Updated Date scored77%from 54 tests.

About plugin

  • Plugin page: post-modified-date
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 9, 2017
  • Latest release: Aug 19, 2023
  • Number of updates: 8
  • Update frequency: every 259.9 days
  • Top authors: Litonice13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,587 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.79MB] [CPU: ▲1,045.44ms] 50% from 4 tests

Server-side resources used by WP Last Updated Date
Please take the time to fix the following items
  • CPU: Total CPU usage should be kept under 500.00ms (currently 1,271.06ms on /wp-admin/admin.php?page=post-modified-date-recommended-plugins)
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 1,045.44ms on /wp-admin/admin.php?page=post-modified-date-recommended-plugins)
PageMemory (MB)CPU Time (ms)
Home /4.29 ▲0.82601.41 ▲558.84
Dashboard /wp-admin4.23 ▲0.891,469.17 ▲1,405.85
Posts /wp-admin/edit.php4.17 ▲0.811,237.72 ▲1,182.92
Add New Post /wp-admin/post-new.php6.63 ▲0.751,243.14 ▲1,154.32
Media Library /wp-admin/upload.php4.01 ▲0.781,327.17 ▲1,285.69
Post Update Date /wp-admin/options-general.php?page=jwt_pmd3.981,227.50
Recommended /wp-admin/admin.php?page=post-modified-date-recommended-plugins3.981,271.06

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 13 new options
New WordPress options
db_upgraded
widget_recent-comments
jltpmd_notice_what_we_collect
widget_recent-posts
jltpmd_sheet_promo_data_hash
post_modified_date_version
jltpmd_sheet_promo_data
jltpmd_activation_time
jltpmd_notice_subscribe
can_compress_scripts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Last Updated Date
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲14014.39 ▲0.201.68 ▼0.4838.38 ▼5.87
Dashboard /wp-admin2,333 ▲1565.60 ▲0.0094.68 ▼1.8840.49 ▼0.39
Posts /wp-admin/edit.php2,193 ▲932.04 ▲0.0039.50 ▼3.1434.59 ▼0.92
Add New Post /wp-admin/post-new.php1,610 ▲8221.04 ▼1.85639.04 ▼35.7752.01 ▼3.82
Media Library /wp-admin/upload.php1,487 ▲844.25 ▲0.05111.83 ▼2.2743.95 ▼6.30
Post Update Date /wp-admin/options-general.php?page=jwt_pmd9141.7032.0325.43
Recommended /wp-admin/admin.php?page=post-modified-date-recommended-plugins1,2701.7331.0628.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 13 options
    • post_modified_date_version
    • jltpmd_activation_time
    • widget_recent-posts
    • jltpmd_sheet_promo_data_hash
    • widget_recent-comments
    • jltpmd_notice_ask_for_rating
    • jltpmd_notice_what_we_collect
    • db_upgraded
    • jltpmd_notice_subscribe
    • theysaidso_admin_options
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'JLTPMD\\Libs\\Recommended' not found in wp-content/plugins/post-modified-date/Inc/Classes/Recommended_Plugins.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTPMD\\Libs\\Upgrader' not found in wp-content/plugins/post-modified-date/Inc/Classes/Upgrade_Plugin.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTPMD\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/post-modified-date/Inc/Classes/Notifications/Subscribe.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'JLTPMD\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/post-modified-date/Inc/Classes/Notifications/What_We_Collect.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/post-modified-date/post-modified-date.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'JLTPMD\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/post-modified-date/Inc/Classes/Notifications/Ask_For_Rating.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTPMD\\Libs\\RowLinks' not found in wp-content/plugins/post-modified-date/Inc/Classes/Row_Links.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTPMD\\Inc\\Classes\otifications\\Model\\Popup' not found in wp-content/plugins/post-modified-date/Inc/Classes/Notifications/Upgrade_Notice.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=post-modified-date-recommended-plugins
    • > Network (severe)
    https://ps.w.org/ultimate-blocks-for-gutenberg/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: post updated date, updated, last update, post, last modified date...

post-modified-date/post-modified-date.php 85% from 13 tests

The main PHP file in "WP Last Updated Date" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path must begin with a forward slash character ("/languages/")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")

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
No dangerous file extensions were detected3,777 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP377451,4193,017
CSS311814606
JavaScript2159154

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.71
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits2
Classes26
▷ Abstract classes415.38%
▷ Concrete classes2284.62%
▷ Final classes14.55%
Methods193
▷ Static methods3317.10%
▷ Public methods19098.45%
▷ Protected methods10.52%
▷ Private methods21.04%
Functions9
▷ Named functions555.56%
▷ Anonymous functions444.44%
Constants16
▷ Global constants1593.75%
▷ Class constants16.25%
▷ Public constants1100.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 files were detected