84% usetiful-digital-adoption-platform

Code Review | Usetiful - Digital Adoption Platform

WordPress plugin Usetiful - Digital Adoption Platform scored84%from 54 tests.

About plugin

  • Plugin page: usetiful-digital-...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 9, 2022
  • Latest release: Aug 7, 2023
  • Number of updates: 19
  • Update frequency: every 22.3 days
  • Top authors: meghadhebariwala (73.68%)usetiful (26.32%)janjanicek (10.53%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,813 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.63ms] Passed 4 tests

An overview of server-side resources used by Usetiful - Digital Adoption Platform
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0637.17 ▼3.29
Dashboard /wp-admin3.37 ▲0.0246.27 ▼12.68
Posts /wp-admin/edit.php3.42 ▲0.0647.11 ▲1.82
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.89 ▼8.35
Media Library /wp-admin/upload.php3.29 ▲0.0640.17 ▲4.40

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Usetiful - Digital Adoption Platform: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲5113.33 ▼1.061.62 ▼0.2041.58 ▼0.37
Dashboard /wp-admin2,231 ▲405.01 ▲0.1296.07 ▼5.2563.38 ▲19.99
Posts /wp-admin/edit.php2,111 ▲252.06 ▲0.0239.15 ▲2.1833.04 ▼2.74
Add New Post /wp-admin/post-new.php1,539 ▲1923.17 ▲0.07663.76 ▼13.7950.57 ▼8.16
Media Library /wp-admin/upload.php1,420 ▲384.35 ▲0.1595.69 ▼1.9575.38 ▲33.37

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 were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/usetiful-digital-adoption-platform/admin/tag-setting.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/usetiful-digital-adoption-platform/admin/setting.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: guide, tooltip, walkthrough, ux, onboarding...

usetiful-digital-adoption-platform/usetiful.php 85% from 13 tests

This is the main PHP file of "Usetiful - Digital Adoption Platform" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("usetiful-digital-adoption-platform.php" instead of "usetiful.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected537 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP386122358
JavaScript11429140
CSS12125
SVG30014

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity4.36
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.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
7 PNG files occupy 0.39MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin_icon_white.png1.73KB0.95KB▼ 45.13%
assets/screenshot-2.png38.61KB16.00KB▼ 58.57%
assets/banner-1544x500.png148.56KB57.44KB▼ 61.34%
assets/screenshot-3.png74.14KB25.76KB▼ 65.26%
assets/screenshot-1.png87.27KB30.85KB▼ 64.65%