84% infinite-comment-replies

Code Review | Infinite Comment Replies

WordPress plugin Infinite Comment Replies scored 84% from 54 tests.

About plugin

  • Plugin page: infinite-comment-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-4.9.7
  • WordPress version: 5.9.2
  • First release: Mar 21, 2016
  • Latest release: Jul 10, 2018
  • Number of updates: 20
  • Update frequency: every 42.2 days
  • Top authors: stephane74 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 1,753 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 gracefully, with no errors

Server metrics [RAM: ▼2.42MB] [CPU: ▼352.26ms] Passed 4 tests

Server-side resources used by Infinite Comment Replies
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.95 ▼1.574.49 ▼64.18
Dashboard /wp-admin1.96 ▼1.443.84 ▼32.52
Posts /wp-admin/edit.php1.96 ▼1.675.31 ▼38.40
Add New Post /wp-admin/post-new.php1.96 ▼5.014.82 ▼1,273.93
Media Library /wp-admin/upload.php1.96 ▼1.333.64 ▼21.87

Server storage [IO: ▲0.08MB] [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: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Infinite Comment Replies
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,885 ▲13116.29 ▲0.969.92 ▲2.792.19 ▼1.39
Dashboard /wp-admin2,895 ▲456.07 ▼0.14149.98 ▲18.28170.89 ▼60.77
Posts /wp-admin/edit.php2,691 ▲33.27 ▲0.0461.90 ▼0.53217.41 ▲78.74
Add New Post /wp-admin/post-new.php1,672 ▲1120.40 ▲4.04398.52 ▼4.77159.37 ▼29.17
Media Library /wp-admin/upload.php1,704 ▲125.60 ▲0.07124.52 ▼38.54246.34 ▲24.40

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
You still need to fix the following
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5768
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-core handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× 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/infinite-comment-replies/infinite-comment-replies.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (This is what it looks like before "Infinite Replies" is installed. You can see that the "Reply" button is missing at the maximum depth.), #2 (After installation, people can now reply to comments no matter how deep they're nested.)
The official readme.txt is a good inspiration

infinite-comment-replies/infinite-comment-replies.php Passed 13 tests

"Infinite Comment Replies" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
97 characters long description:
Adds a "Reply" link even for comments at the maximum depth, so you can continue the conversation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin39 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP133927
JavaScript2309
CSS1103

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions3
▷ Named functions3100.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
No PNG files were detected