84% user-last-modified

Code Review | User Last Modified

WordPress plugin User Last Modified scored84%from 54 tests.

About plugin

  • Plugin page: user-last-modified
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Jan 13, 2017
  • Latest release: Nov 12, 2017
  • Number of updates: 6
  • Update frequency: every 50.0 days
  • Top authors: glen_scott (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /1,076 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.19ms] Passed 4 tests

Server-side resources used by User Last Modified
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.81 ▼6.09
Dashboard /wp-admin3.31 ▲0.0153.77 ▲3.34
Posts /wp-admin/edit.php3.36 ▲0.0148.71 ▼7.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.46 ▼2.79
Media Library /wp-admin/upload.php3.24 ▲0.0136.14 ▼0.36

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for User Last Modified
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.011.64 ▼0.4241.97 ▼2.69
Dashboard /wp-admin2,198 ▲245.63 ▲0.0689.86 ▼12.0138.40 ▼6.48
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0141.89 ▲1.8237.52 ▼0.65
Add New Post /wp-admin/post-new.php1,531 ▲322.79 ▼0.32609.05 ▲6.8864.03 ▲17.41
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0596.14 ▼11.2644.85 ▼1.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-last-modified/user-last-modified.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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 require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === user-last-modified === )
You can look at the official readme.txt

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

The principal PHP file in "User Last Modified" v. 1.0.0 is loaded by WordPress automatically on each request
47 characters long description:
Adds a last modified timestamp to user profiles

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 detected19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17919

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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