10% last-revision-widget

Code Review | Last Revision Date Widget

WordPress plugin Last Revision Date Widget scored 10% from 54 tests.

About plugin

  • Plugin page: last-revision-widget
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 5.9.2
  • First release: Nov 19, 2014
  • Latest release: Nov 19, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: alci1969 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 760 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/last-revision-widget/last-revision-widget.php+89
    Function create_function() is deprecated

Server metrics [RAM: ▼2.53MB] [CPU: ▼357.87ms] Passed 4 tests

An overview of server-side resources used by Last Revision Date Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.674.26 ▼45.07
Dashboard /wp-admin1.86 ▼1.553.73 ▼98.27
Posts /wp-admin/edit.php1.86 ▼1.784.73 ▼37.06
Add New Post /wp-admin/post-new.php1.86 ▼5.113.78 ▼1,251.09
Media Library /wp-admin/upload.php1.86 ▼1.444.00 ▼30.51

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
widget_lastrevisiondatewidget

Browser metrics Passed 4 tests

Checking browser requirements for Last Revision Date Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲2116.21 ▲0.525.72 ▼0.352.09 ▲0.07
Dashboard /wp-admin2,889 ▲286.14 ▼0.03127.41 ▼9.98196.89 ▲36.15
Posts /wp-admin/edit.php2,691 ▼33.24 ▲0.0164.20 ▼1.29146.31 ▼1.75
Add New Post /wp-admin/post-new.php1,666 ▼8120.58 ▼0.30430.39 ▼77.64157.06 ▼0.85
Media Library /wp-admin/upload.php1,698 ▼35.50 ▼0.02140.85 ▼0.15248.55 ▲60.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/last-revision-widget/last-revision-widget.php+89
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_lastrevisiondatewidget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/last-revision-widget/last-revision-widget.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: page, post, widget, sidebar, revision...

last-revision-widget/last-revision-widget.php Passed 13 tests

The main PHP script in "Last Revision Date Widget" version 1.0.0 is automatically included on every request by WordPress
49 characters long description:
Show last revision date for the current page/post

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

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.18
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin