84% otter-text-chat-widget

Code Review | Otter Text - Chat Widget

WordPress plugin Otter Text - Chat Widget scored84%from 54 tests.

About plugin

  • Plugin page: otter-text-chat-w...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 26, 2023
  • Latest release: Feb 26, 2023
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: ottertext (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /579 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.07ms] Passed 4 tests

This is a short check of server-side resources used by Otter Text - Chat Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.66 ▼3.55
Dashboard /wp-admin3.32 ▲0.0247.59 ▼0.67
Posts /wp-admin/edit.php3.37 ▲0.0247.31 ▼4.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.53 ▼12.03
Media Library /wp-admin/upload.php3.25 ▲0.0234.43 ▲3.30
Otter Text /wp-admin/options-general.php?page=otter_text_settings3.2131.48

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Otter Text - Chat Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.21 ▼1.021.61 ▼0.3341.69 ▼2.48
Dashboard /wp-admin2,217 ▲294.83 ▼1.10109.05 ▲7.4242.67 ▼0.29
Posts /wp-admin/edit.php2,099 ▲102.02 ▼0.0139.90 ▼0.5837.65 ▲3.51
Add New Post /wp-admin/post-new.php1,529 ▲1023.29 ▲0.03662.15 ▲21.0050.04 ▼9.24
Media Library /wp-admin/upload.php1,402 ▲144.19 ▲0.0195.87 ▼3.3042.60 ▼0.27
Otter Text /wp-admin/options-general.php?page=otter_text_settings7772.0224.0026.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/otter-text-chat-widget/admin/partials/otter-text-chat-widget-admin-display.php
    • > /wp-content/plugins/otter-text-chat-widget/public/partials/otter-text-chat-widget-public-display.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: chat, otter text

otter-text-chat-widget/otter-text-chat-widget.php 92% from 13 tests

Analyzing the main PHP file in "Otter Text - Chat Widget" version 1.0.0
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin246 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12103529246
CSS2080
JavaScript20220

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.57
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.41
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin