77% wp-open-last-modified

Code Review | WP Last Modified

WordPress plugin WP Last Modified scored77%from 54 tests.

About plugin

  • Plugin page: wp-open-last-modi...
  • Plugin version: 1.4.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-5.3
  • WordPress version: 6.3.1
  • First release: Mar 22, 2016
  • Latest release: Dec 6, 2019
  • Number of updates: 24
  • Update frequency: every 56.5 days
  • Top authors: dogano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /8,136 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.50ms] Passed 4 tests

Analyzing server-side resources used by WP Last Modified
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.79 ▼1.22
Dashboard /wp-admin3.35 ▲0.0451.15 ▼3.16
Posts /wp-admin/edit.php3.40 ▲0.0449.06 ▼4.65
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.81 ▼13.62
Media Library /wp-admin/upload.php3.27 ▲0.0433.24 ▼4.55
WP Last Modified Settings /wp-admin/options-general.php?page=wp-open-last-modified/open_last_modified.php3.2436.10

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Last Modified
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.22 ▼0.991.86 ▼0.0842.99 ▼4.82
Dashboard /wp-admin2,207 ▲195.86 ▲0.96108.54 ▼1.6542.77 ▲5.47
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0633.66 ▼2.2935.33 ▲0.25
Add New Post /wp-admin/post-new.php1,545 ▲3118.34 ▲0.78628.08 ▼44.5749.82 ▼18.18
Media Library /wp-admin/upload.php1,389 ▼24.24 ▼0.01102.74 ▲4.0342.19 ▼0.48
WP Last Modified Settings /wp-admin/options-general.php?page=wp-open-last-modified/open_last_modified.php9838.15151.2934.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
Good news, no errors were detected

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 fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-open-last-modified/open_last_modified.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=wp-open-last-modified/open_last_modified.php
    • > Network (severe)
    https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-4632643185412075&output=html&h=280&slotname=8151786874&adk=3972669584&adf=4055310249&pi=t.ma~as.8151786874&w=729&fwrn=4&fwrnh=100&lmt=1697108638&rafmt=1&format=729x280&url=http%3A%2F%2Fwp.com%2Fwp-admin%2Foptions-general.php%3Fpage%3Dwp-open-last-modified%252Fopen_last_modified.php&ea=0&fwr=0&fwrattr=true&rpe=1&resp_fmts=3&wgl=1&dt=1697108638723&bpp=4&bdt=218&idt=256&shv=r20231004&mjsv=m202310040101&ptt=9&saldr=aa&abxe=1&correlator=2751959616983&frm=20&pv=2&ga_vid=2049118128.1697108639&ga_sid=1697108639&ga_hid=429031050&ga_fc=0&u_tz=180&u_his=14&u_h=600&u_w=800&u_ah=600&u_aw=800&u_cd=24&u_sd=1&adx=56&ady=120&biw=785&bih=585&scr_x=0&scr_y=0&eid=44759927%2C44759876%2C31077328%2C31078658%2C42532335%2C44804782%2C44805098%2C44804939&oid=2&pvsid=2179955589008143&tmod=531866322&uas=0&nvt=1&fc=896&brdim=0%2C0%2C0%2C0%2C800%2C0%2C800%2C600%2C800%2C600&vis=1&rsz=o%7Co%7CpeE%7C&abl=NS&pfx=0&fu=1152&bc=23&ifi=1&uci=a!1&fsb=1&dtd=277 - Failed to load resource: the server responded with a status of 403 ()
    • > GET request to /wp-admin/options-general.php?page=wp-open-last-modified/open_last_modified.php
    • > Network (severe)
    https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-4632643185412075&output=html&h=280&slotname=7055818315&adk=2745236103&adf=683767716&pi=t.ma~as.7055818315&w=729&fwrn=4&fwrnh=100&lmt=1697108639&rafmt=1&format=729x280&url=http%3A%2F%2Fwp.com%2Fwp-admin%2Foptions-general.php%3Fpage%3Dwp-open-last-modified%252Fopen_last_modified.php&ea=0&fwr=0&fwrattr=true&rpe=1&resp_fmts=3&wgl=1&dt=1697108638727&bpp=1&bdt=222&idt=282&shv=r20231004&mjsv=m202310040101&ptt=9&saldr=aa&abxe=1&prev_fmts=729x280&correlator=2751959616983&frm=20&pv=1&ga_vid=2049118128.1697108639&ga_sid=1697108639&ga_hid=429031050&ga_fc=0&u_tz=180&u_his=14&u_h=600&u_w=800&u_ah=600&u_aw=800&u_cd=24&u_sd=1&adx=56&ady=1025&biw=785&bih=585&scr_x=0&scr_y=0&eid=44759927%2C44759876%2C31077328%2C31078658%2C42532335%2C44804782%2C44805098%2C44804939&oid=2&pvsid=2179955589008143&tmod=531866322&uas=0&nvt=1&fc=896&brdim=0%2C0%2C0%2C0%2C800%2C0%2C800%2C600%2C800%2C600&vis=1&rsz=o%7Co%7CpeEbr%7C&abl=NS&pfx=0&fu=1152&bc=23&ifi=2&uci=a!2&btvi=1&fsb=1&dtd=287 - Failed to load resource: the server responded with a status of 403 ()

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

wp-open-last-modified/open_last_modified.php 85% from 13 tests

"WP Last Modified" version 1.4.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-open-last-modified.php" instead of "open_last_modified.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 533 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin326 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP446137268
PO File1176058

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.50
▷ Minimum class complexity3.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions5
▷ Named functions5100.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
No PNG files were detected