Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼295.83ms] Passed 4 tests
Server-side resources used by Trustbadge Reviews for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.24 | 57.90 ▲9.51 |
Dashboard /wp-admin | 3.59 ▲0.18 | 33.84 ▲1.35 |
Posts /wp-admin/edit.php | 3.81 ▲0.18 | 38.60 ▲0.54 |
Add New Post /wp-admin/post-new.php | 7.11 ▲0.15 | 92.85 ▼1,186.33 |
Media Library /wp-admin/upload.php | 3.53 ▲0.24 | 24.15 ▲1.14 |
Server storage [IO: ▲1.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 126 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Trustbadge Reviews for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,805 ▲83 | 15.69 ▲0.02 | 6.32 ▲0.80 | 2.62 ▲0.47 |
Dashboard /wp-admin | 2,905 ▲44 | 6.10 ▼0.12 | 114.11 ▼19.97 | 157.35 ▼8.05 |
Posts /wp-admin/edit.php | 2,698 ▲10 | 3.24 ▲0.00 | 64.99 ▼3.74 | 141.54 ▼15.28 |
Add New Post /wp-admin/post-new.php | 1,667 ▲6 | 16.28 ▲0.55 | 400.93 ▼60.45 | 159.39 ▲7.15 |
Media Library /wp-admin/upload.php | 1,708 ▲10 | 5.53 ▼0.02 | 139.73 ▲0.10 | 186.98 ▲0.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/woocommerce-trusted-shops/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-trusted-shops/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function Automattic\\Jetpack\\Autoloader\\jp5e65e593b1f19f655df5439e3ecd3ec5\\wp_normalize_path() in wp-content/plugins/woocommerce-trusted-shops/vendor/jetpack-autoloader/class-path-processor.php:73
- > PHP Warning
require_once(wp-content/plugins/woocommerce-trusted-shops/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-trusted-shops/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WC_TS_Compatibility' not found in wp-content/plugins/woocommerce-trusted-shops/includes/compatibility/class-wc-ts-compatibility-wpml-string-translation.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/woocommerce-trusted-shops/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Too many tags (33 tag instead of maximum 10); only the first 5 tags are used in your directory listing
woocommerce-trusted-shops/woocommerce-trusted-shops.php Passed 13 tests
The main file in "Trustbadge Reviews for WooCommerce" v. 4.0.13 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
Adds Seller and Product Reviews or Trusted Shops Integration to your WooCommerce Shop.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin8,794 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 84 | 1,700 | 2,857 | 5,851 |
PO File | 3 | 532 | 669 | 2,302 |
Sass | 3 | 38 | 0 | 215 |
JavaScript | 2 | 63 | 13 | 203 |
CSS | 6 | 30 | 1 | 163 |
JSON | 1 | 0 | 0 | 60 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 15.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 1 | 1.85% |
▷ Concrete classes | 53 | 98.15% |
▷ Final classes | 1 | 1.89% |
Methods | 430 | |
▷ Static methods | 59 | 13.72% |
▷ Public methods | 362 | 84.19% |
▷ Protected methods | 21 | 4.88% |
▷ Private methods | 47 | 10.93% |
Functions | 20 | |
▷ Named functions | 14 | 70.00% |
▷ Anonymous functions | 6 | 30.00% |
Constants | 10 | |
▷ Global constants | 4 | 40.00% |
▷ Class constants | 6 | 60.00% |
▷ Public constants | 6 | 100.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
11 PNG files occupy 0.46MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ts/ts_trustbadge_trustmark_reviews_fr.png | 43.10KB | 10.51KB | ▼ 75.61% |
assets/images/ts/ts_fr.png | 67.03KB | 26.41KB | ▼ 60.60% |
assets/images/ts/ts_trustbadge_trustmark_reviews_de.png | 43.23KB | 10.64KB | ▼ 75.38% |
assets/images/ts/trusted-shops-badge@2x.png | 56.67KB | 15.90KB | ▼ 71.94% |
assets/images/ts/ts_trustbadge_trustmark-only_en.png | 21.51KB | 7.70KB | ▼ 64.22% |