Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.12MB] [CPU: ▲1.05ms] Passed 4 tests
Analyzing server-side resources used by Widgets for Reviews & Recommendations
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.59 ▲1.12 | 45.46 ▲4.87 |
Dashboard /wp-admin | 4.46 ▲1.11 | 51.60 ▼9.49 |
Posts /wp-admin/edit.php | 4.50 ▲1.14 | 58.55 ▲11.07 |
Add New Post /wp-admin/post-new.php | 7.11 ▲1.21 | 96.01 ▼2.24 |
Media Library /wp-admin/upload.php | 4.34 ▲1.10 | 47.11 ▲15.28 |
Server storage [IO: ▲6.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 264 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_trustindex_facebook_reviews |
New WordPress options |
---|
can_compress_scripts |
trustindex-facebook-version |
widget_recent-posts |
theysaidso_admin_options |
trustindex-facebook-active |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Widgets for Reviews & Recommendations: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲47 | 14.06 ▼0.25 | 1.88 ▼0.12 | 41.16 ▼4.79 |
Dashboard /wp-admin | 2,202 ▲27 | 5.54 ▼0.17 | 97.42 ▼17.00 | 67.46 ▲23.29 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 1.97 ▼0.04 | 39.39 ▼0.06 | 34.51 ▲1.56 |
Add New Post /wp-admin/post-new.php | 6,426 ▲4,899 | 29.29 ▲6.17 | 897.41 ▲226.77 | 38.43 ▼17.47 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.18 ▼0.06 | 95.38 ▼1.45 | 65.27 ▲25.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
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
Good news, no errors were detected
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
Please fix the following
- 22× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/trunk/settings.php
- > /wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/tabs/setup_no_reg_header.php
- > /wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/tabs/get_reviews.php
- > /wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/trunk/tabs/setup_trustindex_join.php
- > /wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/trunk/tabs/advanced.php
- > /wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/trunk/tabs/feature_request.php
- > /wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/trunk/tabs/rate.php
- > /wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/tabs/advanced.php
- > /wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/tabs/rate.php
- > /wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/trunk/free-facebook-reviews-and-recommendations-widgets.php
- 24× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_facebook' not found in wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/trunk/tabs/setup_no_reg_platform.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/trunk/tabs/setup_no_reg.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/tabs/setup_no_reg.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/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/free-facebook-reviews-and-recommendations-widgets/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/free-facebook-reviews-and-recommendations-widgets/include/activate.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/include/troubleshooting.php:3
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_facebook' not found in wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/tabs/_get_more_customers.php:1
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_facebook' not found in wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/trunk/tabs/_get_more_customers.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/free-facebook-reviews-and-recommendations-widgets/trunk/uninstall.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
free-facebook-reviews-and-recommendations-widgets/free-facebook-reviews-and-recommendations-widgets.php Passed 13 tests
The main PHP file in "Widgets for Reviews & Recommendations" ver. 11.1 adds more information about the plugin and also serves as the entry point for this plugin
126 characters long description:
Embed Facebook reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Facebook recommendations.
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
There were no executable files found in this plugin10,503 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 43 | 38 | 9,268 |
JavaScript | 7 | 316 | 177 | 1,059 |
CSS | 4 | 13 | 0 | 63 |
SVG | 4 | 2 | 0 | 61 |
JSON | 1 | 0 | 0 | 52 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued 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 | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 196 | |
▷ Static methods | 12 | 6.12% |
▷ Public methods | 192 | 97.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 2.04% |
Functions | 34 | |
▷ Named functions | 16 | 47.06% |
▷ Anonymous functions | 18 | 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
8 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/static/img/platforms.png | 10.24KB | 4.08KB | ▼ 60.12% |
trunk/static/img/trustindex-sign-logo.png | 3.34KB | 0.59KB | ▼ 82.47% |
static/img/no.png | 1.92KB | 0.28KB | ▼ 85.53% |
static/img/trustindex-sign-logo.png | 3.34KB | 0.59KB | ▼ 82.47% |
trunk/static/img/no.png | 1.92KB | 0.28KB | ▼ 85.53% |