84% trusted-shops-easy-integration-for-woocommerce

Code Review | Trusted Shops Easy Integration for WooCommerce

WordPress plugin Trusted Shops Easy Integration for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: trusted-shops-eas...
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Sep 5, 2022
  • Latest release: Jul 25, 2023
  • Number of updates: 11
  • Update frequency: every 31.6 days
  • Top authors: vendidero (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

5,000+ active /21,805 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.73ms] Passed 4 tests

A check of server-side resources used by Trusted Shops Easy Integration for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.49 ▼5.79
Dashboard /wp-admin3.31 ▲0.0049.39 ▼2.07
Posts /wp-admin/edit.php3.36 ▲0.0049.92 ▼0.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.45 ▲2.34
Media Library /wp-admin/upload.php3.23 ▲0.0035.54 ▼2.09

Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 97 new files
Database: no new tables, 7 new options
New WordPress options
ts_easy_integration_version
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Trusted Shops Easy Integration for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.72 ▲0.101.71 ▼0.2740.42 ▼6.69
Dashboard /wp-admin2,195 ▲155.62 ▼0.0492.40 ▼8.0741.07 ▼1.05
Posts /wp-admin/edit.php2,079 ▼212.01 ▲0.0735.11 ▼1.3634.12 ▼1.45
Add New Post /wp-admin/post-new.php1,526 ▼223.64 ▲0.58650.18 ▼7.1656.28 ▲1.69
Media Library /wp-admin/upload.php1,403 ▼04.23 ▼0.1297.65 ▼2.3143.61 ▲0.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% 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 50% 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 fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(wp-content/plugins/trusted-shops-easy-integration-for-woocommerce/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php): failed to open stream: No such file or directory in wp-content/plugins/trusted-shops-easy-integration-for-woocommerce/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Automattic\\Jetpack\\Autoloader\\jpa7a3e8752713c32bd5690fafec0f6861\\wp_normalize_path() in wp-content/plugins/trusted-shops-easy-integration-for-woocommerce/vendor/jetpack-autoloader/class-path-processor.php:73
    • > PHP Fatal error
      Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/trusted-shops-easy-integration-for-woocommerce/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php:29
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/trusted-shops-easy-integration-for-woocommerce/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php' (include_path='.:/usr/share/php') in wp-content/plugins/trusted-shops-easy-integration-for-woocommerce/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
8 plugin tags: trusted shops, woocommerce, badge, business reviews, integration...

trusted-shops-easy-integration-for-woocommerce/trusted-shops-easy-integration-for-woocommerce.php Passed 13 tests

The main file in "Trusted Shops Easy Integration for WooCommerce" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
47 characters long description:
Trusted Shops Easy Integration for WooCommerce.

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
No dangerous file extensions were detected5,593 lines of code in 89 files:
LanguageFilesBlank linesComment linesLines of code
PHP611,2802,5224,546
TypeScript22781663
PO File35151305
JSON10068
XML10010
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity16.16
▷ Minimum class complexity1.00
▷ Maximum class complexity120.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces8
Interfaces1
Traits0
Classes48
▷ Abstract classes00.00%
▷ Concrete classes48100.00%
▷ Final classes00.00%
Methods348
▷ Static methods18653.45%
▷ Public methods28682.18%
▷ Protected methods267.47%
▷ Private methods3610.34%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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
No PNG files were detected