10% featured-comments-widget

Code Review | Featured Comments

WordPress plugin Featured Comments scored 10% from 54 tests.

About plugin

  • Plugin page: featured-comments...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 17, 2012
  • Latest release: Oct 18, 2012
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: andreu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,319 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/featured-comments-widget/featured-comments-widget.php+143
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.33ms] Passed 4 tests

An overview of server-side resources used by Featured Comments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.69 ▼2.50
Dashboard /wp-admin3.31 ▲0.0046.44 ▼2.56
Posts /wp-admin/edit.php3.36 ▲0.0047.54 ▼3.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.76 ▼8.37
Media Library /wp-admin/upload.php3.23 ▲0.0034.20 ▼1.09

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Featured Comments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.241.63 ▼0.2040.46 ▼1.63
Dashboard /wp-admin2,206 ▲154.88 ▼1.0299.49 ▲1.1836.97 ▼5.69
Posts /wp-admin/edit.php2,092 ▲61.99 ▼0.0139.83 ▲4.4634.77 ▼0.44
Add New Post /wp-admin/post-new.php1,542 ▲817.98 ▼5.30614.18 ▼54.6552.14 ▼5.82
Media Library /wp-admin/upload.php1,385 ▼34.16 ▼0.0192.26 ▼19.5840.77 ▼7.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/featured-comments-widget/featured-comments-widget.php on line 143

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === featured-comments-widget === )
You can look at the official readme.txt

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

Analyzing the main PHP file in "Featured Comments" version 1.0
108 characters long description:
This plugin provides a widget that let you select the comments you want to display as featured or important.

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
Success! There were no dangerous files found in this plugin157 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1272591
PO File2192066

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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