84% conversation-viewer-display-chat-bubbles

Code Review | Conversation Viewer - Display Chat Bubbles

WordPress plugin Conversation Viewer - Display Chat Bubbles scored84%from 54 tests.

About plugin

  • Plugin page: conversation-view...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Dec 2, 2017
  • Latest release: Mar 9, 2018
  • Number of updates: 4
  • Update frequency: every 25.8 days
  • Top authors: ryderdamen (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /1,220 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
Install script ran successfully

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

Server-side resources used by Conversation Viewer - Display Chat Bubbles
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.39 ▼6.40
Dashboard /wp-admin3.32 ▲0.0149.49 ▼2.88
Posts /wp-admin/edit.php3.37 ▲0.0149.85 ▲2.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.26 ▼2.59
Media Library /wp-admin/upload.php3.24 ▲0.0135.98 ▼0.91

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Conversation Viewer - Display Chat Bubbles
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲13713.81 ▼0.548.31 ▲6.7166.28 ▲26.70
Dashboard /wp-admin2,195 ▲145.59 ▼0.1387.35 ▼13.8640.97 ▼6.81
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0039.23 ▼1.9634.89 ▼2.11
Add New Post /wp-admin/post-new.php1,526 ▼223.79 ▲0.76685.63 ▲36.8455.95 ▼1.23
Media Library /wp-admin/upload.php1,397 ▼34.21 ▲0.01101.11 ▼7.1745.78 ▼4.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/conversation-viewer-display-chat-bubbles/ConversationViewer.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

conversation-viewer-display-chat-bubbles/ConversationViewer.php 92% from 13 tests

The primary PHP file in "Conversation Viewer - Display Chat Bubbles" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("conversation-viewer-display-chat-bubbles.php" instead of "ConversationViewer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected677 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP213097344
CSS18340321
JavaScript18812

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity5.44
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods444.44%
▷ Protected methods00.00%
▷ Private methods555.56%
Functions3
▷ Named functions3100.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
No PNG files were detected