Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.96MB] [CPU: ▲6.89ms] Passed 4 tests
Analyzing server-side resources used by Mon Laboratoire
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.50 ▲1.03 | 49.55 ▲9.00 |
Dashboard /wp-admin | 4.17 ▲0.86 | 55.53 ▲8.36 |
Posts /wp-admin/edit.php | 4.62 ▲1.26 | 53.96 ▲7.54 |
Add New Post /wp-admin/post-new.php | 7.05 ▲1.16 | 92.45 ▲5.26 |
Media Library /wp-admin/upload.php | 4.03 ▲0.80 | 41.81 ▲6.40 |
Configuration /wp-admin/admin.php?page=MonLabo_config | 4.49 | 47.80 |
Documentation /wp-admin/admin.php?page=MonLabo | 4.05 | 45.88 |
Publications cache /wp-admin/admin.php?page=MonLabo_config_cache | 4.33 | 47.49 |
Persons and structures /wp-admin/admin.php?page=MonLabo_edit_members_and_groups | 5.02 | 50.98 |
Server storage [IO: ▲1.46MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 92 new files
Database: 8 new tables, 15 new options
New tables |
---|
wp_MonLabo_units |
wp_MonLabo_teams_thematics |
wp_MonLabo_persons |
wp_MonLabo_thematics |
wp_MonLabo_teams |
wp_MonLabo_teams_members |
wp_MonLabo_mentors |
wp_MonLabo_units_directors |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
MonLabo_settings_group1 |
MonLabo_settings_group3 |
MonLabo_settings_group7 |
MonLabo_settings_group4 |
can_compress_scripts |
MonLabo_settings_group5 |
MonLabo_settings_group6 |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Mon Laboratoire
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲89 | 14.30 ▼0.41 | 1.69 ▲0.02 | 44.77 ▲3.69 |
Dashboard /wp-admin | 2,234 ▲57 | 5.56 ▼0.06 | 87.02 ▼2.48 | 67.40 ▲27.21 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 1.96 ▼0.03 | 34.73 ▼4.00 | 30.56 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,582 ▲56 | 18.37 ▼4.61 | 740.01 ▲47.10 | 53.86 ▲3.65 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.08 ▼0.13 | 98.09 ▼13.62 | 74.25 ▲30.02 |
Configuration /wp-admin/admin.php?page=MonLabo_config | 1,208 | 3.57 | 50.81 | 84.49 |
Documentation /wp-admin/admin.php?page=MonLabo | 2,262 | 3.61 | 48.95 | 101.45 |
Publications cache /wp-admin/admin.php?page=MonLabo_config_cache | 1,068 | 3.40 | 43.30 | 75.76 |
Persons and structures /wp-admin/admin.php?page=MonLabo_edit_members_and_groups | 1,785 | 3.95 | 60.36 | 79.32 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 45× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/mon-laboratoire/Lib/class-app.php
- > /wp-content/plugins/mon-laboratoire/Lib/class-db.php
- > /wp-content/plugins/mon-laboratoire/Frontend/Api_Pub_Repo/class-api-hal-publications-list.php
- > /wp-content/plugins/mon-laboratoire/Lib/Person_Or_Structure/class-unit.php
- > /wp-content/plugins/mon-laboratoire/Frontend/class-contact-webservices.php
- > /wp-content/plugins/mon-laboratoire/Frontend/Api_Pub_Repo/class-api-hal.php
- > /wp-content/plugins/mon-laboratoire/Lib/Person_Or_Structure/Groups/class-persons-group.php
- > /wp-content/plugins/mon-laboratoire/Lib/class-access-data.php
- > /wp-content/plugins/mon-laboratoire/Lib/Person_Or_Structure/class-person.php
- > /wp-content/plugins/mon-laboratoire/mon-laboratoire.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: science, lab, user
mon-laboratoire/mon-laboratoire.php 92% from 13 tests
The entry point to "Mon Laboratoire" version 4.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("5.6" instead of "7.0.33")
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
Everything looks great! No dangerous files found in this plugin12,698 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 1,292 | 5,540 | 10,740 |
PO File | 1 | 334 | 400 | 873 |
CSS | 3 | 126 | 69 | 848 |
JavaScript | 2 | 49 | 145 | 237 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 40.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 171.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 41 | |
▷ Abstract classes | 4 | 9.76% |
▷ Concrete classes | 37 | 90.24% |
▷ Final classes | 0 | 0.00% |
Methods | 477 | |
▷ Static methods | 31 | 6.50% |
▷ Public methods | 308 | 64.57% |
▷ Protected methods | 16 | 3.35% |
▷ Private methods | 153 | 32.08% |
Functions | 27 | |
▷ Named functions | 25 | 92.59% |
▷ Anonymous functions | 2 | 7.41% |
Constants | 20 | |
▷ Global constants | 1 | 5.00% |
▷ Class constants | 19 | 95.00% |
▷ Public constants | 19 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 PNG files occupy 0.53MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Admin/images/fr.png | 0.53KB | 0.63KB | 0.00% |
Admin/images/1.png | 8.44KB | 0.42KB | ▼ 94.99% |
Admin/images/alumni_list2.png | 37.52KB | 37.48KB | 0.12% |
Frontend/images/photo_par_defaut.png | 4.50KB | 4.60KB | 0.00% |
Admin/images/teams_list.png | 27.67KB | 27.42KB | ▼ 0.91% |