73% userback

Code Review | Userback

WordPress plugin Userback scored73%from 54 tests.

About plugin

  • Plugin page: userback
  • Plugin version: 1.0.14
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 13, 2020
  • Latest release: Oct 26, 2023
  • Number of updates: 29
  • Update frequency: every 46.6 days
  • Top authors: userback (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /22,634 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.81ms] Passed 4 tests

Analyzing server-side resources used by Userback
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.58 ▼8.72
Dashboard /wp-admin3.34 ▲0.0441.97 ▼6.29
Posts /wp-admin/edit.php3.40 ▲0.0442.92 ▼3.80
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.61 ▼8.42
Media Library /wp-admin/upload.php3.27 ▲0.0437.29 ▲0.80

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables
wp_userback
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Userback
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.56 ▲0.151.60 ▼0.0644.78 ▲3.72
Dashboard /wp-admin2,223 ▲455.62 ▼0.0986.27 ▼9.8776.70 ▲38.40
Posts /wp-admin/edit.php2,128 ▲282.05 ▲0.1038.46 ▲2.5834.15 ▼2.76
Add New Post /wp-admin/post-new.php1,553 ▲2718.14 ▼5.43702.46 ▲4.7965.95 ▲9.85
Media Library /wp-admin/upload.php1,425 ▲314.22 ▲0.04112.02 ▲18.4568.13 ▲24.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_userback
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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
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
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 plugin_basename() in wp-content/plugins/userback/index.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/userback/admin/overview.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #8 (Integrate Slack, Microsoft Teams or your project management system.) image required
The official readme.txt might help

userback/index.php 92% from 13 tests

The main PHP script in "Userback" version 1.0.14 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("userback.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin341 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24541224
CSS11061
JavaScript119456

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.64
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.68MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png0.36KB0.44KB0.00%
assets/screenshot-2.png170.19KB62.35KB▼ 63.36%
assets/screenshot-4.png206.36KB70.80KB▼ 65.69%
assets/icon-256x256.png5.30KB3.67KB▼ 30.77%
assets/code_sample.png65.21KB24.25KB▼ 62.82%