Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.45ms] Passed 4 tests
Server-side resources used by Button for Doctolib
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 50.65 ▲8.84 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.76 ▼4.25 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.65 ▼10.75 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.39 ▼10.62 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 37.67 ▲3.83 |
Doctolib Settings /wp-admin/options-general.php?page=doctolib-btn-settings | 3.21 | 32.83 |
Server storage [IO: ▲0.09MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Button for Doctolib: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.17 ▼0.12 | 1.81 ▼0.51 | 45.16 ▲2.66 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▲0.08 | 101.03 ▲0.32 | 44.76 ▼1.34 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.00 | 36.35 ▼0.64 | 35.56 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.55 ▲5.43 | 651.60 ▲6.20 | 60.40 ▼4.24 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.20 ▼0.01 | 98.78 ▲0.56 | 46.30 ▲3.26 |
Doctolib Settings /wp-admin/options-general.php?page=doctolib-btn-settings | 854 | 2.01 | 26.66 | 27.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/button-for-doctolib/doctolib-btn.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: doctolib
button-for-doctolib/doctolib-btn.php 85% from 13 tests
The main PHP script in "Button for Doctolib" version 0.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("button-for-doctolib.php" instead of "doctolib-btn.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected264 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 26 | 155 |
CSS | 1 | 4 | 0 | 65 |
PO File | 1 | 14 | 14 | 44 |
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.28 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
doctolib.png | 78.56KB | 30.92KB | ▼ 60.65% |