84% chatter

Code Review | Chatter

WordPress plugin Chatter scored84%from 54 tests.

About plugin

  • Plugin page: chatter
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 8, 2020
  • Latest release: Aug 9, 2023
  • Number of updates: 26
  • Update frequency: every 46.9 days
  • Top authors: vol4ikman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,524 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.03MB] [CPU: ▼4.55ms] Passed 4 tests

Server-side resources used by Chatter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1245.83 ▼3.86
Dashboard /wp-admin3.34 ▲0.0349.08 ▲0.14
Posts /wp-admin/edit.php3.39 ▲0.0344.24 ▼5.91
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.50 ▼8.59
Media Library /wp-admin/upload.php3.26 ▲0.0336.78 ▲2.42
Add New /wp-admin/post-new.php?post_type=chatter3.3356.35
Chatter settings /wp-admin/options-general.php?page=chatter3.3237.97
All Items /wp-admin/edit.php?post_type=chatter3.3036.16

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Chatter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,049 ▲28814.56 ▲0.2097.73 ▲93.7156.81 ▲10.31
Dashboard /wp-admin2,226 ▲495.62 ▲0.0292.71 ▼0.2641.68 ▲1.35
Posts /wp-admin/edit.php2,131 ▲311.95 ▼0.0435.55 ▼2.4034.67 ▼3.45
Add New Post /wp-admin/post-new.php1,553 ▲2722.88 ▼0.46679.07 ▼12.8052.86 ▲2.00
Media Library /wp-admin/upload.php1,431 ▲314.09 ▼0.12125.97 ▲24.6448.26 ▲6.55
Add New /wp-admin/post-new.php?post_type=chatter1,8682.7060.8252.30
Chatter settings /wp-admin/options-general.php?page=chatter1,4795.37104.5635.29
All Items /wp-admin/edit.php?post_type=chatter1,1621.9830.6932.07

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatter/inc/register-post-type.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/chatter/admin/functions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function chatter_get_option() in wp-content/plugins/chatter/inc/single-message.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function chatter_get_option() in wp-content/plugins/chatter/front/view.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatter/front/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_users() in wp-content/plugins/chatter/admin/option-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/chatter/chatter.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: wah, messages, accessibility, chat, a11y...

chatter/chatter.php Passed 13 tests

This is the main PHP file of "Chatter" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
Chatter - Chat plugin. Support your customers with the live chat

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,395 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP814819705
Sass2242444
JavaScript2314244
CSS2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin