Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/chaletagent/class/main.php+32
Undefined index: page
Server metrics [RAM: ▼1.90MB] [CPU: ▼48.75ms] Passed 4 tests
This is a short check of server-side resources used by Chalet Agent
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.14 ▼33.71 |
Dashboard /wp-admin | 2.11 ▼1.19 | 5.98 ▼41.55 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 5.72 ▼38.98 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 6.11 ▼80.74 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 7.02 ▼25.22 |
ChaletAgent /wp-admin/options-general.php?page=chaletagent-options | 3.25 | 29.67 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
chaletagent_saas_account |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Chalet Agent
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.35 ▲0.12 | 1.71 ▲0.19 | 44.02 ▲8.02 |
Dashboard /wp-admin | 2,204 ▲23 | 5.56 ▼0.15 | 82.16 ▼16.65 | 38.44 ▼1.60 |
Posts /wp-admin/edit.php | 2,112 ▲15 | 2.02 ▲0.06 | 32.97 ▼6.56 | 32.21 ▼5.26 |
Add New Post /wp-admin/post-new.php | 1,548 ▲19 | 18.09 ▼5.60 | 614.36 ▼26.72 | 72.30 ▲23.54 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.19 ▼0.00 | 106.12 ▲9.44 | 44.93 ▼0.14 |
ChaletAgent /wp-admin/options-general.php?page=chaletagent-options | 990 | 1.99 | 22.08 | 33.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/chaletagent/class/main.php+32
Undefined index: page
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- chaletagent_saas_account
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/chaletagent/chalet-agent.php
- > /wp-content/plugins/chaletagent/inc/help-text.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/chaletagent/inc/error-log.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: chaletagent, chalet, chalet agent
chaletagent/chalet-agent.php 92% from 13 tests
The main PHP file in "Chalet Agent" ver. 0.2.17 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("chaletagent.php" instead of "chalet-agent.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin449 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 111 | 208 | 376 |
CSS | 1 | 19 | 5 | 73 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 22 | |
▷ Static methods | 2 | 9.09% |
▷ Public methods | 19 | 86.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 13.64% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin