10% comment-autogrow

Code Review | Comment Autogrow

WordPress plugin Comment Autogrow scored10%from 54 tests.

About plugin

  • Plugin page: comment-autogrow
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.0
  • WordPress version: 6.3.1
  • First release: Jul 7, 2009
  • Latest release: Sep 13, 2012
  • Number of updates: 25
  • Update frequency: every 46.6 days
  • Top authors: scribu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,697 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/comment-autogrow/comment-autogrow.php+11
    Non-static method Comment_Autogrow::init() should not be called statically

Server metrics [RAM: ▼1.94MB] [CPU: ▼53.88ms] Passed 4 tests

An overview of server-side resources used by Comment Autogrow
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.415.72 ▼36.23
Dashboard /wp-admin2.07 ▼1.246.06 ▼44.37
Posts /wp-admin/edit.php2.07 ▼1.295.10 ▼43.63
Add New Post /wp-admin/post-new.php2.07 ▼3.826.28 ▼91.27
Media Library /wp-admin/upload.php2.07 ▼1.165.13 ▼30.21

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Comment Autogrow
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.23 ▼1.151.81 ▼0.9544.92 ▼1.17
Dashboard /wp-admin2,209 ▲244.85 ▼0.08110.42 ▼10.1041.18 ▼12.08
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0037.07 ▼3.3234.65 ▼1.25
Add New Post /wp-admin/post-new.php1,535 ▲1623.07 ▼0.15670.17 ▲42.4952.19 ▼4.94
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.0496.51 ▼1.7847.71 ▲6.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/comment-autogrow/comment-autogrow.php+11
    Non-static method Comment_Autogrow::init() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-autogrow/comment-autogrow.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: autogrow, javascript, comments

comment-autogrow/comment-autogrow.php Passed 13 tests

The main PHP file in "Comment Autogrow" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
Makes the comment textarea expand in height automatically

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin26 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin