Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.13MB] [CPU: ▲4.94ms] Passed 4 tests
Server-side resources used by Widgets for Yelp Reviews
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.59 ▲1.12 | 52.05 ▲6.99 |
Dashboard /wp-admin | 4.46 ▲1.15 | 52.15 ▲0.95 |
Posts /wp-admin/edit.php | 4.49 ▲1.13 | 58.97 ▲11.06 |
Add New Post /wp-admin/post-new.php | 7.10 ▲1.21 | 94.50 ▲0.77 |
Media Library /wp-admin/upload.php | 4.34 ▲1.10 | 49.48 ▲14.83 |
Server storage [IO: ▲3.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 131 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_trustindex_yelp_reviews |
New WordPress options |
---|
trustindex-yelp-version |
trustindex-yelp-active |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Widgets for Yelp Reviews
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲47 | 14.75 ▲0.48 | 1.81 ▼0.24 | 36.81 ▼6.38 |
Dashboard /wp-admin | 2,202 ▲28 | 5.60 ▼0.08 | 95.20 ▼35.21 | 78.06 ▲34.89 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 1.97 ▼0.04 | 38.27 ▼3.10 | 35.37 ▲1.58 |
Add New Post /wp-admin/post-new.php | 6,379 ▲4,853 | 27.63 ▲4.15 | 934.57 ▲264.55 | 37.59 ▼24.69 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.12 ▼0.05 | 99.83 ▲5.70 | 80.14 ▲36.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 11× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/reviews-widgets-for-yelp/tabs/setup_trustindex.php
- > /wp-content/plugins/reviews-widgets-for-yelp/trustindex-yelp-widget.class.php
- > /wp-content/plugins/reviews-widgets-for-yelp/tabs/get_reviews.php
- > /wp-content/plugins/reviews-widgets-for-yelp/settings.php
- > /wp-content/plugins/reviews-widgets-for-yelp/tabs/setup_trustindex_join.php
- > /wp-content/plugins/reviews-widgets-for-yelp/tabs/feature_request.php
- > /wp-content/plugins/reviews-widgets-for-yelp/reviews-widgets-for-yelp.php
- > /wp-content/plugins/reviews-widgets-for-yelp/tabs/setup_no_reg_header.php
- > /wp-content/plugins/reviews-widgets-for-yelp/tabs/rate.php
- > /wp-content/plugins/reviews-widgets-for-yelp/tabs/advanced.php
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/reviews-widgets-for-yelp/include/uninstall.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/reviews-widgets-for-yelp/include/activate.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_yelp' not found in wp-content/plugins/reviews-widgets-for-yelp/tabs/demo_widgets.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/reviews-widgets-for-yelp/include/troubleshooting.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/reviews-widgets-for-yelp/uninstall.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/reviews-widgets-for-yelp/include/schema.php:4
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_yelp' not found in wp-content/plugins/reviews-widgets-for-yelp/tabs/_rate_us_feedback.php:2
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_yelp' not found in wp-content/plugins/reviews-widgets-for-yelp/tabs/setup_no_reg_platform.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/reviews-widgets-for-yelp/tabs/setup_no_reg.php:1
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/reviews-widgets-for-yelp/include/activate.php on line 2
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: reviews, yelp reviews, review, customer review, widget...
reviews-widgets-for-yelp/reviews-widgets-for-yelp.php Passed 13 tests
The main PHP script in "Widgets for Yelp Reviews" version 11.1 is automatically included on every request by WordPress
110 characters long description:
Embed Yelp reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Yelp reviews.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous 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
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
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
PNG files should be compressed to save space and 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/platforms.png | 10.24KB | 4.08KB | ▼ 60.12% |
static/img/yes.png | 1.91KB | 0.25KB | ▼ 87.08% |
static/img/no.png | 1.92KB | 0.28KB | ▼ 85.53% |
static/img/trustindex-sign-logo.png | 3.34KB | 0.59KB | ▼ 82.47% |