Benchmarks
Plugin footprint 65% 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: ▲0.69MB] [CPU: ▼3.44ms] Passed 4 tests
This is a short check of server-side resources used by Trust Reviews plugin for Google, Tripadvisor, Yelp, Airbnb and other platforms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.33 ▲0.59 | 47.31 ▼4.56 |
Dashboard /wp-admin | 4.28 ▲0.72 | 60.67 ▲3.04 |
Posts /wp-admin/edit.php | 4.40 ▲0.72 | 54.70 ▲2.88 |
Add New Post /wp-admin/post-new.php | 6.88 ▲0.74 | 92.59 ▼15.13 |
Media Library /wp-admin/upload.php | 4.20 ▲0.71 | 43.14 ▲4.90 |
Settings /wp-admin/admin.php?page=trp-settings | 4.20 | 292.95 |
Support /wp-admin/admin.php?page=trp-support | 4.18 | 39.03 |
Builder /wp-admin/admin.php?page=trp-builder | 4.19 | 46.58 |
Reviews /wp-admin/edit.php?post_type=trp_feed | 4.26 | 47.36 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 64 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_trp_business |
wp_trp_review |
New WordPress options |
---|
trp_active |
theysaidso_admin_options |
db_upgraded |
widget_trp_widget |
trp_version |
widget_recent-posts |
can_compress_scripts |
trp_auth_code |
widget_theysaidso_widget |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Trust Reviews plugin for Google, Tripadvisor, Yelp, Airbnb and other platforms
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲84 | 14.29 ▼0.01 | 2.04 ▲0.05 | 44.65 ▼5.45 |
Dashboard /wp-admin | 2,231 ▲54 | 5.68 ▲0.00 | 85.78 ▼3.77 | 80.32 ▲32.02 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.46 ▲0.41 | 35.20 ▼6.17 | 37.00 ▼1.61 |
Add New Post /wp-admin/post-new.php | 1,570 ▲44 | 23.11 ▲5.58 | 656.34 ▲8.45 | 34.07 ▼22.72 |
Media Library /wp-admin/upload.php | 1,511 ▲111 | 4.35 ▲0.07 | 99.96 ▼12.35 | 70.99 ▲23.10 |
Settings /wp-admin/admin.php?page=trp-settings | 1,163 | 1.96 | 26.11 | 34.82 |
Support /wp-admin/admin.php?page=trp-support | 1,314 | 1.95 | 28.15 | 56.54 |
Builder /wp-admin/admin.php?page=trp-builder | 1,769 | 3.42 | 48.92 | 76.76 |
Reviews /wp-admin/edit.php?post_type=trp_feed | 1,233 | 2.29 | 32.19 | 34.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_trp_review
- wp_trp_business
- Zombie WordPress options were found after uninstall: 11 options
- widget_recent-comments
- widget_recent-posts
- trp_version
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_trp_widget
- trp_active
- trp_is_multisite
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/trust-reviews/includes/support-facebook.php
- > /wp-content/plugins/trust-reviews/includes/support-google.php
- > /wp-content/plugins/trust-reviews/includes/support-yelp.php
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant TRP_PLUGIN_URL - assumed 'TRP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/trust-reviews/includes/support-google.php on line 27
- > PHP Warning
Use of undefined constant TRP_PLUGIN_URL - assumed 'TRP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/trust-reviews/includes/support-google.php on line 84
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/trust-reviews/includes/class-feed-widget.php:7
- > PHP Warning
Use of undefined constant TRP_PLUGIN_URL - assumed 'TRP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/trust-reviews/includes/support-google.php on line 111
- > PHP Warning
Use of undefined constant TRP_PLUGIN_URL - assumed 'TRP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/trust-reviews/includes/support-google.php on line 55
- > PHP Warning
Use of undefined constant TRP_PLUGIN_URL - assumed 'TRP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/trust-reviews/includes/support-google.php on line 65
- > PHP Warning
Use of undefined constant TRP_PLUGIN_URL - assumed 'TRP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/trust-reviews/includes/support-google.php on line 64
- > PHP Warning
Use of undefined constant TRP_PLUGIN_URL - assumed 'TRP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/trust-reviews/includes/support-google.php on line 36
- > PHP Warning
Use of undefined constant TRP_PLUGIN_URL - assumed 'TRP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/trust-reviews/includes/support-google.php on line 120
- > PHP Warning
Use of undefined constant TRP_PLUGIN_URL - assumed 'TRP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/trust-reviews/includes/support-google.php on line 93
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% 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
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
trust-reviews/trp.php 77% from 13 tests
This is the main PHP file of "Trust Reviews plugin for Google, Tripadvisor, Yelp, Airbnb and other platforms" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)
- Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 78 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("trust-reviews.php" instead of "trp.php")
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
Good job! No executable or dangerous file extensions detected4,451 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 574 | 17 | 2,897 |
CSS | 4 | 153 | 20 | 868 |
JavaScript | 6 | 109 | 304 | 683 |
SVG | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 16.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 1 | 3.85% |
Methods | 163 | |
▷ Static methods | 1 | 0.61% |
▷ Public methods | 115 | 70.55% |
▷ Protected methods | 2 | 1.23% |
▷ Private methods | 46 | 28.22% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 12 | |
▷ Global constants | 10 | 83.33% |
▷ Class constants | 2 | 16.67% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 0.50MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/menu_icon2.png | 0.53KB | 0.55KB | 0.00% |
assets/img/google_key_7.png | 36.49KB | 17.80KB | ▼ 51.23% |
assets/img/google_placeid_2.png | 34.97KB | 16.15KB | ▼ 53.83% |
assets/img/logo.png | 2.50KB | 1.88KB | ▼ 24.64% |
assets/img/logo-tp.png | 2.50KB | 1.88KB | ▼ 24.64% |