Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼1.92MB] [CPU: ▼53.63ms] Passed 4 tests
An overview of server-side resources used by Calendrier de Réservation Resaline - Booking Calendar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 5.78 ▼32.63 |
Dashboard /wp-admin | 2.10 ▼1.25 | 8.05 ▼53.63 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.31 ▼37.12 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.80 ▼91.12 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.70 ▼31.14 |
Resaline Configuration /wp-admin/plugins.php?page=resaline-config | 2.20 | 6.73 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Calendrier de Réservation Resaline - Booking Calendar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.34 ▼0.03 | 1.81 ▲0.12 | 46.99 ▲6.58 |
Dashboard /wp-admin | 2,206 ▲26 | 5.55 ▼0.12 | 91.07 ▼3.19 | 44.64 ▲6.70 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.98 ▼0.01 | 43.93 ▲9.45 | 37.80 ▼3.59 |
Add New Post /wp-admin/post-new.php | 1,533 ▲4 | 23.21 ▼0.04 | 681.36 ▲62.31 | 91.63 ▲34.95 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.22 ▲0.05 | 94.67 ▼4.55 | 42.40 ▼4.66 |
Resaline Configuration /wp-admin/plugins.php?page=resaline-config | 849 | 2.03 | 25.57 | 28.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the resaline_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% 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 server-side errors were triggered
- > GET request to /wp-admin/plugins.php?page=resaline-config
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the resaline_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/plugins.php?page=resaline-config
- > Notice in wp-content/plugins/resaline/admin.php+138
Undefined variable: ms
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resaline/admin.php:2
- > PHP Fatal error
Uncaught Error: Class '_WP_Editors' not found in wp-content/plugins/resaline/assets/js/admin/editor_plugin_lang.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Calendar on demo site), #2 (Add calendar button on resaline plugin wordpress.)
- Tags: Please delete some tags, you are using 29 tag instead of maximum 10
- Donate link: Invalid url: "www.resaline.net"
resaline/resaline.php Passed 13 tests
Analyzing the main PHP file in "Calendrier de Réservation Resaline - Booking Calendar" version 1.2
23 characters long description:
Premier plugin resaline
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
Success! There were no dangerous files found in this plugin422 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 93 | 86 | 319 |
PO File | 2 | 4 | 4 | 40 |
CSS | 1 | 5 | 0 | 32 |
JavaScript | 1 | 12 | 5 | 31 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
2 PNG files occupy 0.32MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/calendar.png | 0.69KB | 0.77KB | 0.00% |
assets/banner-772x250.png | 328.66KB | 91.32KB | ▼ 72.21% |