73% team-chatz

Code Review | Team Chatz

WordPress plugin Team Chatz scored 73% from 54 tests.

About plugin

  • Plugin page: team-chatz
  • Plugin version: 2.00
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 6.3.1
  • First release: Jan 23, 2018
  • Latest release: Aug 23, 2020
  • Number of updates: 5
  • Update frequency: every 188.8 days
  • Top authors: nath4n (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 656 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Team Chatz
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.47 ▼6.87
Dashboard /wp-admin3.32 ▲0.0145.17 ▲0.14
Posts /wp-admin/edit.php3.37 ▲0.0151.62 ▲5.70
Add New Post /wp-admin/post-new.php5.92 ▲0.03109.90 ▲19.98
Media Library /wp-admin/upload.php3.24 ▲0.0133.19 ▼0.59

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

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

Browser metrics Passed 4 tests

Team Chatz: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.59 ▼0.791.64 ▼0.9141.16 ▼2.50
Dashboard /wp-admin2,231 ▲435.25 ▲0.38126.14 ▲16.5042.81 ▲2.21
Posts /wp-admin/edit.php2,117 ▲282.52 ▲0.5338.91 ▼2.4531.65 ▼5.68
Add New Post /wp-admin/post-new.php1,536 ▲1723.44 ▲0.17598.17 ▼26.9152.35 ▼9.47
Media Library /wp-admin/upload.php1,413 ▲224.54 ▲0.3296.00 ▲4.3640.14 ▼0.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_team_chatz
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/team-chatz/init.php:34

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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
4 plugin tags: chat, wordpress chat, team conversation, team chatz

team-chatz/init.php 77% from 13 tests

The main PHP script in "Team Chatz" version 2.00 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("team-chatz.php" instead of "init.php")

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
There were no executable files found in this plugin598 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13822369
CSS1160226
JavaScript26203

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions10
▷ Named functions10100.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
There are no PNG files in this plugin