Benchmarks
Plugin footprint 83% from 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: ▲1.12MB] [CPU: ▼0.69ms] Passed 4 tests
Server-side resources used by Widgets for Google Reviews
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.59 ▲1.12 | 47.47 ▲3.72 |
Dashboard /wp-admin | 4.46 ▲1.11 | 56.95 ▼6.85 |
Posts /wp-admin/edit.php | 4.49 ▲1.13 | 58.10 ▲11.35 |
Add New Post /wp-admin/post-new.php | 7.10 ▲1.21 | 83.58 ▼11.00 |
Media Library /wp-admin/upload.php | 4.34 ▲1.10 | 44.86 ▲11.72 |
Server storage [IO: ▲3.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 132 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_trustindex_google_reviews |
New WordPress options |
---|
trustindex-google-active |
theysaidso_admin_options |
trustindex-google-version |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Widgets for Google Reviews: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲87 | 14.67 ▲0.50 | 2.09 ▲0.37 | 42.96 ▼5.76 |
Dashboard /wp-admin | 2,199 ▲22 | 5.60 ▲0.07 | 93.03 ▼8.41 | 80.95 ▲37.41 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.00 ▲0.04 | 38.67 ▼4.45 | 35.02 ▼1.81 |
Add New Post /wp-admin/post-new.php | 6,379 ▲4,853 | 27.56 ▲3.90 | 932.79 ▲325.05 | 43.36 ▼11.97 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.13 ▲0.02 | 103.03 ▲4.65 | 82.42 ▲42.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 take a closer look at the following
- 11× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/wp-reviews-plugin-for-google/tabs/setup_trustindex.php
- > /wp-content/plugins/wp-reviews-plugin-for-google/tabs/feature_request.php
- > /wp-content/plugins/wp-reviews-plugin-for-google/settings.php
- > /wp-content/plugins/wp-reviews-plugin-for-google/trustindex-google-widget.class.php
- > /wp-content/plugins/wp-reviews-plugin-for-google/tabs/setup_trustindex_join.php
- > /wp-content/plugins/wp-reviews-plugin-for-google/tabs/my_reviews.php
- > /wp-content/plugins/wp-reviews-plugin-for-google/tabs/get_reviews.php
- > /wp-content/plugins/wp-reviews-plugin-for-google/tabs/setup_no_reg_header.php
- > /wp-content/plugins/wp-reviews-plugin-for-google/wp-reviews-plugin-for-google.php
- > /wp-content/plugins/wp-reviews-plugin-for-google/tabs/advanced.php
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_google' not found in wp-content/plugins/wp-reviews-plugin-for-google/tabs/setup_no_reg_platform.php:1
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_google' not found in wp-content/plugins/wp-reviews-plugin-for-google/tabs/demo_widgets.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-reviews-plugin-for-google/include/schema.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-reviews-plugin-for-google/tabs/setup_no_reg.php:1
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-reviews-plugin-for-google/include/activate.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-reviews-plugin-for-google/uninstall.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-reviews-plugin-for-google/include/activate.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_google' not found in wp-content/plugins/wp-reviews-plugin-for-google/tabs/_get_more_customers.php:1
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_google' not found in wp-content/plugins/wp-reviews-plugin-for-google/tabs/_rate_us_feedback.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/wp-reviews-plugin-for-google/include/troubleshooting.php:3
- > 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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
wp-reviews-plugin-for-google/wp-reviews-plugin-for-google.php Passed 13 tests
"Widgets for Google Reviews" version 11.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
114 characters long description:
Embed Google reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Google reviews.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin10,511 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 43 | 38 | 9,268 |
JavaScript | 7 | 318 | 177 | 1,067 |
CSS | 4 | 13 | 0 | 63 |
SVG | 4 | 2 | 0 | 61 |
JSON | 1 | 0 | 0 | 52 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
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/no.png | 1.92KB | 0.28KB | ▼ 85.53% |
static/img/yes.png | 1.91KB | 0.25KB | ▼ 87.08% |
static/img/platforms.png | 10.24KB | 4.08KB | ▼ 60.12% |
static/img/trustindex-sign-logo.png | 3.34KB | 0.59KB | ▼ 82.47% |