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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.56 ▲0.14 |
Dashboard /wp-admin | 3.41 ▲0.07 | 51.33 ▼3.63 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 46.15 ▲1.98 |
Add New Post /wp-admin/post-new.php | 5.89 ▼0.00 | 77.77 ▼31.67 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.36 ▲1.89 |
Mes campagnes /wp-admin/admin.php?page=ha-no-campaign | 3.33 | 32.48 |
Mes campagnes /wp-admin/admin.php?page=ha-campaign | 3.33 | 33.42 |
Mes campagnes /wp-admin/admin.php?page=ha-no-sync | 3.33 | 34.50 |
Synchronisation /wp-admin/admin.php?page=hello-asso | 3.32 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲201 | 13.54 ▼0.86 | 7.54 ▲5.97 | 36.88 ▲0.57 |
Dashboard /wp-admin | 2,233 ▲52 | 5.64 ▼0.07 | 84.00 ▼12.98 | 69.03 ▲29.03 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 2.01 ▲0.05 | 35.49 ▲1.87 | 31.74 ▼1.35 |
Add New Post /wp-admin/post-new.php | 6,293 ▲4,758 | 25.76 ▲7.50 | 993.52 ▲402.25 | 38.54 ▼34.13 |
Media Library /wp-admin/upload.php | 1,447 ▲44 | 4.25 ▲0.03 | 110.44 ▲8.71 | 75.70 ▲31.08 |
Mes campagnes /wp-admin/admin.php?page=ha-no-campaign | 1,018 | 2.05 | 23.58 | 69.32 |
Mes campagnes /wp-admin/admin.php?page=ha-campaign | 1,021 | 2.01 | 27.39 | 34.16 |
Mes campagnes /wp-admin/admin.php?page=ha-no-sync | 1,019 | 2.01 | 24.45 | 36.78 |
Synchronisation /wp-admin/admin.php?page=hello-asso | 1,123 | 1.69 | 28.26 | 85.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 218 | 11 | 1,284 |
PHP | 17 | 209 | 551 | 1,243 |
JavaScript | 3 | 74 | 69 | 406 |
SVG | 13 | 0 | 0 | 39 |
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 code | 0.34 |
Average class complexity | 5.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 33 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.38% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 139.83KB | 59.63KB | ▼ 57.36% |
admin/img/icon-256x256.png | 16.40KB | 7.06KB | ▼ 56.96% |
assets/screenshot-2.png | 124.76KB | 50.43KB | ▼ 59.58% |
admin/img/icon-128x128.png | 7.93KB | 3.85KB | ▼ 51.42% |
admin/img/icon-menu.png | 0.48KB | 0.39KB | ▼ 18.29% |