Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲1.12MB] [CPU: ▲1.32ms] Passed 4 tests
This is a short check of server-side resources used by Widgets for Expedia Reviews
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.59 ▲1.12 | 50.85 ▲3.85 |
Dashboard /wp-admin | 4.46 ▲1.11 | 63.63 ▼5.68 |
Posts /wp-admin/edit.php | 4.49 ▲1.13 | 61.74 ▲10.62 |
Add New Post /wp-admin/post-new.php | 7.10 ▲1.21 | 99.70 ▼3.50 |
Media Library /wp-admin/upload.php | 4.34 ▲1.10 | 53.38 ▲16.31 |
Server storage [IO: ▲3.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 131 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_trustindex_expedia_reviews |
New WordPress options |
---|
widget_recent-comments |
trustindex-expedia-version |
trustindex-expedia-active |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Widgets for Expedia Reviews
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲62 | 14.54 ▼0.16 | 1.65 ▲0.03 | 41.89 ▼1.51 |
Dashboard /wp-admin | 2,211 ▲34 | 5.59 ▼0.07 | 93.76 ▲0.36 | 85.17 ▲48.69 |
Posts /wp-admin/edit.php | 2,122 ▲19 | 2.00 ▲0.00 | 38.92 ▼1.85 | 35.29 ▼1.48 |
Add New Post /wp-admin/post-new.php | 6,379 ▲4,853 | 27.60 ▲4.29 | 834.07 ▲163.03 | 35.84 ▼17.85 |
Media Library /wp-admin/upload.php | 1,419 ▲25 | 4.24 ▲0.08 | 96.81 ▼0.74 | 77.39 ▲36.19 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 11× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/widgets-for-expedia-reviews/trustindex-expedia-widget.class.php
- > /wp-content/plugins/widgets-for-expedia-reviews/tabs/setup_no_reg_header.php
- > /wp-content/plugins/widgets-for-expedia-reviews/tabs/setup_trustindex.php
- > /wp-content/plugins/widgets-for-expedia-reviews/tabs/advanced.php
- > /wp-content/plugins/widgets-for-expedia-reviews/tabs/setup_trustindex_join.php
- > /wp-content/plugins/widgets-for-expedia-reviews/tabs/get_reviews.php
- > /wp-content/plugins/widgets-for-expedia-reviews/widgets-for-expedia-reviews.php
- > /wp-content/plugins/widgets-for-expedia-reviews/tabs/feature_request.php
- > /wp-content/plugins/widgets-for-expedia-reviews/tabs/rate.php
- > /wp-content/plugins/widgets-for-expedia-reviews/tabs/my_reviews.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/widgets-for-expedia-reviews/include/activate.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_expedia' not found in wp-content/plugins/widgets-for-expedia-reviews/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/widgets-for-expedia-reviews/include/activate.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/widgets-for-expedia-reviews/include/activate.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/widgets-for-expedia-reviews/include/schema.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/widgets-for-expedia-reviews/uninstall.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/widgets-for-expedia-reviews/tabs/setup_no_reg.php:1
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_expedia' not found in wp-content/plugins/widgets-for-expedia-reviews/tabs/_rate_us_feedback.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/widgets-for-expedia-reviews/include/troubleshooting.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/widgets-for-expedia-reviews/include/uninstall.php:2
- > PHP Warning
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 on the user side
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
Attributes that require attention:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
widgets-for-expedia-reviews/widgets-for-expedia-reviews.php Passed 13 tests
The main file in "Widgets for Expedia Reviews" v. 11.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
116 characters long description:
Embed Expedia reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Expedia 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
There were no executable files found in this plugin10,474 lines of code in 37 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 | 3 | 2 | 0 | 60 |
JSON | 1 | 0 | 0 | 52 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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/trustindex-sign-logo.png | 3.34KB | 0.59KB | ▼ 82.47% |
static/img/yes.png | 1.91KB | 0.25KB | ▼ 87.08% |
static/img/no.png | 1.92KB | 0.28KB | ▼ 85.53% |
static/img/platforms.png | 10.24KB | 4.08KB | ▼ 60.12% |