78% bindchat

Code Review | WordPress必聊网在线客服插件

WordPress plugin WordPress必聊网在线客服插件 scored78%from 54 tests.

About plugin

  • Plugin page: bindchat
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.9
  • WordPress version: 6.3.1
  • First release: Apr 29, 2013
  • Latest release: Aug 19, 2014
  • Number of updates: 16
  • Update frequency: every 29.9 days
  • Top authors: bindchat (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /4,114 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.60ms] Passed 4 tests

An overview of server-side resources used by WordPress必聊网在线客服插件
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.87 ▼3.42
Dashboard /wp-admin3.31 ▼0.0347.13 ▼12.86
Posts /wp-admin/edit.php3.36 ▲0.0145.76 ▲6.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.60 ▼28.18
Media Library /wp-admin/upload.php3.23 ▲0.0134.63 ▲2.08

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress必聊网在线客服插件
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6714.45 ▲0.021.67 ▲0.0544.38 ▲1.12
Dashboard /wp-admin2,204 ▲235.54 ▼0.1997.68 ▼2.9690.95 ▲50.48
Posts /wp-admin/edit.php2,125 ▲252.00 ▲0.0136.71 ▼2.9540.49 ▲5.25
Add New Post /wp-admin/post-new.php1,563 ▲3722.92 ▼0.59678.30 ▲67.2787.92 ▲26.27
Media Library /wp-admin/upload.php1,424 ▲244.13 ▲0.0399.14 ▲3.2175.83 ▲34.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/bindchat/bindchat.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bindchat/admin.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
3 plugin tags: bindchat, wordpress, chat

bindchat/bindchat.php 92% from 13 tests

The entry point to "WordPress必聊网在线客服插件" version 2.1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 393 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin217 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23613217

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo_16x16.png0.38KB0.24KB▼ 35.06%