83% richpanel-for-woocommerce

Code Review | Richpanel - Customer Support Helpdesk & Chat

WordPress plugin Richpanel - Customer Support Helpdesk & Chat scored83%from 54 tests.

About plugin

  • Plugin page: richpanel-for-woo...
  • Plugin version: 2.4.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.1
  • WordPress version: 6.3.1
  • First release: Apr 23, 2018
  • Latest release: Nov 29, 2023
  • Number of updates: 138
  • Update frequency: every 14.9 days
  • Top authors: richpanel (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /5,667 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Richpanel - Customer Support Helpdesk & Chat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.31 ▼5.68
Dashboard /wp-admin3.33 ▲0.0247.18 ▼9.61
Posts /wp-admin/edit.php3.38 ▲0.0250.09 ▼0.72
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.37 ▼6.63
Media Library /wp-admin/upload.php3.25 ▲0.0240.18 ▲6.81

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Richpanel - Customer Support Helpdesk & Chat
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5714.68 ▲0.441.67 ▲0.0737.37 ▼6.14
Dashboard /wp-admin2,221 ▲415.63 ▼0.0095.28 ▼4.3844.21 ▼0.52
Posts /wp-admin/edit.php2,130 ▲331.99 ▼0.0241.27 ▲0.4838.72 ▲2.92
Add New Post /wp-admin/post-new.php1,553 ▲2723.00 ▼0.12620.48 ▲31.0249.75 ▼0.01
Media Library /wp-admin/upload.php1,432 ▲324.29 ▲0.1197.53 ▲0.2341.40 ▼0.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/richpanel-for-woocommerce/includes/views/richpanel_admin_view.php:227
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/richpanel-for-woocommerce/includes/views/richpanel_import_view.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/richpanel-for-woocommerce/includes/render_tracking_events.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/richpanel-for-woocommerce/includes/integration.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/richpanel-for-woocommerce/includes/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_json_encode() in wp-content/plugins/richpanel-for-woocommerce/includes/js.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/richpanel-for-woocommerce/includes/render_footer_tracking_events.php:1

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% 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
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt might help

richpanel-for-woocommerce/richpanel-live-chat-helpdesk.php 85% from 13 tests

Analyzing the main PHP file in "Richpanel - Customer Support Helpdesk & Chat" version 2.4.9
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("richpanel-for-woocommerce.php" instead of "richpanel-live-chat-helpdesk.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.4" instead of "2.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,263 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP94642122,263

PHP code Passed 2 tests

An short overview of 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.47
Average class complexity116.33
▷ Minimum class complexity1.00
▷ Maximum class complexity342.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods105
▷ Static methods00.00%
▷ Public methods9792.38%
▷ Protected methods00.00%
▷ Private methods87.62%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/views/logo.png17.26KB6.76KB▼ 60.83%