68% jquery-expandable-comments

Code Review | jQuery Comment Replies

WordPress plugin jQuery Comment Replies scored 68% from 54 tests.

About plugin

  • Plugin page: jquery-expandable...
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Apr 1, 2009
  • Latest release: Apr 17, 2014
  • Number of updates: 23
  • Update frequency: every 80.1 days
  • Top authors: doodlebee (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active / 7,188 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼1.16MB] [CPU: ▼41.54ms] Passed 4 tests

Server-side resources used by jQuery Comment Replies
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.81 ▼0.6422.80 ▼21.88
Dashboard /wp-admin2.85 ▼0.4519.25 ▼31.85
Posts /wp-admin/edit.php2.85 ▼0.5016.80 ▼33.04
Add New Post /wp-admin/post-new.php2.85 ▼3.0317.77 ▼79.39
Media Library /wp-admin/upload.php2.85 ▼0.3716.28 ▼17.64
jQuery Comment Replies /wp-admin/options-general.php?page=bb_jcr2.8518.36

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
bb_jcr_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for jQuery Comment Replies
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲20013.72 ▼0.577.77 ▲6.0544.02 ▲2.55
Dashboard /wp-admin2,222 ▲505.85 ▲0.91102.00 ▼11.9543.10 ▲0.12
Posts /wp-admin/edit.php2,102 ▲102.04 ▲0.0237.01 ▼2.5834.91 ▼2.62
Add New Post /wp-admin/post-new.php1,535 ▲2118.24 ▲0.48605.74 ▼90.1861.37 ▲9.18
Media Library /wp-admin/upload.php1,401 ▲104.21 ▼0.0597.12 ▲1.6944.13 ▲2.14
jQuery Comment Replies /wp-admin/options-general.php?page=bb_jcr1,0462.0924.1428.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/jquery-expandable-comments/jQuery-comments.php+156
    Undefined offset: 0
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • bb_jcr_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=bb_jcr
    • > Notice in wp-content/plugins/jquery-expandable-comments/jQuery-comments.php+156
    Undefined offset: 0

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jquery-expandable-comments/jQuery-comments.php:362

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
4 plugin tags: expand, jquery, replies, comments

jquery-expandable-comments/jQuery-comments.php 92% from 13 tests

"jQuery Comment Replies" version 1.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("jquery-expandable-comments.php" instead of "jQuery-comments.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected569 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP18567216
JavaScript2774160
PO File13838112
CSS514081

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions23
▷ Named functions23100.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 are no PNG files in this plugin