Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.74MB] [CPU: ▼293.42ms] Passed 4 tests
Analyzing server-side resources used by WP Tripadvisor Review Widgets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.75 | 61.24 ▲9.77 |
Dashboard /wp-admin | 4.13 ▲0.72 | 38.00 ▲4.88 |
Posts /wp-admin/edit.php | 4.34 ▲0.70 | 45.04 ▲9.03 |
Add New Post /wp-admin/post-new.php | 7.99 ▲1.01 | 86.22 ▼1,191.21 |
Media Library /wp-admin/upload.php | 4.08 ▲0.78 | 27.28 ▲3.61 |
Server storage [IO: ▲2.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 113 new files
Database: no new tables, 2 new options
New WordPress options |
---|
trustindex-tripadvisor-active |
trustindex-tripadvisor-version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Tripadvisor Review Widgets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,848 ▲104 | 16.14 ▲0.51 | 7.10 ▲1.23 | 2.07 ▼0.49 |
Dashboard /wp-admin | 2,978 ▲120 | 6.17 ▼0.02 | 124.44 ▼8.68 | 175.08 ▲19.36 |
Posts /wp-admin/edit.php | 2,772 ▲78 | 3.15 ▼0.08 | 67.02 ▼0.17 | 145.02 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,723 ▲62 | 16.79 ▲0.20 | 420.17 ▼18.16 | 178.07 ▲20.01 |
Media Library /wp-admin/upload.php | 1,783 ▲82 | 5.76 ▲0.22 | 128.46 ▼14.35 | 201.25 ▲18.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 10× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/review-widgets-for-tripadvisor/tabs/get_reviews.php
- > /wp-content/plugins/review-widgets-for-tripadvisor/tabs/my_reviews.php
- > /wp-content/plugins/review-widgets-for-tripadvisor/settings.php
- > /wp-content/plugins/review-widgets-for-tripadvisor/tabs/setup_no_reg_header.php
- > /wp-content/plugins/review-widgets-for-tripadvisor/tabs/setup_trustindex.php
- > /wp-content/plugins/review-widgets-for-tripadvisor/tabs/rate.php
- > /wp-content/plugins/review-widgets-for-tripadvisor/tabs/troubleshooting.php
- > /wp-content/plugins/review-widgets-for-tripadvisor/tabs/setup_trustindex_join.php
- > /wp-content/plugins/review-widgets-for-tripadvisor/trustindex-tripadvisor-widget.class.php
- > /wp-content/plugins/review-widgets-for-tripadvisor/review-widgets-for-tripadvisor.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/review-widgets-for-tripadvisor/tabs/setup_no_reg.php:1
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_tripadvisor' not found in wp-content/plugins/review-widgets-for-tripadvisor/tabs/demo_widgets.php:2
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_tripadvisor' not found in wp-content/plugins/review-widgets-for-tripadvisor/tabs/setup_no_reg_platform.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/review-widgets-for-tripadvisor/uninstall.php:2
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: You are using too many tags: 16 tag instead of maximum 10
review-widgets-for-tripadvisor/review-widgets-for-tripadvisor.php Passed 13 tests
The primary PHP file in "WP Tripadvisor Review Widgets" version 8.2.1 is used by WordPress to initiate all plugin functionality
124 characters long description:
Embed Tripadvisor reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Tripadvisor reviews.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected7,208 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 43 | 33 | 7,163 |
SVG | 4 | 0 | 0 | 27 |
CSS | 3 | 2 | 0 | 12 |
JavaScript | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 99.67 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 266.00 |
Average method complexity | 4.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.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 | 78 | |
▷ Static methods | 6 | 7.69% |
▷ Public methods | 76 | 97.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.56% |
Functions | 12 | |
▷ Named functions | 5 | 41.67% |
▷ Anonymous functions | 7 | 58.33% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB 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/trustindex-sign-logo.png | 0.68KB | 0.46KB | ▼ 32.04% |
static/img/no.png | 1.92KB | 0.28KB | ▼ 85.53% |
static/img/platforms.png | 10.24KB | 4.08KB | ▼ 60.12% |