90% auto-size-textarea

Code Review | Auto Size Textarea

WordPress plugin Auto Size Textarea scored90%from 54 tests.

About plugin

  • Plugin page: auto-size-textarea
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.2
  • WordPress version: 6.3.1
  • First release: Feb 6, 2018
  • Latest release: Feb 6, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: webdevshojib (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.05ms] Passed 4 tests

A check of server-side resources used by Auto Size Textarea
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.07 ▼7.54
Dashboard /wp-admin3.31 ▼0.0345.27 ▼16.78
Posts /wp-admin/edit.php3.36 ▲0.0048.69 ▼1.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.02 ▼14.41
Media Library /wp-admin/upload.php3.23 ▲0.0033.91 ▲1.20

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Auto Size Textarea
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲13913.67 ▼0.915.18 ▲3.2739.06 ▼3.43
Dashboard /wp-admin2,206 ▲155.84 ▲0.97105.17 ▼6.4940.69 ▼2.58
Posts /wp-admin/edit.php2,086 ▼32.01 ▲0.0139.45 ▲0.0234.82 ▲1.18
Add New Post /wp-admin/post-new.php1,533 ▲1923.31 ▲5.85662.29 ▼30.5757.52 ▲4.04
Media Library /wp-admin/upload.php1,379 ▼94.19 ▼0.0898.30 ▲1.6141.38 ▼3.47

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: bitwisecode autosize, wordpress auto size, auto size textarea

auto-size-textarea/autosize-textarea.php 92% from 13 tests

Analyzing the main PHP file in "Auto Size Textarea" version 1.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("auto-size-textarea.php" instead of "autosize-textarea.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
Everything looks great! No dangerous files found in this plugin25 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP151311
CSS10010
JavaScript2254

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected