89% tabchat

Code Review | Tabchat

WordPress plugin Tabchat scored89%from 54 tests.

About plugin

  • Plugin page: tabchat
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2023
  • Latest release: Mar 21, 2023
  • Number of updates: 10
  • Update frequency: every 6.0 days
  • Top authors: arturromaorocha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /121 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.05MB] [CPU: ▼3.41ms] Passed 4 tests

This is a short check of server-side resources used by Tabchat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.01 ▲1.72
Dashboard /wp-admin3.37 ▲0.0744.52 ▼12.36
Posts /wp-admin/edit.php3.49 ▲0.1349.18 ▼2.21
Add New Post /wp-admin/post-new.php5.95 ▲0.0794.02 ▲2.12
Media Library /wp-admin/upload.php3.30 ▲0.0737.76 ▼0.77

Server storage [IO: ▲7.67MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Tabchat
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲15615.02 ▲0.663.66 ▲2.0444.43 ▼1.08
Dashboard /wp-admin2,207 ▲275.61 ▼0.0380.29 ▼10.6671.88 ▲32.24
Posts /wp-admin/edit.php2,118 ▲181.98 ▼0.0437.75 ▼6.1234.79 ▼4.65
Add New Post /wp-admin/post-new.php1,539 ▲1123.72 ▲0.81672.89 ▲12.4254.98 ▼0.48
Media Library /wp-admin/upload.php1,412 ▲124.12 ▼0.10107.87 ▼3.6279.81 ▲31.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Fluxo de atendimento personalizado screenshot-1. Screenshots are stored in the /assets directory.) image required
The official readme.txt might help

tabchat/tabchat.php 92% from 13 tests

The main PHP file in "Tabchat" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,750 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
SVG1003,411
PHP46040308
CSS12031

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity12.00
▷ Minimum class complexity2.00
▷ Maximum class complexity23.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods2095.24%
▷ Protected methods00.00%
▷ Private methods14.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 7.35MB with 4.71MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png4.07KB1.38KB▼ 66.22%
assets/icon-256x256.png6,355.96KB3,250.18KB▼ 48.86%
assets/screenshot-3.png404.49KB129.43KB▼ 68.00%
assets/screenshot-2.png556.54KB169.11KB▼ 69.61%
assets/screenshot-1.png203.13KB65.47KB▼ 67.77%