84% chatmeim-mini-messenger

Code Review | ChatMe Mini Messenger

WordPress plugin ChatMe Mini Messenger scored84%from 54 tests.

About plugin

  • Plugin page: chatmeim-mini-mes...
  • Plugin version: 4.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: May 23, 2012
  • Latest release: Oct 27, 2015
  • Number of updates: 116
  • Update frequency: every 25.6 days
  • Top authors: camaran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /8,394 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.83ms] Passed 4 tests

This is a short check of server-side resources used by ChatMe Mini Messenger
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.97 ▼5.99
Dashboard /wp-admin3.35 ▼0.0050.91 ▼6.83
Posts /wp-admin/edit.php3.40 ▲0.0446.83 ▲1.50
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.94 ▼4.00
Media Library /wp-admin/upload.php3.27 ▲0.0436.10 ▲2.30
ChatMe Mini Messenger /wp-admin/options-general.php?page=chatme-mini-messenger3.2430.50

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for ChatMe Mini Messenger
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,965 ▲21915.39 ▲0.7027.40 ▲25.4037.87 ▼9.55
Dashboard /wp-admin2,210 ▲225.87 ▲1.00109.82 ▼3.1042.13 ▼8.89
Posts /wp-admin/edit.php2,090 ▼22.06 ▲0.0537.19 ▼5.1830.19 ▼7.50
Add New Post /wp-admin/post-new.php1,536 ▲2223.07 ▲5.37692.23 ▼1.7255.15 ▼5.62
Media Library /wp-admin/upload.php1,392 ▲44.28 ▲0.0797.26 ▼13.1441.89 ▼8.77
ChatMe Mini Messenger /wp-admin/options-general.php?page=chatme-mini-messenger1,0423.3269.7736.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
  • 1× 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/chatmeim-mini-messenger/chatmeim-mini-messenger.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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 your attention:
  • Screenshots: Screenshot #1 (The chat login form) image missing
Please take inspiration from this readme.txt

chatmeim-mini-messenger/chatmeim-mini-messenger.php Passed 13 tests

"ChatMe Mini Messenger" version 4.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
103 characters long description:
This plugin add the javascript code for Chatme.im Mini Messenger a Jabber/XMPP chat for your WordPress.

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
There were no executable files found in this plugin267 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP22812163
SVG100102
CSS10171
JavaScript1342011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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