90% basic-recent-commented-posts-widget

Code Review | Basic Recent Commented Posts

WordPress plugin Basic Recent Commented Posts scored 90% from 54 tests.

About plugin

  • Plugin page: basic-recent-comm...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6.2
  • WordPress version: 6.3.1
  • First release: Dec 28, 2016
  • Latest release: Feb 27, 2021
  • Number of updates: 35
  • Update frequency: every 43.5 days
  • Top authors: MarcDK (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,144 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.11ms] Passed 4 tests

Analyzing server-side resources used by Basic Recent Commented Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.73 ▲5.06
Dashboard /wp-admin3.34 ▲0.0443.41 ▼4.63
Posts /wp-admin/edit.php3.39 ▲0.0448.05 ▲3.47
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.96 ▼14.73
Media Library /wp-admin/upload.php3.27 ▲0.0435.61 ▲3.47

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_recent_commented_posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Basic Recent Commented Posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.56 ▼0.644.26 ▲2.4837.46 ▼9.44
Dashboard /wp-admin2,206 ▲154.87 ▼0.19114.97 ▲12.9945.48 ▲3.43
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0537.67 ▲0.9335.09 ▲0.45
Add New Post /wp-admin/post-new.php1,535 ▲1423.34 ▲0.07675.04 ▼2.0753.36 ▲5.54
Media Library /wp-admin/upload.php1,388 ▼34.14 ▼0.0494.47 ▼7.3441.06 ▼7.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent_commented_posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: widget, comments, posts

basic-recent-commented-posts-widget/basic-recent-commented-posts.php 92% from 13 tests

The main PHP file in "Basic Recent Commented Posts" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("basic-recent-commented-posts-widget.php" instead of "basic-recent-commented-posts.php")

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
Everything looks great! No dangerous files found in this plugin206 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36853169
PO File1121837

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.33
▷ Minimum class complexity2.00
▷ Maximum class complexity9.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods433.33%
▷ Public methods12100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected