10% chatmeim-login-widget

Code Review | ChatMe Login Widget

WordPress plugin ChatMe Login Widget scored10%from 54 tests.

About plugin

  • Plugin page: chatmeim-login-wi...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.3
  • WordPress version: 6.3.1
  • First release: Aug 25, 2012
  • Latest release: Jul 6, 2015
  • Number of updates: 23
  • Update frequency: every 124.9 days
  • Top authors: camaran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,977 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/chatmeim-login-widget/chatme_login_widget.php+87
    Function create_function() is deprecated

Server metrics [RAM: ▼1.97MB] [CPU: ▼55.26ms] Passed 4 tests

Server-side resources used by ChatMe Login Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.38 ▼35.37
Dashboard /wp-admin2.05 ▼1.305.60 ▼53.37
Posts /wp-admin/edit.php2.05 ▼1.316.14 ▼41.51
Add New Post /wp-admin/post-new.php2.05 ▼3.845.35 ▼90.78
Media Library /wp-admin/upload.php2.05 ▼1.184.45 ▼26.58

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_logn-form-widget
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by ChatMe Login Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.46 ▲0.091.75 ▼0.0044.14 ▲0.98
Dashboard /wp-admin2,206 ▲184.90 ▼0.98102.71 ▼1.6237.41 ▼4.85
Posts /wp-admin/edit.php2,086 ▼31.96 ▼0.0134.92 ▼2.6331.62 ▼5.95
Add New Post /wp-admin/post-new.php1,519 ▲523.12 ▲5.42637.09 ▲16.3850.04 ▼3.64
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0395.11 ▼4.4440.89 ▼1.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/chatmeim-login-widget/chatme_login_widget.php+87
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_logn-form-widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/chatmeim-login-widget/chatme_login_widget.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: chatme, mini, login, jappix, jabber...

chatmeim-login-widget/chatme_login_widget.php 92% from 13 tests

This is the main PHP file of "ChatMe Login Widget" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("chatmeim-login-widget.php" instead of "chatme_login_widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin37 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1213137

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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
No PNG files were detected