90% recent-comments-widget-with-excerpts

Code Review | Recent Comments Widget with Excerpts

WordPress plugin Recent Comments Widget with Excerpts scored90%from 54 tests.

About plugin

  • Plugin page: recent-comments-w...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.3.0
  • WordPress version: 6.3.1
  • First release: Nov 13, 2010
  • Latest release: Sep 6, 2023
  • Number of updates: 16
  • Update frequency: every 292.6 days
  • Top authors: salzano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,222 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Recent Comments Widget with Excerpts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.92 ▲1.50
Dashboard /wp-admin3.34 ▲0.0350.19 ▲1.77
Posts /wp-admin/edit.php3.39 ▲0.0350.93 ▲4.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.27 ▼4.05
Media Library /wp-admin/upload.php3.27 ▲0.0333.15 ▼0.85

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments-excerpts

Browser metrics Passed 4 tests

Recent Comments Widget with Excerpts: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.251.83 ▲0.0542.94 ▲1.89
Dashboard /wp-admin2,195 ▲185.59 ▼0.07108.05 ▲17.7339.48 ▼3.43
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0334.98 ▼3.6135.12 ▼2.75
Add New Post /wp-admin/post-new.php1,526 ▼023.44 ▲0.51645.14 ▼96.1054.01 ▼4.82
Media Library /wp-admin/upload.php1,400 ▼34.29 ▲0.1197.84 ▼11.3243.65 ▼3.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-comments-excerpts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: recent comments widget, comment excerpts, default widgets, recent comment excerpts, recent comments

recent-comments-widget-with-excerpts/recent_comments_widget_with_excerpts.php 92% from 13 tests

The main file in "Recent Comments Widget with Excerpts" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("recent-comments-widget-with-excerpts.php" instead of "recent_comments_widget_with_excerpts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected103 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11853103

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin