78% botao-de-chat-gratis-para-seu-site-rd-station

Code Review | Botão de Chat Grátis para Seu Site │ RD Station

WordPress plugin Botão de Chat Grátis para Seu Site │ RD Station scored78%from 54 tests.

About plugin

  • Plugin page: botao-de-chat-gra...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 9, 2023
  • Latest release: Jun 27, 2023
  • Number of updates: 10
  • Update frequency: every 13.8 days
  • Top authors: mktrdstation (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active /1,631 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.92ms] Passed 4 tests

An overview of server-side resources used by Botão de Chat Grátis para Seu Site │ RD Station
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.39 ▼2.40
Dashboard /wp-admin3.37 ▲0.0753.07 ▲3.71
Posts /wp-admin/edit.php3.48 ▲0.1351.88 ▼0.96
Add New Post /wp-admin/post-new.php5.97 ▲0.0987.92 ▼12.04
Media Library /wp-admin/upload.php3.29 ▲0.0742.15 ▲4.31

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Botão de Chat Grátis para Seu Site │ RD Station: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲18313.62 ▼1.196.45 ▲4.7444.97 ▼1.07
Dashboard /wp-admin2,229 ▲385.88 ▼0.0297.41 ▼5.2243.07 ▼5.37
Posts /wp-admin/edit.php2,106 ▲172.00 ▼0.0337.80 ▲1.5138.78 ▼1.00
Add New Post /wp-admin/post-new.php1,531 ▼217.80 ▼5.26660.85 ▼18.7736.37 ▼13.03
Media Library /wp-admin/upload.php1,408 ▲204.23 ▼0.1098.86 ▼19.5845.16 ▼3.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 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 everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/botao-de-chat-gratis-para-seu-site-rd-station/views/form-visibility.php
    • > /wp-content/plugins/botao-de-chat-gratis-para-seu-site-rd-station/views/form-appearance.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/botao-de-chat-gratis-para-seu-site-rd-station/views/form-config.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/botao-de-chat-gratis-para-seu-site-rd-station/views/settings-page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/botao-de-chat-gratis-para-seu-site-rd-station/views/form-setup.php:2
    • > PHP Warning
      Use of undefined constant RD_BUTTON_CHAT_URL - assumed 'RD_BUTTON_CHAT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/botao-de-chat-gratis-para-seu-site-rd-station/views/form-appearance.php on line 2

User-side errors Passed 1 test

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


Plugin configuration 93% 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
No tags were found

botao-de-chat-gratis-para-seu-site-rd-station/rd-button-chat.php 85% from 13 tests

The main file in "Botão de Chat Grátis para Seu Site │ RD Station" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("botao-de-chat-gratis-para-seu-site-rd-station.php" instead of "rd-button-chat.php")
  • Requires at least: Required version must match the one declared in readme.txt ("1.0.0" instead of "1.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,135 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods318.75%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin