Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼5.01ms] Passed 4 tests
This is a short check of server-side resources used by WebHotelier for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 38.28 ▼2.52 |
Dashboard /wp-admin | 3.50 ▲0.20 | 45.06 ▼1.56 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 49.56 ▼0.45 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 89.27 ▼15.51 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 35.35 ▲4.05 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 3.48 | 38.86 |
Server storage [IO: ▲1.50MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 216 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_wp_webhotelier_widget |
widget_recent-comments |
wp-webhotelier_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WebHotelier for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲151 | 13.79 ▼0.34 | 7.93 ▲6.07 | 39.03 ▼7.45 |
Dashboard /wp-admin | 2,226 ▲49 | 5.61 ▼0.05 | 95.64 ▼4.73 | 42.76 ▼2.06 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.00 ▼0.02 | 39.04 ▲3.05 | 37.65 ▲4.14 |
Add New Post /wp-admin/post-new.php | 6,391 ▲4,860 | 27.65 ▲4.62 | 851.53 ▲256.69 | 35.88 ▼25.78 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.16 ▼0.00 | 99.51 ▲4.37 | 42.14 ▲1.13 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 1,469 | 3.60 | 69.57 | 68.50 |
Form Customization Settings /wp-admin/admin.php?page=wp-webhotelier_options#tab=form-customization-settings | 1,648 | 4.53 | 79.36 | 65.07 |
Form Fields Settings /wp-admin/admin.php?page=wp-webhotelier_options#tab=form-fields-settings | 1,511 | 3.91 | 62.04 | 36.52 |
Uninstaller [IO: ▲1.50MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the followingZombie WordPress options were found after uninstall: 8 options
- Uninstaller has failed for this plugin, leaving 216 files (1.50MB) in the plugin directory
- (new file) admin/css/wp-webhotelier-admin.css
- (new file) admin/images/horizontal-form.png
- (new file) admin/index.php
- (new file) admin/class-wp-webhotelier-admin.php
- (new file) admin/images/vertical-form.png
- (new file) README.txt
- (new file) admin/images/fluid-form.png
- (new file) admin/partials/wp-webhotelier-notice-markup.php
- (new file) LICENSE.txt
- (new file) admin/js/wp-webhotelier-admin.js
- ...
- can_compress_scripts
- wp-webhotelier_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_wp_webhotelier_widget
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
Good news, no errors were detected
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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/webhotelier/admin/partials/wp-webhotelier-notice-markup.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/webhotelier/admin/partials/wp-webhotelier-paypal-code.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/webhotelier/includes/class-wp-webhotelier-widget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/webhotelier/admin/partials/wp-webhotelier-widget-backend-form.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/webhotelier/public/partials/wp-webhotelier-form.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webhotelier/blocks/wp-webhotelier-block.php:89
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (The WebHotelier Availability Form), #2 (Admin Form Field Settings), #3 (Admin Form Customization Settings), #4 (Admin Widget)
webhotelier/wp-webhotelier.php 85% from 13 tests
The main PHP file in "WebHotelier for WordPress" ver. 1.8.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("webhotelier.php" instead of "wp-webhotelier.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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin22,406 lines of code in 183 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 2,327 | 1,502 | 10,809 |
PO File | 21 | 3,302 | 3,792 | 6,698 |
JavaScript | 65 | 256 | 55 | 4,278 |
Markdown | 2 | 85 | 0 | 379 |
CSS | 7 | 44 | 41 | 240 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview 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.58 |
Average class complexity | 18.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 5.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 2 | 3.12% |
▷ Concrete classes | 62 | 96.88% |
▷ Final classes | 0 | 0.00% |
Methods | 228 | |
▷ Static methods | 37 | 16.23% |
▷ Public methods | 220 | 96.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 3.51% |
Functions | 28 | |
▷ Named functions | 27 | 96.43% |
▷ Anonymous functions | 1 | 3.57% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/horizontal-form.png | 10.47KB | 4.32KB | ▼ 58.72% |
admin/images/vertical-form.png | 11.66KB | 4.21KB | ▼ 63.91% |
admin/images/fluid-form.png | 10.55KB | 4.40KB | ▼ 58.29% |
includes/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |