Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.68ms] Passed 4 tests
A check of server-side resources used by Widgets for Thumbtack Reviews
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 45.39 ▲5.21 |
Dashboard /wp-admin | 3.43 ▲0.13 | 49.66 ▲0.17 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 51.04 ▼1.46 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 82.54 ▼14.40 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 41.44 ▲4.98 |
Server storage [IO: ▲3.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 131 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_trustindex_thumbtack_reviews |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
trustindex-thumbtack-active |
trustindex-thumbtack-version |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Widgets for Thumbtack Reviews
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲47 | 14.66 ▼0.04 | 1.72 ▲0.04 | 46.11 ▼4.49 |
Dashboard /wp-admin | 2,214 ▲40 | 5.59 ▼0.00 | 94.37 ▲4.88 | 72.48 ▲32.37 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 1.99 ▲0.03 | 38.92 ▼3.41 | 35.15 ▲1.08 |
Add New Post /wp-admin/post-new.php | 6,379 ▲4,853 | 27.84 ▲5.01 | 942.48 ▲266.29 | 40.86 ▼32.40 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.18 ▲0.07 | 100.24 ▼14.49 | 74.15 ▲25.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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 items
- 11× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/widgets-for-thumbtack-reviews/tabs/setup_trustindex_join.php
- > /wp-content/plugins/widgets-for-thumbtack-reviews/settings.php
- > /wp-content/plugins/widgets-for-thumbtack-reviews/tabs/my_reviews.php
- > /wp-content/plugins/widgets-for-thumbtack-reviews/tabs/setup_no_reg_header.php
- > /wp-content/plugins/widgets-for-thumbtack-reviews/tabs/setup_trustindex.php
- > /wp-content/plugins/widgets-for-thumbtack-reviews/widgets-for-thumbtack-reviews.php
- > /wp-content/plugins/widgets-for-thumbtack-reviews/tabs/feature_request.php
- > /wp-content/plugins/widgets-for-thumbtack-reviews/trustindex-thumbtack-widget.class.php
- > /wp-content/plugins/widgets-for-thumbtack-reviews/tabs/rate.php
- > /wp-content/plugins/widgets-for-thumbtack-reviews/tabs/advanced.php
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_thumbtack' not found in wp-content/plugins/widgets-for-thumbtack-reviews/tabs/demo_widgets.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/widgets-for-thumbtack-reviews/include/troubleshooting.php:3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/widgets-for-thumbtack-reviews/include/activate.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_thumbtack' not found in wp-content/plugins/widgets-for-thumbtack-reviews/tabs/_get_more_customers.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/widgets-for-thumbtack-reviews/tabs/setup_no_reg.php:1
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_thumbtack' not found in wp-content/plugins/widgets-for-thumbtack-reviews/tabs/setup_no_reg_platform.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/widgets-for-thumbtack-reviews/include/schema.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/widgets-for-thumbtack-reviews/uninstall.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/widgets-for-thumbtack-reviews/include/uninstall.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/widgets-for-thumbtack-reviews/include/activate.php on line 2
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
widgets-for-thumbtack-reviews/widgets-for-thumbtack-reviews.php Passed 13 tests
"Widgets for Thumbtack Reviews" version 11.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
120 characters long description:
Embed Thumbtack reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Thumbtack reviews.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected10,475 lines of code in 38 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 | 4 | 2 | 0 | 61 |
JSON | 1 | 0 | 0 | 52 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
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
Often times overlooked, PNG files can occupy unnecessary space in 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/no.png | 1.92KB | 0.28KB | ▼ 85.53% |
static/img/yes.png | 1.91KB | 0.25KB | ▼ 87.08% |
static/img/trustindex-sign-logo.png | 3.34KB | 0.59KB | ▼ 82.47% |
static/img/platforms.png | 10.24KB | 4.08KB | ▼ 60.12% |