84% wp-recent-comments-with-avatars

Code Review | WP Recent Comments With Avatars

WordPress plugin WP Recent Comments With Avatars scored84%from 54 tests.

About plugin

  • Plugin page: wp-recent-comment...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.2
  • WordPress version: 6.3.1
  • First release: Jun 27, 2013
  • Latest release: Jun 27, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: TrueFalse (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,966 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
Install script ran successfully

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

Analyzing server-side resources used by WP Recent Comments With Avatars
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.53 ▼6.54
Dashboard /wp-admin3.31 ▲0.0145.41 ▼8.62
Posts /wp-admin/edit.php3.36 ▲0.0048.97 ▲3.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.51 ▼1.00
Media Library /wp-admin/upload.php3.23 ▲0.0035.87 ▼4.04

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP Recent Comments With Avatars
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.51 ▼0.771.72 ▲0.0040.18 ▼13.19
Dashboard /wp-admin2,206 ▲184.84 ▼0.05107.23 ▼6.6841.99 ▼6.08
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0140.27 ▲4.0934.45 ▼0.76
Add New Post /wp-admin/post-new.php1,550 ▲2918.37 ▼4.94612.58 ▼68.1457.90 ▲9.27
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0595.25 ▼5.6241.84 ▼2.52

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/default-widgets.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-recent-comments-with-avatars/wp-recent-comments-with-avatars.php on line 12
    • > PHP Warning
      require_once(ABSPATHWPINC/default-widgets.php): failed to open stream: No such file or directory in wp-content/plugins/wp-recent-comments-with-avatars/wp-recent-comments-with-avatars.php on line 12
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-recent-comments-with-avatars/wp-recent-comments-with-avatars.php on line 12
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-recent-comments-with-avatars/wp-recent-comments-with-avatars.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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: comments, avatars, widget

wp-recent-comments-with-avatars/wp-recent-comments-with-avatars.php 92% from 13 tests

The main PHP script in "WP Recent Comments With Avatars" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 163 characters long)

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
No dangerous file extensions were detected79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161079

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity6.50
▷ Minimum method complexity3.00
▷ Maximum method complexity10.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%
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 were not PNG files found in your plugin