Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.20ms] Passed 4 tests
Analyzing server-side resources used by Minical Hotel Booking Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 48.86 ▲3.38 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.23 ▼23.95 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.87 ▼4.98 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 99.85 ▼3.26 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.14 ▲3.44 |
Online Booking Engine /wp-admin/admin.php?page=online-booking-engine | 3.35 | 37.49 |
Minical App /wp-admin/admin.php?page=minical-app | 3.27 | 35.63 |
Minical /wp-admin/admin.php?page=minical-plugin | 3.32 | 33.46 |
Server storage [IO: ▲5.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 78 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
booking_engine_settings_0 |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Minical Hotel Booking Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲163 | 13.52 ▼0.85 | 12.71 ▲10.50 | 44.99 ▼1.94 |
Dashboard /wp-admin | 2,223 ▲46 | 5.59 ▼0.01 | 84.92 ▼10.63 | 42.08 ▼1.20 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.00 ▲0.04 | 38.82 ▲0.75 | 33.68 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 18.26 ▼4.87 | 614.41 ▼6.95 | 74.04 ▲24.58 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.29 ▲0.11 | 99.18 ▼4.90 | 45.91 ▼2.37 |
Online Booking Engine /wp-admin/admin.php?page=online-booking-engine | 818 | 2.11 | 29.75 | 47.38 |
Minical App /wp-admin/admin.php?page=minical-app | 880 | 2.11 | 29.90 | 27.71 |
Minical /wp-admin/admin.php?page=minical-plugin | 936 | 2.24 | 28.07 | 29.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- booking_engine_settings_0
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/minical/admin/partials/minical-booking-engine-display.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/minical/admin/partials/minical-admin-display.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_key() in wp-content/plugins/minical/admin/partials/minical-home-page-display.php:15
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 108 tag instead of maximum 10
minical/minical.php 92% from 13 tests
This is the main PHP file of "Minical Hotel Booking Plugin" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin6,921 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 6 | 76 | 68 | 1,566 |
JavaScript | 7 | 228 | 59 | 1,520 |
PHP | 13 | 250 | 571 | 1,160 |
HTML | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 10.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.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 | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
31 PNG files occupy 1.68MB with 0.96MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/9.png | 89.13KB | 42.18KB | ▼ 52.68% |
admin/images/select-box.png | 3.57KB | 1.36KB | ▼ 61.83% |
admin/images/vertical_ln.png | 2.73KB | 0.09KB | ▼ 96.85% |
assets/final_preview.png | 23.43KB | 22.39KB | ▼ 4.43% |
admin/images/gp.png | 3.27KB | 0.99KB | ▼ 69.68% |