89% resolw-chat

Code Review | Resolw Chat

WordPress plugin Resolw Chat scored89%from 54 tests.

About plugin

  • Plugin page: resolw-chat
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Jul 22, 2020
  • Latest release: May 12, 2021
  • Number of updates: 12
  • Update frequency: every 24.6 days
  • Top authors: margusengso (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /497 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Resolw Chat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.01 ▼2.76
Dashboard /wp-admin3.33 ▼0.0245.24 ▼12.33
Posts /wp-admin/edit.php3.38 ▲0.0247.12 ▲3.72
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.32 ▼13.76
Media Library /wp-admin/upload.php3.25 ▲0.0238.67 ▲1.83

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 83 new files
Database: 2 new tables, 6 new options
New tables
wp_resolw_link
wp_resolw_settings
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Resolw Chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲16513.88 ▼0.777.31 ▲5.4139.46 ▼2.34
Dashboard /wp-admin2,219 ▲315.22 ▲0.35100.94 ▼0.1079.60 ▲38.64
Posts /wp-admin/edit.php2,117 ▲252.29 ▲0.2741.16 ▼6.5141.56 ▼0.74
Add New Post /wp-admin/post-new.php1,546 ▲2718.34 ▼4.67616.20 ▼50.9039.87 ▼19.13
Media Library /wp-admin/upload.php1,407 ▲224.58 ▲0.2993.68 ▼6.0643.96 ▼0.31

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
3 plugin tags: resolw chat, customer support, resolw

resolw-chat/resolw_wp_plugin.php 85% from 13 tests

The entry point to "Resolw Chat" version 1.0.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 220 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("resolw-chat.php" instead of "resolw_wp_plugin.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 detected11,490 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript662,61479010,058
CSS4981991
PHP48273384
PO File1191957

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/resolw.png1.96KB1.66KB▼ 14.99%
assets/images/Icon_sidebar_resolw_active.png4.66KB0.66KB▼ 85.82%
assets/images/Icon_sidebar_resolw_normal.png4.66KB0.66KB▼ 85.84%