78% reamaze

Code Review | Re:amaze Helpdesk & Live Chat

WordPress plugin Re:amaze Helpdesk & Live Chat scored78%from 54 tests.

About plugin

  • Plugin page: reamaze
  • Plugin version: 2.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Aug 12, 2015
  • Latest release: Aug 26, 2023
  • Number of updates: 60
  • Update frequency: every 49.0 days
  • Top authors: Reamaze (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /9,315 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.26MB] [CPU: ▼1.73ms] Passed 4 tests

A check of server-side resources used by Re:amaze Helpdesk & Live Chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2142.24 ▲0.35
Dashboard /wp-admin3.63 ▲0.3355.04 ▼1.26
Posts /wp-admin/edit.php3.67 ▲0.3148.99 ▲0.32
Add New Post /wp-admin/post-new.php6.17 ▲0.2898.04 ▼6.32
Media Library /wp-admin/upload.php3.48 ▲0.2538.99 ▲0.75
Dashboard /wp-admin/admin.php?page=reamaze3.4537.03
Need Help? /wp-admin/admin.php?page=reamaze-help3.4531.20
Settings /wp-admin/admin.php?page=reamaze-settings3.5635.99

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 10 new options
New WordPress options
reamaze_version
widget_recent-posts
db_upgraded
can_compress_scripts
reamaze_account_id
widget_recent-comments
reamaze_account_sso_key
widget_theysaidso_widget
theysaidso_admin_options
reamaze_widget_display

Browser metrics Passed 4 tests

An overview of browser requirements for Re:amaze Helpdesk & Live Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲18613.17 ▼1.114.58 ▲2.8242.91 ▼1.96
Dashboard /wp-admin2,463 ▲2927.35 ▲1.72126.55 ▲29.8481.58 ▲37.30
Posts /wp-admin/edit.php2,345 ▲2454.18 ▲2.1766.58 ▲24.2933.97 ▼6.19
Add New Post /wp-admin/post-new.php1,732 ▲19625.56 ▲2.42679.45 ▲34.2837.85 ▼15.11
Media Library /wp-admin/upload.php1,788 ▲3886.86 ▲2.67164.58 ▲55.5964.57 ▲17.00
Dashboard /wp-admin/admin.php?page=reamaze1,1934.83100.8341.50
Need Help? /wp-admin/admin.php?page=reamaze-help2,7897.96206.5490.76
Settings /wp-admin/admin.php?page=reamaze-settings1,2154.8499.5825.71

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • reamaze_version
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • reamaze_widget_display
    • reamaze_account_sso_key
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • reamaze_account_id

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
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Reamaze\\API\\Exceptions\\Base' not found in wp-content/plugins/reamaze/includes/lib/reamaze-api-client-php/src/Reamaze/API/Exceptions/Api.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Reamaze\\API\\APIResource' not found in wp-content/plugins/reamaze/includes/lib/reamaze-api-client-php/src/Reamaze/API/Conversation.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Reamaze\\API\\APIResource' not found in wp-content/plugins/reamaze/includes/lib/reamaze-api-client-php/src/Reamaze/API/Category.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Reamaze\\API\\Clients\\BaseClient' not found in wp-content/plugins/reamaze/includes/lib/reamaze-api-client-php/src/Reamaze/API/Clients/WpHttpClient.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Reamaze\\API\\APIResource' not found in wp-content/plugins/reamaze/includes/lib/reamaze-api-client-php/src/Reamaze/API/Message.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Reamaze\\API\\Exceptions\\Base' not found in wp-content/plugins/reamaze/includes/lib/reamaze-api-client-php/src/Reamaze/API/Exceptions/Config.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Reamaze\\API\\Clients\\BaseClient' not found in wp-content/plugins/reamaze/includes/lib/reamaze-api-client-php/src/Reamaze/API/Clients/CurlClient.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=reamaze-settings
    • > Javascript (severe) in unknown
    /wp-content/plugins/reamaze/assets/js/admin/jquery.postmessage.min.js?ver=6.3.1 8:97 Uncaught TypeError: Cannot read properties of undefined (reading 'opera')
    • > GET request to /wp-admin/admin.php?page=reamaze-help
    • > Deprecation (warning) in unknown
    https://cdn.reamaze.com/assets/application-086e7ff5284dd0aa1bebeeb96f6ec735d26d5c90597bd1c8701e8cc90be6c32a.js 3 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt is a good inspiration

reamaze/reamaze.php Passed 13 tests

The main PHP script in "Re:amaze Helpdesk & Live Chat" version 2.3.2 is automatically included on every request by WordPress
62 characters long description:
Reamaze Helpdesk, Customer Support and Live Chat for WordPress

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
There were no executable files found in this plugin3,968 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP367454272,755
JavaScript69373789
CSS48732424

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity13.36
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes25
▷ Abstract classes416.00%
▷ Concrete classes2184.00%
▷ Final classes00.00%
Methods132
▷ Static methods4735.61%
▷ Public methods8866.67%
▷ Protected methods4131.06%
▷ Private methods32.27%
Functions14
▷ Named functions1285.71%
▷ Anonymous functions214.29%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
7 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/colorbox/border.png0.07KB0.10KB0.00%
assets/images/colorbox/overlay.png0.11KB0.15KB0.00%
assets/images/logo.png13.79KB6.78KB▼ 50.84%
assets/images/icons/logo-mint-16.png0.78KB0.80KB0.00%
assets/images/colorbox/loading_background.png0.13KB0.15KB0.00%