73% vibes

Code Review | Vibes

WordPress plugin Vibes scored73%from 54 tests.

About plugin

  • Plugin page: vibes
  • Plugin version: 1.7.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Dec 6, 2021
  • Latest release: Oct 25, 2023
  • Number of updates: 17
  • Update frequency: every 40.4 days
  • Top authors: PierreLannoy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /3,932 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲1.33MB] [CPU: ▲13.43ms] Passed 4 tests

An overview of server-side resources used by Vibes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.64 ▲1.1849.03 ▲7.58
Dashboard /wp-admin4.77 ▲1.4669.75 ▲21.07
Posts /wp-admin/edit.php4.77 ▲1.4161.43 ▲2.05
Add New Post /wp-admin/post-new.php7.26 ▲1.38110.88 ▲24.08
Media Library /wp-admin/upload.php4.58 ▲1.3557.69 ▲23.03
Performances /wp-admin/admin.php?page=vibes-navigation-viewer5.5057.70
Web Vitals /wp-admin/admin.php?page=vibes-webvital-viewer5.5052.62
Resources /wp-admin/admin.php?page=vibes-resource-viewer5.5056.90
Consoles /wp-admin/admin.php?page=perfopsone-consoles4.5547.87
Vibes /wp-admin/admin.php?page=vibes-settings4.7847.71
Analytics /wp-admin/admin.php?page=perfopsone-analytics4.6046.98
Control Center /wp-admin/admin.php?page=perfopsone-dashboard4.6049.92
Vibes Signals /wp-admin/admin.php?page=vibes-console4.5448.28

Server storage [IO: ▲2.40MB] [DB: ▲0.04MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 545 new files
Database: 2 new tables, 6 new options
New tables
wp_vibes_resources
wp_vibes_statistics
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Vibes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲19214.27 ▼0.103.44 ▲1.8332.47 ▼12.43
Dashboard /wp-admin2,326 ▲1525.63 ▼0.0297.41 ▼3.0149.46 ▲2.14
Posts /wp-admin/edit.php2,149 ▲462.07 ▲0.1133.37 ▼16.8937.62 ▼8.77
Add New Post /wp-admin/post-new.php1,433 ▼9317.93 ▼5.14614.72 ▼88.9347.58 ▼14.39
Media Library /wp-admin/upload.php1,449 ▲464.26 ▲0.0899.18 ▼0.9342.55 ▼1.31
Performances /wp-admin/admin.php?page=vibes-navigation-viewer1,4603.3865.2867.92
Web Vitals /wp-admin/admin.php?page=vibes-webvital-viewer1,5273.3074.7954.02
Resources /wp-admin/admin.php?page=vibes-resource-viewer2,0433.8082.8048.44
Consoles /wp-admin/admin.php?page=perfopsone-consoles8982.3225.6725.32
Vibes /wp-admin/admin.php?page=vibes-settings1,3011.9825.3229.29
Analytics /wp-admin/admin.php?page=perfopsone-analytics9422.1725.8225.21
Control Center /wp-admin/admin.php?page=perfopsone-dashboard1,0701.8524.4231.38
Vibes Signals /wp-admin/admin.php?page=vibes-console9022.2927.9138.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vibes-console
    • > Warning in wp-content/plugins/vibes/includes/system/class-sharedmemory.php+96
    shmop_open(): unable to attach or create shared memory segment 'No such file or directory'

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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/vibes/public/partials/vibes-public-display.php
  • 61× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/vibes/admin/partials/vibes-admin-settings-options.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'malkusch\\lock\\exception\\MutexException' not found in wp-content/plugins/vibes/includes/libraries/lock/exception/LockReleaseException.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/vibes/includes/api/class-loggerroute.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'malkusch\\lock\\mutex\\RedisMutex' not found in wp-content/plugins/vibes/includes/libraries/lock/mutex/PredisMutex.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Vibes\\System\\Option' not found in wp-content/plugins/vibes/includes/system/class-nag.php:56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vibes/perfopsone/functions.php:41
    • > PHP Warning
      Use of undefined constant VIBES_VENDOR_DIR - assumed 'VIBES_VENDOR_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/vibes/includes/libraries/class-libraries.php on line 64
    • > PHP Fatal error
      Uncaught Error: Class 'malkusch\\lock\\mutex\\Mutex' not found in wp-content/plugins/vibes/includes/libraries/lock/mutex/LockMutex.php:18
    • > PHP Warning
      array_merge(): Expected parameter 1 to be an array, null given in wp-content/plugins/vibes/init.php on line 28
    • > PHP Fatal error
      Uncaught Error: Class 'cebe\\markdownparser\\MarkdownParser' not found in wp-content/plugins/vibes/includes/libraries/markdown/GithubMarkdown.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: web vitals, ux, web performance, real user monitoring, rum

vibes/vibes.php Passed 13 tests

This is the main PHP file of "Vibes" version 1.7.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Truthful user experience and browsing performances monitoring.

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
Success! There were no dangerous files found in this plugin41,786 lines of code in 513 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript401,9392,68421,193
PHP1471,6589,04113,779
SVG285014,251
CSS1534842,186
Markdown71210249
TypeScript1701775
JSON20053

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity15.60
▷ Minimum class complexity1.00
▷ Maximum class complexity284.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces18
Interfaces14
Traits15
Classes100
▷ Abstract classes66.00%
▷ Concrete classes9494.00%
▷ Final classes11.06%
Methods788
▷ Static methods26533.63%
▷ Public methods57673.10%
▷ Protected methods12115.36%
▷ Private methods9111.55%
Functions33
▷ Named functions1133.33%
▷ Anonymous functions2266.67%
Constants73
▷ Global constants5372.60%
▷ Class constants2027.40%
▷ Public constants1785.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin