84% last-modified-timestamp

Code Review | Last Modified Timestamp

WordPress plugin Last Modified Timestamp scored84%from 54 tests.

About plugin

  • Plugin page: last-modified-tim...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-5.9.3
  • WordPress version: 6.3.1
  • First release: Jan 11, 2012
  • Latest release: Apr 15, 2022
  • Number of updates: 65
  • Update frequency: every 57.7 days
  • Top authors: aaemnnosttv (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

10,000+ active /60,444 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
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼10.42ms] Passed 4 tests

Server-side resources used by Last Modified Timestamp
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1241.17 ▲3.10
Dashboard /wp-admin3.42 ▲0.0746.26 ▼16.72
Posts /wp-admin/edit.php3.47 ▲0.1245.20 ▲0.07
Add New Post /wp-admin/post-new.php6.00 ▲0.1182.72 ▼24.17
Media Library /wp-admin/upload.php3.34 ▲0.1133.11 ▼0.87

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Last Modified Timestamp
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼1.035.30 ▲3.5343.51 ▲2.15
Dashboard /wp-admin2,206 ▲185.90 ▼0.00109.94 ▲5.9843.61 ▲1.08
Posts /wp-admin/edit.php2,125 ▲362.01 ▲0.0236.57 ▼0.6935.96 ▲2.64
Add New Post /wp-admin/post-new.php1,527 ▼123.25 ▲4.75644.82 ▼15.2553.65 ▲2.73
Media Library /wp-admin/upload.php1,391 ▲34.32 ▲0.0897.21 ▼10.1839.78 ▼7.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/last-modified-timestamp/last-modified-timestamp.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: Please take inspiration from this readme.txt

last-modified-timestamp/last-modified-timestamp.php 92% from 13 tests

"Last Modified Timestamp" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 178 characters long)

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 detected199 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13662136
PO File1141463

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods1191.67%
▷ Protected methods18.33%
▷ 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
There were not PNG files found in your plugin