Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/chalet-montagne-com-tools/classes/chalet-montagne-admin.php+1937
Trying to get property 'date_fin_api_wpp' of non-object
Server metrics [RAM: ▼1.23MB] [CPU: ▲460.79ms] 75% from 4 tests
This is a short check of server-side resources used by Chalet-Montagne.com Tools
It is recommended to improve the following
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 460.79ms on /wp-admin/admin.php?page=cmci-parameter-page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▼0.60 | 502.72 ▲464.76 |
Dashboard /wp-admin | 2.76 ▼0.58 | 486.96 ▲425.92 |
Posts /wp-admin/edit.php | 2.76 ▼0.59 | 603.82 ▲555.68 |
Add New Post /wp-admin/post-new.php | 2.76 ▼3.12 | 491.23 ▲396.79 |
Media Library /wp-admin/upload.php | 2.76 ▼0.47 | 1,762.38 ▲1,729.92 |
ChaletMontagne /wp-admin/admin.php?page=cmci-page | 2.76 | 475.58 |
Paramètrage /wp-admin/admin.php?page=cmci-parameter-page | 2.76 | 484.48 |
Server storage [IO: ▲4.89MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 94 new files
Database: no new tables, 8 new options
New WordPress options |
---|
cmci_date_fin_api_wpp |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
cmci_version |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Chalet-Montagne.com Tools
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲176 | 13.81 ▼0.58 | 12.36 ▲10.46 | 44.08 ▼1.12 |
Dashboard /wp-admin | 2,237 ▲49 | 5.88 ▲0.85 | 106.78 ▼12.97 | 41.49 ▼4.25 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 1.99 ▼0.03 | 32.28 ▼3.65 | 35.48 ▲1.75 |
Add New Post /wp-admin/post-new.php | 1,540 ▲8 | 20.95 ▼2.40 | 680.10 ▲63.33 | 56.96 ▲4.99 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.16 ▼0.03 | 99.87 ▲1.55 | 42.25 ▼2.45 |
ChaletMontagne /wp-admin/admin.php?page=cmci-page | 1,085 | 1.96 | 28.92 | 54.71 |
Paramètrage /wp-admin/admin.php?page=cmci-parameter-page | 1,085 | 1.96 | 27.28 | 38.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/chalet-montagne-com-tools/classes/chalet-montagne-admin.php+1937
Trying to get property 'date_fin_api_wpp' of non-object
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cmci-parameter-page
- > Notice in wp-content/plugins/chalet-montagne-com-tools/classes/chalet-montagne-admin.php+1939
Trying to get property 'date_fin_api_wpp' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cmci-parameter-page
- > Notice in wp-content/plugins/chalet-montagne-com-tools/classes/chalet-montagne-admin.php+1937
Trying to get property 'date' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cmci-parameter-page
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ChaletMontagneAdmin::upgrade_plugin() should not be called statically
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/chalet-montagne-com-tools/views/headerConfig.admin.php
- > /wp-content/plugins/chalet-montagne-com-tools/views/tarif.front.php
- > /wp-content/plugins/chalet-montagne-com-tools/views/gallery.front.php
- 94× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: prefixInput in wp-content/plugins/chalet-montagne-com-tools/views/tarif.front.php on line 59
- > PHP Notice
Undefined variable: id in wp-content/plugins/chalet-montagne-com-tools/views/modal.front.php on line 1
- > PHP Notice
Undefined variable: startEvents in wp-content/plugins/chalet-montagne-com-tools/views/planning.front.php on line 6
- > PHP Notice
Undefined variable: type in wp-content/plugins/chalet-montagne-com-tools/views/notice.admin.php on line 17
- > PHP Notice
Undefined variable: idModal in wp-content/plugins/chalet-montagne-com-tools/views/tarif.front.php on line 53
- > PHP Notice
Undefined variable: idModal in wp-content/plugins/chalet-montagne-com-tools/views/tarif.front.php on line 20
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/chalet-montagne-com-tools/views/headerConfig.admin.php on line 8
- > PHP Notice
Undefined variable: idModal in wp-content/plugins/chalet-montagne-com-tools/views/tarif.front.php on line 66
- > PHP Notice
Undefined variable: idModal in wp-content/plugins/chalet-montagne-com-tools/views/tarif.front.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/chalet-montagne-com-tools/views/planning.front.php:86
- > PHP Notice
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 90% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Contributors: Plugin contributors not specified
- Screenshots: These screenshots require images: #1 (Ecran de validation de la clé), #2 (Liste des locations)
chalet-montagne-com-tools/chalet-montagne.php 92% from 13 tests
The main file in "Chalet-Montagne.com Tools" v. 2.6.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("chalet-montagne-com-tools.php" instead of "chalet-montagne.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin20,746 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 985 | 3,041 | 15,241 |
PHP | 22 | 762 | 493 | 3,689 |
CSS | 13 | 404 | 356 | 1,620 |
LESS | 1 | 1 | 8 | 112 |
PO File | 2 | 24 | 24 | 84 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 187.50 |
▷ Minimum class complexity | 73.00 |
▷ Maximum class complexity | 302.00 |
Average method complexity | 6.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 64 | 91.43% |
▷ Public methods | 52 | 74.29% |
▷ Protected methods | 12 | 17.14% |
▷ Private methods | 6 | 8.57% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 29 | |
▷ Global constants | 9 | 31.03% |
▷ Class constants | 20 | 68.97% |
▷ Public constants | 20 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 PNG files occupy 1.58MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_ffffff_256x240.png | 3.19KB | 3.49KB | 0.00% |
assets/img/Mail-icon.png | 0.44KB | 0.48KB | 0.00% |
assets/screenshot-1.png | 427.61KB | 126.43KB | ▼ 70.43% |
assets/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
assets/img/fond-pied-de-page.png | 361.68KB | 156.43KB | ▼ 56.75% |