84% utilitygenius-widget

Code Review | Utility Genius Widget

WordPress plugin Utility Genius Widget scored84%from 54 tests.

About plugin

  • Plugin page: utilitygenius-widget
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.0
  • WordPress version: 6.3.1
  • First release: Jun 9, 2022
  • Latest release: Jun 13, 2022
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: encentivkyle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /261 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Utility Genius Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.37 ▼1.50
Dashboard /wp-admin3.31 ▼0.0343.78 ▼14.95
Posts /wp-admin/edit.php3.37 ▲0.0146.44 ▲2.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.08 ▼12.09
Media Library /wp-admin/upload.php3.24 ▲0.0136.76 ▲2.98

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Utility Genius Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.31 ▼0.231.59 ▼0.0237.63 ▼1.63
Dashboard /wp-admin2,195 ▲145.62 ▼0.0990.19 ▼8.7940.97 ▼4.45
Posts /wp-admin/edit.php2,100 ▲31.98 ▲0.0339.80 ▲4.9139.55 ▲2.71
Add New Post /wp-admin/post-new.php6,366 ▲4,81728.43 ▲10.46924.40 ▲284.4964.34 ▼8.27
Media Library /wp-admin/upload.php1,400 ▲34.16 ▼0.0594.45 ▼6.7141.34 ▼0.28

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/utilitygenius-widget/utility-genius-widget.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
1 plugin tags: block

utilitygenius-widget/utility-genius-widget.php 85% from 13 tests

Analyzing the main PHP file in "Utility Genius Widget" version 1.0.2
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("utilitygenius-widget.php" instead of "utility-genius-widget.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected28,962 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JSON40028,565
JavaScript53874218
SVG101152
Sass23019
PHP21206
CSS2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin