68% trustprofile

Code Review | TrustProfile and reviews for WordPress

WordPress plugin TrustProfile and reviews for WordPress scored68%from 54 tests.

About plugin

  • Plugin page: trustprofile
  • Plugin version: 3.31
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4
  • WordPress version: 6.3.1
  • First release: Jun 5, 2020
  • Latest release: Nov 23, 2023
  • Number of updates: 81
  • Update frequency: every 15.6 days
  • Top authors: kiboit (91.36%)trustprofile (9.88%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /4,812 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼0.03ms] Passed 4 tests

This is a short check of server-side resources used by TrustProfile and reviews for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2142.95 ▲7.63
Dashboard /wp-admin3.58 ▲0.2850.72 ▲0.91
Posts /wp-admin/edit.php3.64 ▲0.2752.98 ▲1.96
Add New Post /wp-admin/post-new.php6.12 ▲0.2389.06 ▼2.11
Media Library /wp-admin/upload.php3.45 ▲0.2139.61 ▼0.88
TrustProfile /wp-admin/options-general.php?page=trustprofile3.5037.31

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: 1 new table, 7 new options
New tables
wp_trustprofile_invite_error
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
trustprofile_last_notice_version
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for TrustProfile and reviews for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲5214.34 ▼0.371.83 ▲0.3442.58 ▲3.20
Dashboard /wp-admin2,204 ▲295.62 ▲0.0091.95 ▼17.1340.61 ▼2.56
Posts /wp-admin/edit.php2,109 ▲61.99 ▲0.0238.63 ▼0.9336.50 ▼2.76
Add New Post /wp-admin/post-new.php1,534 ▲823.01 ▼0.13638.97 ▲37.9850.72 ▼5.08
Media Library /wp-admin/upload.php1,409 ▲94.18 ▲0.0195.69 ▼5.4545.89 ▲0.44
TrustProfile /wp-admin/options-general.php?page=trustprofile1,1041.9129.3431.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_trustprofile_invite_error
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • trustprofile_last_notice_version
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/trustprofile/common/templates/woocommerce_review_sync_status.php
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function getDashboardDomain() on null in wp-content/plugins/trustprofile/common/templates/sidebar.php:1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/trustprofile/common/templates/woocommerce_review_sync_status.php on line 2
    • > PHP Notice
      Undefined variable: plugin in wp-content/plugins/trustprofile/common/templates/sidebar.php on line 1
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/trustprofile/common/templates/woocommerce_review_sync_status.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Valued\\WordPress\\register_activation_hook() in wp-content/plugins/trustprofile/common/src/BasePlugin.php:36
    • > PHP Fatal error
      Uncaught Error: Call to a member function getName() on null in wp-content/plugins/trustprofile/common/templates/options.php:8
    • > PHP Notice
      Undefined variable: details in wp-content/plugins/trustprofile/common/templates/woocommerce_review_sync_status.php on line 2
    • > PHP Notice
      Undefined variable: plugin in wp-content/plugins/trustprofile/common/templates/options.php on line 8
    • > PHP Notice
      Undefined variable: details in wp-content/plugins/trustprofile/common/templates/woocommerce_review_sync_status.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/trustprofile/common/templates/woocommerce_review_sync_status.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: profile, trust, sidebar, trustprofile, reviews

trustprofile/trustprofile.php Passed 13 tests

The main PHP file in "TrustProfile and reviews for WordPress" ver. 3.31 adds more information about the plugin and also serves as the entry point for this plugin
114 characters long description:
Collect reviews and earn trust badges to show on your webshop. Don't keep losing revenue. Show you can be trusted!

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
Success! There were no dangerous files found in this plugin1,950 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP16221311,597
PO File2105220347
JavaScript1006

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.67
▷ Minimum class complexity1.00
▷ Maximum class complexity76.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods107
▷ Static methods21.87%
▷ Public methods6358.88%
▷ Protected methods21.87%
▷ Private methods4239.25%
Functions12
▷ Named functions00.00%
▷ Anonymous functions12100.00%
Constants9
▷ Global constants111.11%
▷ Class constants888.89%
▷ Public constants787.50%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected