84% trustmary

Code Review | Review & testimonial widgets

WordPress plugin Review & testimonial widgets scored84%from 54 tests.

About plugin

  • Plugin page: trustmary
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 12, 2022
  • Latest release: Oct 5, 2023
  • Number of updates: 7
  • Update frequency: every 54.7 days
  • Top authors: trustmary (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /1,254 total downloads

Benchmarks

Plugin footprint 83% from 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.14MB] [CPU: ▼1.47ms] Passed 4 tests

Server-side resources used by Review & testimonial widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1341.40 ▲0.20
Dashboard /wp-admin3.45 ▲0.1449.25 ▼4.74
Posts /wp-admin/edit.php3.56 ▲0.2052.13 ▲5.09
Add New Post /wp-admin/post-new.php6.05 ▲0.1696.47 ▼6.42
Media Library /wp-admin/upload.php3.37 ▲0.1442.18 ▲5.40
Settings /wp-admin/admin.php?page=trustmary-settings3.3434.48
Gather reviews /wp-admin/admin.php?page=trustmary-reviews3.1627.47
Experiments /wp-admin/admin.php?page=trustmary-experiments3.1627.34
Dashboard /wp-admin/admin.php?page=trustmary-dashboard3.3433.59
Popups /wp-admin/admin.php?page=trustmary-popups3.1625.10
Inline widgets /wp-admin/admin.php?page=trustmary-inline3.1625.15

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Review & testimonial widgets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8714.71 ▲0.061.64 ▲0.1143.77 ▲4.34
Dashboard /wp-admin2,242 ▲655.57 ▼0.0187.81 ▼7.9671.33 ▲31.36
Posts /wp-admin/edit.php2,162 ▲621.98 ▼0.0333.72 ▼0.1135.00 ▼1.32
Add New Post /wp-admin/post-new.php1,731 ▲20322.12 ▼0.61684.81 ▲13.1749.01 ▼9.59
Media Library /wp-admin/upload.php1,462 ▲654.14 ▲0.0198.49 ▼18.6375.77 ▲28.43
Settings /wp-admin/admin.php?page=trustmary-settings9182.0424.2928.47
Gather reviews /wp-admin/admin.php?page=trustmary-reviews9182.0423.9722.42
Experiments /wp-admin/admin.php?page=trustmary-experiments9242.0425.1126.34
Dashboard /wp-admin/admin.php?page=trustmary-dashboard8441.9926.0427.79
Popups /wp-admin/admin.php?page=trustmary-popups9212.0127.5727.18
Inline widgets /wp-admin/admin.php?page=trustmary-inline9182.0429.9525.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 6× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/trustmary/trustmary.php
    • > /wp-content/plugins/trustmary/includes/connect.php
    • > /wp-content/plugins/trustmary/includes/settings.php
    • > /wp-content/plugins/trustmary/includes/helper.php
    • > /wp-content/plugins/trustmary/includes/shortcodes.php
    • > /wp-content/plugins/trustmary/includes/pages.php

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: reviews, star ratings, review slider, testimonials, testimonial slider

trustmary/trustmary.php 92% from 13 tests

The main file in "Review & testimonial widgets" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin599 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7120309549
JavaScript15023
CSS12019
SVG1008

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.00
▷ Minimum class complexity3.00
▷ Maximum class complexity15.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods34
▷ Static methods720.59%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin