84% nested-comments-unbound

Code Review | Nested Comments Unbound

WordPress plugin Nested Comments Unbound scored 84% from 54 tests.

About plugin

  • Plugin page: nested-comments-u...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2017
  • Latest release: Feb 25, 2017
  • Number of updates: 16
  • Update frequency: every 0.4 days
  • Top authors: CK MacLeod (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 786 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.10ms] Passed 4 tests

A check of server-side resources used by Nested Comments Unbound
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1238.92 ▼4.09
Dashboard /wp-admin3.42 ▲0.1246.86 ▼7.80
Posts /wp-admin/edit.php3.54 ▲0.1847.68 ▲2.94
Add New Post /wp-admin/post-new.php6.00 ▲0.1287.23 ▼7.60
Media Library /wp-admin/upload.php3.34 ▲0.1236.33 ▼0.90
Nested Comments Unbound /wp-admin/options-general.php?page=wp_ncu3.3133.79

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
db_upgraded
wp_ncu_settings
wp_ncu_legacy_settings
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Nested Comments Unbound
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.55 ▼0.841.61 ▼0.4239.95 ▼5.01
Dashboard /wp-admin2,207 ▲195.82 ▲0.9296.21 ▼17.9539.32 ▼8.48
Posts /wp-admin/edit.php2,093 ▲12.03 ▲0.0533.91 ▼2.3733.93 ▲0.77
Add New Post /wp-admin/post-new.php1,545 ▲2618.13 ▼5.27596.97 ▼93.8548.07 ▼17.14
Media Library /wp-admin/upload.php1,395 ▲74.23 ▲0.0197.25 ▼7.0241.57 ▼2.66
Nested Comments Unbound /wp-admin/options-general.php?page=wp_ncu2,67516.21483.17162.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/nested-comments-unbound/ncu-settings.php
    • > /wp-content/plugins/nested-comments-unbound/wp-ncu.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: commentariat, ck macleod, nested comments, max-depth, comments...

nested-comments-unbound/wp-ncu.php 85% from 13 tests

"Nested Comments Unbound" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Name the main plugin file the same as the plugin slug ("nested-comments-unbound.php" instead of "wp-ncu.php")

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
Good job! No executable or dangerous file extensions detected1,052 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3285131720
CSS3933332

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/cib_plugin_signature.png3.98KB2.77KB▼ 30.37%
images/arrow-right.png2.00KB0.69KB▼ 65.41%
images/arrow-left.png2.01KB0.69KB▼ 65.54%