94% trustify-widgets

Code Review | Trustify Widgets

WordPress plugin Trustify Widgets scored 94% from 54 tests.

About plugin

  • Plugin page: trustify-widgets
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.9.2
  • First release: Oct 27, 2021
  • Latest release: Oct 28, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: trustify (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 88 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼314.35ms] Passed 4 tests

Server-side resources used by Trustify Widgets
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0659.09 ▼0.37
Dashboard /wp-admin3.45 ▲0.0440.61 ▼0.42
Posts /wp-admin/edit.php3.67 ▲0.0444.06 ▲1.29
Add New Post /wp-admin/post-new.php6.91 ▼0.0697.75 ▼1,256.66
Media Library /wp-admin/upload.php3.33 ▲0.0327.69 ▲0.04
Trustify Settings /wp-admin/options-general.php?page=trustify-widgets3.3024.49

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Trustify Widgets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,769 ▲1515.98 ▲0.295.67 ▼1.452.42 ▲0.19
Dashboard /wp-admin2,895 ▲375.99 ▼0.25179.81 ▲42.74157.40 ▲0.97
Posts /wp-admin/edit.php2,696 ▲23.24 ▼0.0065.41 ▼0.94141.51 ▼0.82
Add New Post /wp-admin/post-new.php1,754 ▼1921.70 ▲0.53441.21 ▼57.88208.97 ▼1.29
Media Library /wp-admin/upload.php1,699 ▲45.45 ▼0.15181.86 ▲22.71180.76 ▼40.38
Trustify Settings /wp-admin/options-general.php?page=trustify-widgets1,0402.4353.87137.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/trustify-widgets/trustify-widgets.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
4 plugin tags: ratings, widgets, reviews, trustify

trustify-widgets/trustify-widgets.php 92% from 13 tests

"Trustify Widgets" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Git Repository: A Git repository was detected inside this plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin130 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12150130

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected