10% wp-last-updated

Code Review | WP last updated

WordPress plugin WP last updated scored 10% from 54 tests.

About plugin

  • Plugin page: wp-last-updated
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2013
  • Latest release: Apr 14, 2013
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: mikemayhem3030 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active / 2,926 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/wp-last-updated/WPlastupdated.php+55
    Methods with the same name as their class will not be constructors in a future version of PHP; epic_lastupdated_widget has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼50.84ms] Passed 4 tests

A check of server-side resources used by WP last updated
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.75 ▼34.41
Dashboard /wp-admin2.08 ▼1.227.13 ▼44.93
Posts /wp-admin/edit.php2.08 ▼1.275.36 ▼38.67
Add New Post /wp-admin/post-new.php2.08 ▼3.805.67 ▼85.33
Media Library /wp-admin/upload.php2.08 ▼1.156.54 ▼28.52

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

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

Browser metrics Passed 4 tests

WP last updated: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼1.104.52 ▲2.7244.05 ▼2.73
Dashboard /wp-admin2,206 ▲154.89 ▼1.01110.66 ▲9.2241.74 ▼0.32
Posts /wp-admin/edit.php2,089 ▲31.99 ▲0.0240.60 ▲4.0335.37 ▲1.02
Add New Post /wp-admin/post-new.php1,537 ▲418.18 ▼5.17603.42 ▼61.6651.05 ▼0.80
Media Library /wp-admin/upload.php1,382 ▼64.22 ▼0.1099.97 ▼7.2443.95 ▼4.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/wp-last-updated/WPlastupdated.php+55
    Methods with the same name as their class will not be constructors in a future version of PHP; epic_lastupdated_widget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_epic_lastupdated_widget
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-last-updated/WPlastupdated.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
4 plugin tags: last updated, wordpress, modified, link

wp-last-updated/WPlastupdated.php 92% from 13 tests

The main file in "WP last updated" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-last-updated.php" instead of "WPlastupdated.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin65 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1271465

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.13
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.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%
Functions2
▷ Named functions2100.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