90% textarea-words-characters-limit

Code Review | Textarea Limit Characters Length

WordPress plugin Textarea Limit Characters Length scored90%from 54 tests.

About plugin

  • Plugin page: textarea-words-ch...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2022
  • Latest release: Feb 11, 2023
  • Number of updates: 10
  • Update frequency: every 24.0 days
  • Top authors: Muhammad Rehman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /800 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Textarea Limit Characters Length
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.79 ▼3.25
Dashboard /wp-admin3.31 ▲0.0145.83 ▼13.08
Posts /wp-admin/edit.php3.36 ▲0.0142.64 ▼4.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.35 ▼5.11
Media Library /wp-admin/upload.php3.23 ▲0.0134.45 ▲1.91
Characters Count /wp-admin/options-general.php?page=cct-characters-count3.2131.03

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
cct_settings
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Textarea Limit Characters Length
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲3914.28 ▼0.262.46 ▲0.5538.30 ▲0.40
Dashboard /wp-admin2,193 ▲135.48 ▼0.1584.48 ▼2.1942.73 ▼0.23
Posts /wp-admin/edit.php2,104 ▲221.99 ▲0.0233.58 ▼2.6934.21 ▼4.29
Add New Post /wp-admin/post-new.php1,537 ▲1118.09 ▼5.06594.02 ▼73.3564.08 ▲11.53
Media Library /wp-admin/upload.php1,398 ▲14.15 ▼0.0595.87 ▼3.5644.17 ▲1.40
Characters Count /wp-admin/options-general.php?page=cct-characters-count8841.9921.8928.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • cct_settings
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: textarea characters, textarea limit, characters, textarea count

textarea-words-characters-limit/textarea-characters-limit.php 92% from 13 tests

Analyzing the main PHP file in "Textarea Limit Characters Length" version 1.0.1
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("textarea-words-characters-limit.php" instead of "textarea-characters-limit.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin176 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23215110
JavaScript116448
CSS13018

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions5
▷ Named functions5100.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 were not PNG files found in your plugin