84% limit-modified-date

Code Review | Limit Modified Date

WordPress plugin Limit Modified Date scored84%from 54 tests.

About plugin

  • Plugin page: limit-modified-date
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.5
  • WordPress version: 6.3.1
  • First release: May 13, 2019
  • Latest release: Oct 12, 2022
  • Number of updates: 8
  • Update frequency: every 156.0 days
  • Top authors: billerickson (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

4,000+ active /15,248 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.98ms] Passed 4 tests

This is a short check of server-side resources used by Limit Modified Date
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0350.09 ▲8.69
Dashboard /wp-admin3.33 ▲0.0349.18 ▼8.27
Posts /wp-admin/edit.php3.39 ▲0.0351.66 ▲1.49
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.92 ▼26.45
Media Library /wp-admin/upload.php3.26 ▲0.0338.44 ▼2.70

Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/limit-modified-date/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Limit Modified Date
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2913.19 ▼1.021.79 ▼0.3343.76 ▼0.55
Dashboard /wp-admin2,218 ▲155.84 ▲0.83101.05 ▼10.1238.33 ▲0.16
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0141.94 ▲2.2936.80 ▲1.35
Add New Post /wp-admin/post-new.php1,552 ▲2623.39 ▲5.69599.42 ▼77.9956.29 ▼0.49
Media Library /wp-admin/upload.php1,394 ▼94.24 ▼0.0197.12 ▼17.6945.01 ▼7.82

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/limit-modified-date/limit-modified-date.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: time, formatting, date

limit-modified-date/limit-modified-date.php Passed 13 tests

The principal PHP file in "Limit Modified Date" v. 1.0.0 is loaded by WordPress automatically on each request
84 characters long description:
Prevent the "modified date" from changing when making minor changes to your content.

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
Everything looks great! No dangerous files found in this plugin9,378 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JSON2008,992
JavaScript475129263
PHP13639103
Markdown114020

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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