84% list-last-changes

Code Review | List Last Changes

WordPress plugin List Last Changes scored84%from 54 tests.

About plugin

  • Plugin page: list-last-changes
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 28, 2013
  • Latest release: Nov 12, 2023
  • Number of updates: 103
  • Update frequency: every 35.1 days
  • Top authors: rbaer (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active /11,157 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.78ms] Passed 4 tests

An overview of server-side resources used by List Last Changes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0637.31 ▼2.32
Dashboard /wp-admin3.37 ▲0.0247.78 ▼11.55
Posts /wp-admin/edit.php3.42 ▲0.0652.06 ▲2.84
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.04 ▼15.76
Media Library /wp-admin/upload.php3.29 ▲0.0631.23 ▼1.47

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_list-last-changes-widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by List Last Changes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3014.22 ▼0.131.64 ▼0.1438.18 ▼2.24
Dashboard /wp-admin2,198 ▲215.59 ▼0.0191.04 ▼2.0838.74 ▼4.62
Posts /wp-admin/edit.php2,103 ▲31.94 ▼0.0241.37 ▼0.7935.51 ▲0.80
Add New Post /wp-admin/post-new.php6,362 ▲4,83627.87 ▲4.24893.38 ▲257.0454.88 ▲1.72
Media Library /wp-admin/upload.php1,403 ▲124.16 ▼0.0598.59 ▼3.3342.89 ▼0.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_list-last-changes-widget

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
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just 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/list-last-changes/list-last-changes.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
6 plugin tags: shortcode, last changes, widget, block editor, pages...

list-last-changes/list-last-changes.php Passed 13 tests

The main file in "List Last Changes" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
53 characters long description:
Shows a list of the last changes of a WordPress site.

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 plugin325 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14669211
JavaScript170108
CSS1106

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods233.33%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin