10% chatmeim-status-widgt

Code Review | ChatMe Status Widget

WordPress plugin ChatMe Status Widget scored10%from 54 tests.

About plugin

  • Plugin page: chatmeim-status-w...
  • Plugin version: 2.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: Aug 13, 2012
  • Latest release: Dec 19, 2015
  • Number of updates: 51
  • Update frequency: every 56.6 days
  • Top authors: camaran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,755 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/chatmeim-status-widgt/chatme_status_widget.php+74
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼55.15ms] Passed 4 tests

A check of server-side resources used by ChatMe Status Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.48 ▼36.75
Dashboard /wp-admin2.05 ▼1.265.57 ▼43.09
Posts /wp-admin/edit.php2.05 ▼1.315.45 ▼47.69
Add New Post /wp-admin/post-new.php2.05 ▼3.845.88 ▼91.48
Media Library /wp-admin/upload.php2.05 ▼1.185.56 ▼38.34

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_status-picture-widget
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by ChatMe Status Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.32 ▼0.032.12 ▲0.4745.34 ▲4.36
Dashboard /wp-admin2,195 ▲155.59 ▼0.0789.13 ▼12.0845.40 ▼1.34
Posts /wp-admin/edit.php2,100 ▼02.08 ▲0.0836.97 ▼0.8935.86 ▲2.22
Add New Post /wp-admin/post-new.php1,409 ▼11717.80 ▼5.26626.45 ▼45.7551.17 ▼1.65
Media Library /wp-admin/upload.php1,394 ▼34.13 ▼0.08174.93 ▲65.9774.50 ▲23.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/chatmeim-status-widgt/chatme_status_widget.php+74
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_status-picture-widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/chatmeim-status-widgt/chatme_status_widget.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Status Widget)
The official readme.txt is a good inspiration

chatmeim-status-widgt/chatme_status_widget.php 92% from 13 tests

"ChatMe Status Widget" version 2.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("chatmeim-status-widgt.php" instead of "chatme_status_widget.php")

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
No dangerous file extensions were detected51 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2282351

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected