83% chatmeim-mini

Code Review | ChatMe Mini

WordPress plugin ChatMe Mini scored 83% from 54 tests.

About plugin

  • Plugin page: chatmeim-mini
  • Plugin version: 5.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.8
  • WordPress version: 5.8.1
  • First release: Apr 26, 2012
  • Latest release: Apr 19, 2017
  • Number of updates: 301
  • Update frequency: every 10.0 days
  • Top authors: camaran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 7,469 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.16MB] [CPU: ▼140.59ms] Passed 4 tests

Analyzing server-side resources used by ChatMe Mini
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.00 ▲0.1639.22 ▲10.74
Dashboard /wp-admin3.23 ▲0.1743.55 ▼3.04
Posts /wp-admin/edit.php3.34 ▲0.2344.37 ▼0.31
Add New Post /wp-admin/post-new.php5.58 ▲0.1591.14 ▼562.25
Media Library /wp-admin/upload.php3.17 ▲0.1736.33 ▲3.23
ChatMe Mini /wp-admin/options-general.php?page=chatme-mini3.1434.82
ChatMe Shortcode Help /wp-admin/options-general.php?page=chatme-shortcode3.1431.28

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 2 new options
New WordPress options
widget_logn-form-widget
widget_status-picture-widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for ChatMe Mini
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,988 ▲38216.48 ▲1.1233.69 ▲24.1460.97 ▲13.66
Dashboard /wp-admin2,979 ▲485.94 ▼0.08142.70 ▼3.61114.03 ▲2.77
Posts /wp-admin/edit.php2,751 ▲122.72 ▼0.0073.56 ▲3.1881.50 ▼7.71
Add New Post /wp-admin/post-new.php1,884 ▲20119.12 ▲1.18406.36 ▲42.38103.51 ▼1.70
Media Library /wp-admin/upload.php1,819 ▲125.02 ▼0.00157.10 ▲3.23117.51 ▼5.87
ChatMe Mini /wp-admin/options-general.php?page=chatme-mini1,4752.0662.0687.47
ChatMe Shortcode Help /wp-admin/options-general.php?page=chatme-shortcode1,2393.5994.7777.71

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 2 options in the database
    • widget_logn-form-widget
    • widget_status-picture-widget

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/chatmeim-mini/includes/class.login_widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ChatMe' not found in wp-content/plugins/chatmeim-mini/includes/class.shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ChatMe' not found in wp-content/plugins/chatmeim-mini/includes/class.chatmini.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/chatmeim-mini/includes/class.status_widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatmeim-mini/includes/class.chatmini.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (The chat form)
You can look at the official readme.txt

chatmeim-mini/chatmeim-mini.php 85% from 13 tests

"ChatMe Mini" version 5.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 161 characters long)
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

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
Everything looks great! No dangerous files found in this plugin8,483 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12,1643,3077,264
CSS113918708
PHP712936511

PHP code Passed 2 tests

An short overview of 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.09
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods29
▷ Static methods13.45%
▷ Public methods2793.10%
▷ Protected methods00.00%
▷ Private methods26.90%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/mini/images/sprites/mini.png8.65KB4.14KB▼ 52.13%
images/chat-mini.png8.96KB3.61KB▼ 59.76%
includes/mini/images/sprites/animate.png6.00KB4.42KB▼ 26.36%