Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲1.07MB] [CPU: ▲0.99ms] Passed 4 tests
Analyzing server-side resources used by Widgets for Booking.com Reviews
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.53 ▲1.07 | 48.48 ▲5.23 |
Dashboard /wp-admin | 4.40 ▲1.06 | 56.49 ▼6.21 |
Posts /wp-admin/edit.php | 4.44 ▲1.08 | 56.35 ▲10.26 |
Add New Post /wp-admin/post-new.php | 7.05 ▲1.16 | 87.42 ▼5.33 |
Media Library /wp-admin/upload.php | 4.28 ▲1.05 | 43.53 ▲11.03 |
Server storage [IO: ▲3.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 131 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_trustindex_booking_reviews |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
trustindex-booking-version |
trustindex-booking-active |
Browser metrics Passed 4 tests
Checking browser requirements for Widgets for Booking.com Reviews
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲47 | 14.23 ▼0.11 | 1.81 ▲0.14 | 43.99 ▼0.24 |
Dashboard /wp-admin | 2,202 ▲27 | 5.59 ▼0.08 | 96.87 ▼16.32 | 84.20 ▲37.35 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.00 ▼0.03 | 39.83 ▲1.32 | 38.18 ▲7.44 |
Add New Post /wp-admin/post-new.php | 6,379 ▲4,842 | 27.78 ▲4.53 | 981.43 ▲310.28 | 41.20 ▼18.23 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.24 ▲0.02 | 97.75 ▼3.65 | 70.02 ▲24.88 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 11× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/review-widgets-for-booking-com/tabs/setup_no_reg_header.php
- > /wp-content/plugins/review-widgets-for-booking-com/review-widgets-for-booking-com.php
- > /wp-content/plugins/review-widgets-for-booking-com/tabs/feature_request.php
- > /wp-content/plugins/review-widgets-for-booking-com/tabs/setup_trustindex.php
- > /wp-content/plugins/review-widgets-for-booking-com/trustindex-booking-widget.class.php
- > /wp-content/plugins/review-widgets-for-booking-com/settings.php
- > /wp-content/plugins/review-widgets-for-booking-com/tabs/rate.php
- > /wp-content/plugins/review-widgets-for-booking-com/tabs/get_reviews.php
- > /wp-content/plugins/review-widgets-for-booking-com/tabs/advanced.php
- > /wp-content/plugins/review-widgets-for-booking-com/tabs/setup_trustindex_join.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/review-widgets-for-booking-com/include/schema.php:4
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_booking' not found in wp-content/plugins/review-widgets-for-booking-com/tabs/demo_widgets.php:6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/review-widgets-for-booking-com/include/activate.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/review-widgets-for-booking-com/include/uninstall.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/review-widgets-for-booking-com/tabs/setup_no_reg.php:1
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_booking' not found in wp-content/plugins/review-widgets-for-booking-com/tabs/setup_no_reg_platform.php:1
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/review-widgets-for-booking-com/include/activate.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/review-widgets-for-booking-com/uninstall.php:2
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_booking' not found in wp-content/plugins/review-widgets-for-booking-com/tabs/_rate_us_feedback.php:2
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_booking' not found in wp-content/plugins/review-widgets-for-booking-com/tabs/_get_more_customers.php:1
- > 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 97% 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
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
review-widgets-for-booking-com/review-widgets-for-booking-com.php Passed 13 tests
"Widgets for Booking.com Reviews" version 11.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
124 characters long description:
Embed Booking.com reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Booking.com reviews.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin10,475 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 43 | 38 | 9,281 |
JavaScript | 6 | 301 | 175 | 1,018 |
CSS | 4 | 13 | 0 | 63 |
SVG | 4 | 2 | 0 | 61 |
JSON | 1 | 0 | 0 | 52 |
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.43 |
Average class complexity | 127.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 348.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 6 | 6.12% |
▷ Public methods | 96 | 97.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.04% |
Functions | 17 | |
▷ Named functions | 8 | 47.06% |
▷ Anonymous functions | 9 | 52.94% |
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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/img/yes.png | 1.91KB | 0.25KB | ▼ 87.08% |
static/img/platforms.png | 10.24KB | 4.08KB | ▼ 60.12% |
static/img/no.png | 1.92KB | 0.28KB | ▼ 85.53% |
static/img/trustindex-sign-logo.png | 3.34KB | 0.59KB | ▼ 82.47% |