52% chateasy

Code Review | Woo ChatEasy

WordPress plugin Woo ChatEasy scored52%from 54 tests.

About plugin

  • Plugin page: chateasy
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Mar 13, 2023
  • Latest release: May 1, 2023
  • Number of updates: 15
  • Update frequency: every 3.5 days
  • Top authors: bhuvanbm7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /392 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.85MB] [CPU: ▼34.13ms] Passed 4 tests

Server-side resources used by Woo ChatEasy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1144.16 ▲2.27
Dashboard /wp-admin3.09 ▼0.2127.97 ▼26.49
Posts /wp-admin/edit.php3.09 ▼0.2726.77 ▼21.15
Add New Post /wp-admin/post-new.php3.09 ▼2.8027.66 ▼77.81
Media Library /wp-admin/upload.php3.09 ▼0.1425.49 ▼11.06
ChatEasy WooCommerce /wp-admin/options-general.php?page=chateasy3.0924.51

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: 1 new table, 6 new options
New tables
wp_chateasy
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woo ChatEasy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.26 ▼0.901.74 ▲0.0243.02 ▲0.82
Dashboard /wp-admin2,222 ▲224.81 ▼1.05102.23 ▼4.0243.28 ▼0.96
Posts /wp-admin/edit.php2,104 ▲12.04 ▲0.0535.00 ▼3.1735.04 ▼2.93
Add New Post /wp-admin/post-new.php1,549 ▲2323.66 ▲6.23643.85 ▼13.4948.67 ▼2.74
Media Library /wp-admin/upload.php1,398 ▲14.32 ▲0.1096.53 ▼6.9143.32 ▼1.35
ChatEasy WooCommerce /wp-admin/options-general.php?page=chateasy9052.0522.9828.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_chateasy
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=chateasy
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/chateasy/chateasy.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chateasy/includes/chateasy-admin-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chateasy/includes/api/rest_api_init.php:75

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
  • Screenshots: Screenshot #1 (This is the settings page for the plugin. You can configure the plugin by providing the API credentials and other settings.) image required
The official readme.txt might help

chateasy/chateasy.php 92% from 13 tests

The main PHP file in "Woo ChatEasy" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 225 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin631 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8196100630
SVG1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity6.00
▷ Minimum class complexity3.00
▷ Maximum class complexity10.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1995.00%
▷ Protected methods00.00%
▷ Private methods15.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.17MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png33.69KB12.82KB▼ 61.95%
assets/banner-772x250.png40.30KB13.07KB▼ 67.56%
assets/screenshot-1.png90.44KB34.21KB▼ 62.17%
assets/icon-256x256.png6.13KB3.05KB▼ 50.33%
assets/icon-128x128.png3.16KB1.98KB▼ 37.40%