Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▲1.63ms] Passed 4 tests
Server-side resources used by Booklet - Hotel booking system by user email
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 37.12 ▼2.06 |
Dashboard /wp-admin | 3.44 ▲0.13 | 51.31 ▲2.88 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 52.30 ▲7.04 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 94.58 ▲4.99 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.32 ▲0.71 |
All Restaurant Booking /wp-admin/edit.php?post_type=restaurant-booking | 3.40 | 36.58 |
Add New /wp-admin/post-new.php?post_type=restaurant-booking | 3.40 | 42.94 |
Booklet Settings /wp-admin/options-general.php?page=booklet-setting-admin | 3.33 | 33.55 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Booklet - Hotel booking system by user email
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲180 | 13.67 ▼0.68 | 10.23 ▲8.47 | 39.85 ▼3.82 |
Dashboard /wp-admin | 2,243 ▲66 | 4.85 ▼0.83 | 93.43 ▼6.22 | 41.79 ▼6.15 |
Posts /wp-admin/edit.php | 2,154 ▲51 | 2.19 ▲0.25 | 37.95 ▲3.45 | 33.01 ▼3.28 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 23.20 ▼0.30 | 623.15 ▼65.19 | 55.83 ▼4.96 |
Media Library /wp-admin/upload.php | 1,451 ▲48 | 4.21 ▲0.04 | 100.97 ▲0.19 | 43.96 ▼3.06 |
All Restaurant Booking /wp-admin/edit.php?post_type=restaurant-booking | 1,118 | 2.16 | 32.34 | 27.81 |
Add New /wp-admin/post-new.php?post_type=restaurant-booking | 1,606 | 2.65 | 51.27 | 58.78 |
Booklet Settings /wp-admin/options-general.php?page=booklet-setting-admin | 877 | 1.86 | 25.72 | 30.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/booklet-booking-system/admin/Booklet-Admin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/booklet-booking-system/inc/classes/Booklet-Enqueue.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/booklet-booking-system/inc/classes/Booklet-Mail.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 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Donate link: Invalid URI ("")
- Plugin Name: Please specify the plugin name on the first line (
=== booklet-booking-system ===
)
booklet-booking-system/booklet.php 85% from 13 tests
The main file in "Booklet - Hotel booking system by user email" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("booklet-booking-system.php" instead of "booklet.php")
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,672 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 51 | 45 | 1,113 |
PHP | 8 | 185 | 78 | 534 |
SVG | 1 | 0 | 0 | 14 |
JavaScript | 3 | 14 | 6 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |