84% echo-chamber-comments

Code Review | Echo Chamber Comments

WordPress plugin Echo Chamber Comments scored84%from 54 tests.

About plugin

  • Plugin page: echo-chamber-comm...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 16, 2015
  • Latest release: Jul 16, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: dmchale (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,446 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: ▼0.53ms] Passed 4 tests

Analyzing server-side resources used by Echo Chamber Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.96 ▲6.15
Dashboard /wp-admin3.31 ▲0.0144.79 ▼1.15
Posts /wp-admin/edit.php3.36 ▲0.0046.38 ▲0.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.64 ▼0.75
Media Library /wp-admin/upload.php3.24 ▲0.0035.30 ▼0.26

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Echo Chamber Comments
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.38 ▼1.001.82 ▲0.0144.07 ▲1.94
Dashboard /wp-admin2,203 ▲155.79 ▲0.92103.93 ▲3.9838.84 ▼6.24
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0036.32 ▼4.5634.95 ▼1.81
Add New Post /wp-admin/post-new.php1,514 ▼1917.60 ▼5.38648.94 ▼34.2356.88 ▲0.95
Media Library /wp-admin/upload.php1,385 ▼34.16 ▼0.1293.07 ▼2.6741.87 ▼2.15

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/echo-chamber-comments/echo-chamber-comments.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/echo-chamber-comments/inc/comments.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
Please take inspiration from this readme.txt

echo-chamber-comments/echo-chamber-comments.php Passed 13 tests

The main PHP file in "Echo Chamber Comments" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
Replace the WordPress comment system with a dummy comment system.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin28 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP341728

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.80
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

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