Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.82ms] Passed 4 tests
An overview of server-side resources used by Professional Booking Management
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 46.28 ▼9.63 |
Dashboard /wp-admin | 3.41 ▲0.11 | 47.46 ▼8.83 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 50.78 ▲0.59 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 98.47 ▼1.34 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.28 ▲0.52 |
Booking Management /wp-admin/options-general.php?page=myprobooking-setting-admin | 3.27 | 29.44 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_myprobooking |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Professional Booking Management
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲186 | 13.60 ▼0.79 | 9.31 ▲7.66 | 38.97 ▼10.10 |
Dashboard /wp-admin | 2,226 ▲38 | 4.85 ▼1.01 | 107.64 ▲1.17 | 39.86 ▼3.21 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.00 ▲0.02 | 37.67 ▼0.78 | 37.95 ▲1.74 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 17.39 ▼5.92 | 690.15 ▲24.14 | 53.59 ▼1.46 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.23 ▼0.00 | 97.55 ▼8.43 | 46.05 ▲0.02 |
Booking Management /wp-admin/options-general.php?page=myprobooking-setting-admin | 814 | 2.17 | 26.39 | 29.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_myprobooking
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=myprobooking-setting-admin
- > Notice in wp-content/plugins/professional-booking-management/booking-management-options.php+192
Trying to access array offset on value of type bool
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
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/professional-booking-management/booking-management-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/professional-booking-management/booking-management-buttons.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/professional-booking-management/1.0.0/booking-management-common.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/professional-booking-management/1.0.0/booking-management.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/professional-booking-management/booking-management-common.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/professional-booking-management/1.0.0/booking-management-buttons.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/professional-booking-management/1.0.0/booking-management-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/professional-booking-management/booking-management.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% 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
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
professional-booking-management/booking-management.php 77% from 13 tests
"Professional Booking Management" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 305 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("professional-booking-management.php" instead of "booking-management.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
It is important to fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/professional-booking-management/1.0.0/certs/-.myprobooking.crt
- ☣ wp-content/plugins/professional-booking-management/certs/-.myprobooking.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 111 | 129 | 486 |
JavaScript | 1 | 12 | 25 | 55 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 61.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 38.89% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.17MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
1.0.0/editorbtn/mpbbookingschedulecmd.png | 18.29KB | 0.88KB | ▼ 95.18% |
1.0.0/editorbtn/mpbcalendar.png | 14.96KB | 0.71KB | ▼ 95.28% |
images/accountbtn.png | 13.45KB | 4.22KB | ▼ 68.65% |
1.0.0/images/accountbtn.png | 13.45KB | 4.22KB | ▼ 68.65% |
1.0.0/editorbtn/mpbsignup.png | 15.08KB | 0.90KB | ▼ 94.05% |