84% mi13-chat

Code Review | mi13-chat

WordPress plugin mi13-chat scored84%from 54 tests.

About plugin

  • Plugin page: mi13-chat
  • Plugin version: 0.1.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 19, 2020
  • Latest release: Mar 19, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: mi13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /553 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.37ms] Passed 4 tests

An overview of server-side resources used by mi13-chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.72 ▼1.00
Dashboard /wp-admin3.33 ▼0.0243.89 ▼12.47
Posts /wp-admin/edit.php3.38 ▲0.0247.66 ▲3.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.02 ▼10.19
Media Library /wp-admin/upload.php3.25 ▲0.0234.34 ▼1.80
mi13 chat /wp-admin/options-general.php?page=mi13_chat3.2229.02

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
mi13_chat

Browser metrics Passed 4 tests

mi13-chat: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲15313.56 ▼1.035.37 ▲3.7145.75 ▲3.01
Dashboard /wp-admin2,229 ▲414.86 ▼1.01100.58 ▼2.3738.05 ▼7.21
Posts /wp-admin/edit.php2,109 ▲232.00 ▲0.0240.05 ▲3.8035.13 ▼1.45
Add New Post /wp-admin/post-new.php1,564 ▲3118.26 ▼4.84614.77 ▼61.2264.71 ▼3.36
Media Library /wp-admin/upload.php1,411 ▲234.16 ▼0.0598.90 ▼1.3742.58 ▼3.33
mi13 chat /wp-admin/options-general.php?page=mi13_chat1,0222.0324.9732.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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)
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
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/mi13-chat/mi13-chat-admin.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mi13-chat/mi13-chat-widget.php:256
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mi13-chat/mi13-chat-admin.php on line 8
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/mi13-chat/mi13-chat-admin.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in mi13-chat/assets to your readme.txt
You can take inspiration from this readme.txt

mi13-chat/mi13-chat.php Passed 13 tests

The principal PHP file in "mi13-chat" v. 0.1.2.7 is loaded by WordPress automatically on each request
27 characters long description:
Open chat for your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,135 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP411147966
PO File198149169

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.50
▷ Minimum class complexity2.00
▷ Maximum class complexity17.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1178.57%
▷ Protected methods17.14%
▷ Private methods214.29%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin