77% helloasso

Code Review | HelloAsso

WordPress plugin HelloAsso scored77%from 54 tests.

About plugin

  • Plugin page: helloasso
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.3
  • WordPress version: 6.3.1
  • First release: Oct 25, 2019
  • Latest release: Nov 7, 2022
  • Number of updates: 17
  • Update frequency: every 65.3 days
  • Top authors: helloasso (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

3,000+ active /16,834 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by HelloAsso
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.56 ▲0.14
Dashboard /wp-admin3.41 ▲0.0751.33 ▼3.63
Posts /wp-admin/edit.php3.53 ▲0.1746.15 ▲1.98
Add New Post /wp-admin/post-new.php5.89 ▼0.0077.77 ▼31.67
Media Library /wp-admin/upload.php3.34 ▲0.1137.36 ▲1.89
Mes campagnes /wp-admin/admin.php?page=ha-no-campaign3.3332.48
Mes campagnes /wp-admin/admin.php?page=ha-campaign3.3333.42
Mes campagnes /wp-admin/admin.php?page=ha-no-sync3.3334.50
Synchronisation /wp-admin/admin.php?page=hello-asso3.3231.55

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by HelloAsso
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲20113.54 ▼0.867.54 ▲5.9736.88 ▲0.57
Dashboard /wp-admin2,233 ▲525.64 ▼0.0784.00 ▼12.9869.03 ▲29.03
Posts /wp-admin/edit.php2,153 ▲532.01 ▲0.0535.49 ▲1.8731.74 ▼1.35
Add New Post /wp-admin/post-new.php6,293 ▲4,75825.76 ▲7.50993.52 ▲402.2538.54 ▼34.13
Media Library /wp-admin/upload.php1,447 ▲444.25 ▲0.03110.44 ▲8.7175.70 ▲31.08
Mes campagnes /wp-admin/admin.php?page=ha-no-campaign1,0182.0523.5869.32
Mes campagnes /wp-admin/admin.php?page=ha-campaign1,0212.0127.3934.16
Mes campagnes /wp-admin/admin.php?page=ha-no-sync1,0192.0124.4536.78
Synchronisation /wp-admin/admin.php?page=hello-asso1,1231.6928.2685.99

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/helloasso/admin/partials/hello-asso-admin-display.php
    • > /wp-content/plugins/helloasso/public/partials/hello-asso-public-display.php
    • > /wp-content/plugins/helloasso/admin/view/template/footer.php
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/helloasso/admin/view/dashboard.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/helloasso/admin/view/campaign.php:54
    • > PHP Notice
      Undefined variable: campaigns in wp-content/plugins/helloasso/admin/view/error_2.php on line 30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/helloasso/admin/view/error_1.php:30
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/helloasso/admin/view/error_2.php on line 30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/helloasso/admin/view/error_2.php:31

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Liste des campagnes), #2 (Iframes des campagnes)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === helloasso === )
You can take inspiration from this readme.txt

helloasso/hello-asso.php 85% from 13 tests

The main PHP file in "HelloAsso" ver. 1.1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("helloasso.php" instead of "hello-asso.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,972 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
CSS2218111,284
PHP172095511,243
JavaScript37469406
SVG130039

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity5.29
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods3384.62%
▷ Protected methods00.00%
▷ Private methods615.38%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.28MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png139.83KB59.63KB▼ 57.36%
admin/img/icon-256x256.png16.40KB7.06KB▼ 56.96%
assets/screenshot-2.png124.76KB50.43KB▼ 59.58%
admin/img/icon-128x128.png7.93KB3.85KB▼ 51.42%
admin/img/icon-menu.png0.48KB0.39KB▼ 18.29%