89% last-commented-posts

Code Review | Last Commented Posts Block

WordPress plugin Last Commented Posts Block scored89%from 54 tests.

About plugin

  • Plugin page: last-commented-posts
  • Plugin version: 2.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: Nov 4, 2021
  • Latest release: Nov 15, 2023
  • Number of updates: 36
  • Update frequency: every 20.8 days
  • Top authors: MarcDK (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,489 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Last Commented Posts Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.03 ▼3.05
Dashboard /wp-admin3.32 ▲0.0144.03 ▼4.61
Posts /wp-admin/edit.php3.37 ▲0.0144.92 ▼4.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.06 ▼5.59
Media Library /wp-admin/upload.php3.24 ▲0.0134.42 ▲1.46

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Last Commented Posts Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲614.25 ▼0.101.84 ▼0.2443.14 ▼2.04
Dashboard /wp-admin2,192 ▲125.60 ▼0.1790.34 ▼6.4043.09 ▲2.16
Posts /wp-admin/edit.php2,100 ▼01.96 ▲0.0040.94 ▲0.2535.54 ▼3.19
Add New Post /wp-admin/post-new.php6,366 ▲4,84027.51 ▲4.361,017.08 ▲423.5459.77 ▲4.88
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.00100.50 ▼0.7644.61 ▼0.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: gutenberg, block, comments

last-commented-posts/last-commented-posts.php 85% from 13 tests

The principal PHP file in "Last Commented Posts Block" v. 2.7 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected19,769 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JSON40019,541
PHP2472898
JavaScript472256
YAML21145
Sass25027
CSS2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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
Namespaces1
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin