10% usense

Code Review | USense

WordPress plugin USense scored 10% from 54 tests.

About plugin

  • Plugin page: usense
  • Plugin version: 5.8
  • PHP compatiblity: 5.8+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 16, 2021
  • Latest release: Nov 16, 2021
  • Number of updates: 3
  • Update frequency: every 32.4 days
  • Top authors: recosense (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 245 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/usense/index.php+74
    Undefined index: clientId

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

An overview of server-side resources used by USense
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.13 ▼2.73
Dashboard /wp-admin3.31 ▲0.0045.97 ▼3.37
Posts /wp-admin/edit.php3.36 ▲0.0046.58 ▼4.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.38 ▼9.31
Media Library /wp-admin/upload.php3.23 ▲0.0036.11 ▲0.95

Server storage [IO: ▲2.59MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • The plugin illegally modified 2 files (0.00KB) outside of "wp-content/plugins/usense/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/usense/assets/772\303\227250.png"
    • (new file) "wp-content/plugins/usense/assets/icon-128\303\227128.png"
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for USense
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.27 ▼1.094.59 ▲3.0240.11 ▼8.91
Dashboard /wp-admin2,206 ▲185.91 ▲0.02101.10 ▼9.5638.35 ▼1.36
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0538.97 ▼2.6136.11 ▲1.07
Add New Post /wp-admin/post-new.php1,533 ▲523.48 ▲0.37599.67 ▼54.1451.68 ▼1.60
Media Library /wp-admin/upload.php1,388 ▲34.24 ▲0.0696.13 ▼18.4043.33 ▼4.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/usense/index.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #5 (User Persona Widget)
  • Donate link: Invalid URI found ("")
You can take inspiration from this readme.txt

usense/index.php 85% from 13 tests

The principal PHP file in "USense" v. 5.8 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 156 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("usense.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin7,042 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript44081053,854
PHP15161662,217
CSS38221918
Markdown124053

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
26 PNG files occupy 0.93MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/772×250.png164.13KB64.92KB▼ 60.44%
widget-ico.png4.19KB4.04KB▼ 3.52%
assets/screenshot-3.png163.68KB64.49KB▼ 60.60%
assets/Search.png1.21KB0.60KB▼ 50.36%
assets/icon-128×128.png4.19KB4.04KB▼ 3.52%