83% ryen-wp

Code Review | Ryen | Create advanced chat experiences without coding

WordPress plugin Ryen | Create advanced chat experiences without coding scored83%from 54 tests.

About plugin

  • Plugin page: ryen-wp
  • Plugin version: 3.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 8, 2022
  • Latest release: Oct 10, 2023
  • Number of updates: 15
  • Update frequency: every 20.4 days
  • Top authors: dyonic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /289 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.46ms] Passed 4 tests

A check of server-side resources used by Ryen | Create advanced chat experiences without coding
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0549.07 ▲5.35
Dashboard /wp-admin3.35 ▲0.0554.37 ▲1.74
Posts /wp-admin/edit.php3.46 ▲0.1149.72 ▼9.39
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.67 ▼15.55
Media Library /wp-admin/upload.php3.27 ▲0.0546.77 ▲7.65

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Ryen | Create advanced chat experiences without coding: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9414.07 ▼0.3012.38 ▲10.5644.92 ▲4.56
Dashboard /wp-admin2,208 ▲285.53 ▼0.0884.12 ▼5.9243.44 ▼1.72
Posts /wp-admin/edit.php2,119 ▲222.03 ▲0.0435.19 ▼2.7735.38 ▲0.45
Add New Post /wp-admin/post-new.php1,549 ▲2318.23 ▼5.39643.18 ▼68.0164.40 ▲11.83
Media Library /wp-admin/upload.php1,416 ▲194.22 ▲0.02110.35 ▼5.2547.99 ▼0.05

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ryen-wp/admin/partials/ryen-admin-display.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

ryen-wp/ryen.php 85% from 13 tests

"Ryen | Create advanced chat experiences without coding" version 3.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ryen-wp.php" instead of "ryen.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected351 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP115511351

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.52
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2177.78%
▷ Protected methods00.00%
▷ Private methods622.22%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected