Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.81ms] Passed 4 tests
A check of server-side resources used by Regiondo Booking Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.29 ▲1.41 |
Dashboard /wp-admin | 3.38 ▲0.04 | 48.63 ▼10.04 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 44.88 ▼2.26 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 80.51 ▼8.34 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.47 ▲1.71 |
Regiondo widgets /wp-admin/edit.php?post_type=regiondo_iframe | 3.35 | 35.85 |
Add new widget /wp-admin/post-new.php?post_type=regiondo_iframe | 3.35 | 44.15 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_regiondo_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Regiondo Booking Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲123 | 13.18 ▼1.20 | 1.80 ▲0.01 | 44.23 ▲3.18 |
Dashboard /wp-admin | 2,272 ▲80 | 4.86 ▼0.08 | 112.36 ▲7.22 | 43.22 ▲0.52 |
Posts /wp-admin/edit.php | 2,155 ▲66 | 1.98 ▼0.06 | 33.77 ▼3.55 | 35.22 ▲1.64 |
Add New Post /wp-admin/post-new.php | 1,608 ▲89 | 18.45 ▼4.85 | 603.49 ▼88.53 | 67.72 ▼6.00 |
Media Library /wp-admin/upload.php | 1,457 ▲69 | 4.22 ▼0.04 | 96.30 ▼11.90 | 40.55 ▼10.06 |
Regiondo widgets /wp-admin/edit.php?post_type=regiondo_iframe | 1,085 | 2.00 | 30.00 | 28.69 |
Add new widget /wp-admin/post-new.php?post_type=regiondo_iframe | 1,545 | 2.69 | 57.36 | 58.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_regiondo_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/regiondo-booking-widget/regiondo-widget.php
- > /wp-content/plugins/regiondo-booking-widget/regiondo-widget-init.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/regiondo-booking-widget/meta-box.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% 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
8 plugin tags: booking system, regiondo, react, iframe, booking widget...
regiondo-booking-widget/regiondo-widget-init.php 92% from 13 tests
The main PHP file in "Regiondo Booking Widget" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("regiondo-booking-widget.php" instead of "regiondo-widget-init.php")
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
Good job! No executable or dangerous file extensions detected264 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 36 | 21 | 264 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.44MB with 0.30MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 451.38KB | 146.46KB | ▼ 67.55% |