10% extended-comments-widget

Code Review | Extended Comments Widget

WordPress plugin Extended Comments Widget scored 10% from 54 tests.

About plugin

  • Plugin page: extended-comments...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.1
  • WordPress version: 5.8.1
  • First release: Nov 29, 2010
  • Latest release: Nov 21, 2014
  • Number of updates: 15
  • Update frequency: every 97.4 days
  • Top authors: johnny5 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 3,710 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/extended-comments-widget/extended-comments-widget.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; Extended_Comments_Widget has a deprecated constructor

Server metrics [RAM: ▼1.83MB] [CPU: ▼190.87ms] Passed 4 tests

A check of server-side resources used by Extended Comments Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼0.928.36 ▼22.16
Dashboard /wp-admin1.82 ▼1.246.07 ▼44.43
Posts /wp-admin/edit.php1.82 ▼1.296.45 ▼40.46
Add New Post /wp-admin/post-new.php1.82 ▼3.625.53 ▼645.92
Media Library /wp-admin/upload.php1.82 ▼1.185.68 ▼32.68

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
widget_extended-comments

Browser metrics Passed 4 tests

Checking browser requirements for Extended Comments Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲10615.76 ▲0.3610.25 ▼0.8552.17 ▼19.59
Dashboard /wp-admin2,973 ▲395.88 ▼0.21143.89 ▼34.87118.55 ▼12.18
Posts /wp-admin/edit.php2,739 ▼02.82 ▼0.0172.81 ▲2.7195.91 ▼1.72
Add New Post /wp-admin/post-new.php1,683 ▲10218.55 ▲0.69392.17 ▲9.45112.07 ▼14.54
Media Library /wp-admin/upload.php1,810 ▲35.00 ▼0.01153.84 ▼17.49126.29 ▲6.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/extended-comments-widget/extended-comments-widget.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; Extended_Comments_Widget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_extended-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/extended-comments-widget/extended-comments-widget.php:11

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === extended-comments-widget === )
  • Screenshots: Screenshot #1 (Example screenshot) image missing
Please take inspiration from this readme.txt

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

The entry point to "Extended Comments Widget" version 0.1.1 is a PHP file that has certain tags in its header comment area
115 characters long description:
A widget that shows a section of comment text along with the author name. Can exclude certain authors from the list

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin77 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1262977

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png22.02KB5.64KB▼ 74.39%