84% wp-last-modified-info

Code Review | WP Last Modified Info

WordPress plugin WP Last Modified Info scored84%from 54 tests.

About plugin

  • Plugin page: wp-last-modified-...
  • Plugin version: 1.8.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Apr 26, 2018
  • Latest release: Jun 26, 2023
  • Number of updates: 165
  • Update frequency: every 11.4 days
  • Top authors: infosatech (100%)

Code review

54 tests

User reviews

718 reviews

Install metrics

30,000+ active /433,309 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲1.50MB] [CPU: ▲3.27ms] Passed 4 tests

An overview of server-side resources used by WP Last Modified Info
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.86 ▲1.4047.41 ▲5.92
Dashboard /wp-admin4.85 ▲1.5155.95 ▼2.11
Posts /wp-admin/edit.php4.96 ▲1.6157.30 ▲8.38
Add New Post /wp-admin/post-new.php7.45 ▲1.5693.83 ▲0.89
Media Library /wp-admin/upload.php4.77 ▲1.5447.66 ▲11.02
WP Last Modified Info /wp-admin/options-general.php?page=wp-last-modified-info4.8344.53

Server storage [IO: ▲0.53MB] [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: 96 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
wplmi_plugin_api_data
wplmi_plugin_installed_time
db_upgraded
can_compress_scripts
wplmi_site_global_update_info
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Last Modified Info: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲11813.65 ▼0.654.80 ▲2.9443.62 ▲2.35
Dashboard /wp-admin2,263 ▲814.88 ▼0.03107.15 ▼7.3539.83 ▼2.25
Posts /wp-admin/edit.php2,428 ▲3362.13 ▲0.0342.75 ▲2.4735.02 ▼0.15
Add New Post /wp-admin/post-new.php6,362 ▲4,82928.68 ▲5.49903.31 ▲225.1641.89 ▼8.09
Media Library /wp-admin/upload.php1,389 ▲14.18 ▲0.0094.10 ▼2.0138.67 ▼0.85
WP Last Modified Info /wp-admin/options-general.php?page=wp-last-modified-info2,9535.29140.34119.12

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • wplmi_site_global_update_info
    • wplmi_plugin_api_data
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 3× 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/wp-last-modified-info/vendor/deliciousbrains/wp-background-processing/wp-background-processing.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-last-modified-info/templates/admin.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/wp-last-modified-info/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php:14

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: last modified, modified time, timestamp, date, time...

wp-last-modified-info/wp-last-modified-info.php 92% from 13 tests

The main PHP file in "WP Last Modified Info" ver. 1.8.8 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 193 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin5,427 lines of code in 88 files:
LanguageFilesBlank linesComment linesLines of code
PHP681,1872,5605,091
JSON400201
SVG10099
JavaScript902821
XML10010
CSS50275

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity14.31
▷ Minimum class complexity1.00
▷ Maximum class complexity58.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces13
Interfaces0
Traits5
Classes43
▷ Abstract classes24.65%
▷ Concrete classes4195.35%
▷ Final classes24.88%
Methods341
▷ Static methods257.33%
▷ Public methods25073.31%
▷ Protected methods6218.18%
▷ Private methods298.50%
Functions13
▷ Named functions430.77%
▷ Anonymous functions969.23%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.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 are no PNG files in this plugin