73% wp-last-modified

Code Review | WP Last Modified

WordPress plugin WP Last Modified scored73%from 54 tests.

About plugin

  • Plugin page: wp-last-modified
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Aug 4, 2013
  • Latest release: Aug 4, 2013
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: techably (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

600+ active /11,202 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
Install script ran successfully

Server metrics [RAM: ▼0.48MB] [CPU: ▼25.29ms] Passed 4 tests

Server-side resources used by WP Last Modified
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▼0.6218.96 ▼25.32
Dashboard /wp-admin3.32 ▼0.0240.56 ▼20.67
Posts /wp-admin/edit.php3.37 ▲0.0246.50 ▲7.46
Add New Post /wp-admin/post-new.php4.61 ▼1.2838.32 ▼57.10
Media Library /wp-admin/upload.php3.24 ▲0.0234.92 ▲1.92
WP Last Modified /wp-admin/options-general.php?page=wp-last-modified/includes/admin.php3.1932.83

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Last Modified
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9515.06 ▲0.471.70 ▼0.1340.55 ▼2.72
Dashboard /wp-admin2,247 ▲567.03 ▲1.12175.96 ▲71.6944.90 ▲7.12
Posts /wp-admin/edit.php2,102 ▲103.83 ▲1.8466.76 ▲26.0128.57 ▼8.38
Add New Post /wp-admin/post-new.php6,504 ▲4,97626.60 ▲8.42942.63 ▲297.9835.66 ▼16.38
Media Library /wp-admin/upload.php1,448 ▲576.22 ▲2.01149.33 ▲48.6149.65 ▲4.99
WP Last Modified /wp-admin/options-general.php?page=wp-last-modified/includes/admin.php1,1135.41117.0137.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-last-modified/includes/admin.php
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp-last-modified/includes/admin.php
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 17 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-last-modified/includes/admin.php
    • > Notice in wp-content/plugins/wp-last-modified/includes/admin.php+70
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-last-modified/wp-last-modified.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-last-modified/includes/admin.php:38

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-last-modified/includes/admin.php
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration Passed 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
7 plugin tags: tag, last, revised, modified, updated...

wp-last-modified/wp-last-modified.php Passed 13 tests

"WP Last Modified" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
110 characters long description:
Display Last updated / Last modified date & time in WordPress Posts and Pages. Also supports Meta Revised tag.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin233 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32968233

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin