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
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.12ms] Passed 4 tests
Server-side resources used by IdoBooking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.85 ▼5.79 |
Dashboard /wp-admin | 3.38 ▲0.08 | 48.78 ▼0.17 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.72 ▲3.33 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 96.86 ▼1.83 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.21 ▲4.28 |
IdoSell Booking /wp-admin/options-general.php?page=idosellbooking-setting-admin | 3.27 | 31.63 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_idosellbookingwidget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_idosellbookingsidebuttonwidget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by IdoBooking
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.15 ▼0.23 | 1.79 ▲0.13 | 45.51 ▲1.34 |
Dashboard /wp-admin | 2,210 ▲18 | 4.86 ▼0.08 | 109.73 ▲2.25 | 40.87 ▼8.04 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.06 | 39.69 ▲5.13 | 34.57 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,545 ▲9 | 23.36 ▲0.06 | 687.82 ▲27.89 | 42.58 ▼19.84 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.02 | 110.88 ▲10.96 | 47.16 ▲4.98 |
IdoSell Booking /wp-admin/options-general.php?page=idosellbooking-setting-admin | 979 | 2.04 | 25.70 | 34.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_idosellbookingwidget
- widget_idosellbookingsidebuttonwidget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/booking-calendar-with-availability-management/admin/AdminPage.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/booking-calendar-with-availability-management/widget/SideButtonWidget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/booking-calendar-with-availability-management/idosellbooking.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/booking-calendar-with-availability-management/widget/Widget.php:7
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #9 is required in booking-calendar-with-availability-management/assets to your readme.txt
booking-calendar-with-availability-management/idosellbooking.php 92% from 13 tests
The main file in "IdoBooking" v. 1.2 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: Please rename the main PHP file in this plugin to the plugin slug ("booking-calendar-with-availability-management.php" instead of "idosellbooking.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin858 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 73 | 104 | 675 |
PO File | 2 | 77 | 39 | 180 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 9.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 6 | 26.09% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
31 PNG files occupy 1.02MB with 0.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/image/pl_PL/16.png | 13.41KB | 3.98KB | ▼ 70.35% |
admin/image/en_GB/4.png | 11.63KB | 3.33KB | ▼ 71.37% |
admin/image/pl_PL/8.png | 29.27KB | 8.67KB | ▼ 70.37% |
admin/image/en_GB/13.png | 81.20KB | 20.85KB | ▼ 74.32% |
admin/image/pl_PL/2.png | 27.24KB | 8.05KB | ▼ 70.43% |