84% reverse-comment-textarea

Code Review | Reverse Comment Textarea

WordPress plugin Reverse Comment Textarea scored84%from 54 tests.

About plugin

  • Plugin page: reverse-comment-t...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4+
  • WordPress version: 6.3.1
  • First release: Nov 20, 2015
  • Latest release: Nov 21, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: greenshady (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,901 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.55ms] Passed 4 tests

Analyzing server-side resources used by Reverse Comment Textarea
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.81 ▼1.19
Dashboard /wp-admin3.31 ▲0.0046.35 ▲1.09
Posts /wp-admin/edit.php3.36 ▲0.0043.24 ▼4.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.29 ▼1.81
Media Library /wp-admin/upload.php3.23 ▲0.0034.58 ▲3.25

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Reverse Comment Textarea
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.33 ▼1.042.00 ▲0.4243.41 ▼2.48
Dashboard /wp-admin2,203 ▲125.83 ▲0.9398.41 ▼6.6042.01 ▼5.22
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0133.25 ▼6.4832.63 ▼3.10
Add New Post /wp-admin/post-new.php1,533 ▼023.40 ▲0.36665.03 ▼31.1051.33 ▼4.93
Media Library /wp-admin/upload.php1,388 ▲64.22 ▼0.0399.39 ▼0.6542.92 ▲0.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reverse-comment-textarea/reverse-comment-textarea.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Comment form with textarea at the bottom.)
The official readme.txt is a good inspiration

reverse-comment-textarea/reverse-comment-textarea.php Passed 13 tests

"Reverse Comment Textarea" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
58 characters long description:
Moves the textarea back to the bottom of the comment form.

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
There were no executable files found in this plugin24 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1104814
Markdown28010

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions2
▷ Named functions2100.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
1 PNG file occupies 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png57.54KB34.78KB▼ 39.55%