90% comments-widget-plus

Code Review | Recent Comments Widget Plus

WordPress plugin Recent Comments Widget Plus scored90%from 54 tests.

About plugin

  • Plugin page: comments-widget-plus
  • Plugin version: 1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2015
  • Latest release: Oct 26, 2022
  • Number of updates: 29
  • Update frequency: every 89.4 days
  • Top authors: satrya (75.86%)idenovasi (20.69%)6hourcreative (10.34%)

Code review

54 tests

User reviews

20 reviews

Install metrics

3,000+ active /42,673 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.50ms] Passed 4 tests

Server-side resources used by Recent Comments Widget Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.52 ▼3.52
Dashboard /wp-admin3.32 ▲0.0246.06 ▼5.06
Posts /wp-admin/edit.php3.37 ▲0.0245.91 ▼4.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.73 ▼5.40
Media Library /wp-admin/upload.php3.24 ▲0.0134.44 ▲0.60

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_cwp-widget
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Recent Comments Widget Plus
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.43 ▼0.231.78 ▼0.1843.90 ▲2.67
Dashboard /wp-admin2,208 ▲174.85 ▼1.16108.81 ▼1.8338.48 ▼4.65
Posts /wp-admin/edit.php2,094 ▲22.05 ▲0.0138.92 ▼4.6535.68 ▼2.04
Add New Post /wp-admin/post-new.php1,530 ▲1623.31 ▼0.16618.88 ▲20.1251.55 ▲4.89
Media Library /wp-admin/upload.php1,384 ▼44.20 ▼0.0597.40 ▼0.2343.65 ▲0.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_cwp-widget
    • can_compress_scripts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: sidebar, trackback, widget, pingback, avatar...

comments-widget-plus/comments-widget-plus.php Passed 13 tests

Analyzing the main PHP file in "Recent Comments Widget Plus" version 1.3
58 characters long description:
Enables custom recent comments widget with extra features.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin342 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP391123321
CSS24021

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin