Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▲4.19ms] Passed 4 tests
This is a short check of server-side resources used by Bookwize Integrated
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 49.18 ▲4.65 |
Dashboard /wp-admin | 3.62 ▲0.27 | 61.97 ▼3.44 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 61.97 ▲8.14 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 111.12 ▲7.42 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 54.25 ▲16.07 |
Server storage [IO: ▲5.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 146 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Bookwize Integrated
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 13.20 ▼1.22 | 1.63 ▼0.10 | 37.35 ▼5.25 |
Dashboard /wp-admin | 2,235 ▲64 | 5.75 ▲0.11 | 87.58 ▼4.15 | 41.11 ▼1.11 |
Posts /wp-admin/edit.php | 2,145 ▲48 | 2.30 ▲0.34 | 40.41 ▲1.39 | 36.59 ▲0.69 |
Add New Post /wp-admin/post-new.php | 6,261 ▲4,735 | 25.12 ▲7.58 | 914.30 ▲248.89 | 36.78 ▼23.49 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.47 ▲0.28 | 117.32 ▲9.20 | 53.59 ▲5.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/bookwize-integrated-booking-engine/admin/partials/bookwize-integrated-admin-display.php
- > /wp-content/plugins/bookwize-integrated-booking-engine/public/partials/bookwize-public-header.php
- > /wp-content/plugins/bookwize-integrated-booking-engine/admin/partials/bookwize-integrated-admin-flash-message.php
- > /wp-content/plugins/bookwize-integrated-booking-engine/public/partials/bookwize-public-form.php
- > /wp-content/plugins/bookwize-integrated-booking-engine/public/partials/bookwize-public-display.php
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bookwize-integrated-booking-engine/public/template-bookwize.php:2
- > PHP Warning
Use of undefined constant BW_PUBLIC_URL - assumed 'BW_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bookwize-integrated-booking-engine/public/partials/bookwize-public-display.php on line 35
- > PHP Warning
Use of undefined constant BW_PUBLIC_URL - assumed 'BW_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bookwize-integrated-booking-engine/public/partials/bookwize-public-display.php on line 49
- > PHP Warning
Use of undefined constant BW_PUBLIC_URL - assumed 'BW_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bookwize-integrated-booking-engine/public/partials/bookwize-public-display.php on line 45
- > PHP Notice
Undefined variable: message in wp-content/plugins/bookwize-integrated-booking-engine/admin/partials/bookwize-integrated-admin-flash-message.php on line 2
- > PHP Warning
Use of undefined constant BW_PUBLIC_URL - assumed 'BW_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bookwize-integrated-booking-engine/public/partials/bookwize-public-display.php on line 41
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bookwize-integrated-booking-engine/admin/partials/bookwize-integrated-admin-meta-box.php:2
- > PHP Warning
Use of undefined constant BW_PUBLIC_URL - assumed 'BW_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bookwize-integrated-booking-engine/public/partials/bookwize-public-display.php on line 39
- > PHP Warning
Use of undefined constant BW_PUBLIC_URL - assumed 'BW_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bookwize-integrated-booking-engine/public/partials/bookwize-public-display.php on line 43
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/bookwize-integrated-booking-engine/admin/partials/bookwize-integrated-admin-settings.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in bookwize-integrated-booking-engine/assets to your readme.txt
bookwize-integrated-booking-engine/bookwize-integrated.php 77% from 13 tests
The main PHP script in "Bookwize Integrated" version 3.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("bookwize-integrated-booking-engine.php" instead of "bookwize-integrated.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
No dangerous file extensions were detected34,493 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 965 | 65 | 15,992 |
SVG | 7 | 0 | 0 | 9,874 |
HTML | 18 | 496 | 162 | 2,274 |
JavaScript | 10 | 599 | 211 | 1,694 |
Sass | 14 | 34 | 34 | 1,656 |
LESS | 14 | 34 | 44 | 1,646 |
PHP | 25 | 317 | 626 | 1,327 |
Markdown | 1 | 5 | 0 | 30 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 6.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 7 | 9.46% |
▷ Public methods | 64 | 86.49% |
▷ Protected methods | 5 | 6.76% |
▷ Private methods | 5 | 6.76% |
Functions | 15 | |
▷ Named functions | 13 | 86.67% |
▷ Anonymous functions | 2 | 13.33% |
Constants | 13 | |
▷ Global constants | 13 | 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
6 PNG files occupy 0.64MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/screenshot4.png | 67.80KB | 29.09KB | ▼ 57.10% |
public/img/banner-772x250png.png | 80.83KB | 21.48KB | ▼ 73.43% |
public/img/banner-1544x500.png | 94.08KB | 38.83KB | ▼ 58.73% |
public/img/screenshot2.png | 168.09KB | 47.42KB | ▼ 71.79% |
public/img/horizontal-arrow.png | 1.09KB | 0.20KB | ▼ 81.49% |