84% chatmeim-shortcode

Code Review | ChatMe ShortCode

WordPress plugin ChatMe ShortCode scored84%from 54 tests.

About plugin

  • Plugin page: chatmeim-shortcode
  • Plugin version: 3.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: Apr 1, 2013
  • Latest release: Dec 19, 2015
  • Number of updates: 60
  • Update frequency: every 44.2 days
  • Top authors: camaran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,693 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.37ms] Passed 4 tests

A check of server-side resources used by ChatMe ShortCode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.60 ▲1.22
Dashboard /wp-admin3.33 ▼0.0145.74 ▼13.65
Posts /wp-admin/edit.php3.38 ▲0.0341.38 ▼0.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.42 ▼8.92
Media Library /wp-admin/upload.php3.26 ▲0.0337.72 ▲2.45
ChatMe Shortcode Help /wp-admin/options-general.php?page=chatme-shortcode3.2227.79

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, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for ChatMe ShortCode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.34 ▼1.041.63 ▲0.1139.32 ▼4.02
Dashboard /wp-admin2,210 ▲184.89 ▼0.01111.87 ▲6.3441.15 ▲2.04
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0433.36 ▼1.8531.80 ▼0.84
Add New Post /wp-admin/post-new.php1,535 ▲1623.28 ▼0.07645.68 ▼5.5864.18 ▲6.23
Media Library /wp-admin/upload.php1,392 ▲74.19 ▼0.0094.98 ▼2.8042.24 ▲0.68
ChatMe Shortcode Help /wp-admin/options-general.php?page=chatme-shortcode9543.3668.0032.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chatmeim-shortcode/includes/class.shortcode.php:113
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatmeim-shortcode/chatme-shortcode.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: chat, chatme, shortcode, mini, xmpp...

chatmeim-shortcode/chatme-shortcode.php 92% from 13 tests

The main file in "ChatMe ShortCode" v. 3.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("chatmeim-shortcode.php" instead of "chatme-shortcode.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
No dangerous file extensions were detected137 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32930137

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods8
▷ Static methods00.00%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin