84% handsup

Code Review | handsUP!

WordPress plugin handsUP! scored 84% from 54 tests.

About plugin

  • Plugin page: handsup
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-3.9.1
  • WordPress version: 5.8.1
  • First release: Jul 29, 2014
  • Latest release: Aug 21, 2014
  • Number of updates: 7
  • Update frequency: every 3.3 days
  • Top authors: b0rnee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 626 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼140.27ms] Passed 4 tests

This is a short check of server-side resources used by handsUP!
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1934.95 ▲7.94
Dashboard /wp-admin3.13 ▲0.0745.88 ▼4.63
Posts /wp-admin/edit.php3.18 ▲0.0745.24 ▼1.70
Add New Post /wp-admin/post-new.php5.49 ▲0.0695.29 ▼550.88
Media Library /wp-admin/upload.php3.07 ▲0.0636.08 ▼3.87

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 16 new options
New WordPress options
handsUP_opt_swipe_left
handsUP_opt_swipe
handsUP_opt_corner_banner
handsUP_opt_loadingBar_color
handsUP_opt_scroll
handsUP_opt_leapCursor
handsUP_opt_scroll_active
handsUP_opt_refresh_time
handsUP_opt_tutorial
handsUP_opt_corner_distance
...

Browser metrics Passed 4 tests

A check of browser resources used by handsUP!
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,826 ▲18917.63 ▲2.0949.62 ▲39.3272.28 ▲21.43
Dashboard /wp-admin2,988 ▲575.89 ▼0.15145.51 ▼7.45124.70 ▲9.93
Posts /wp-admin/edit.php2,754 ▲152.70 ▲0.0167.90 ▲2.59102.37 ▲4.87
Add New Post /wp-admin/post-new.php1,693 ▲1018.42 ▼0.43393.78 ▼5.13117.81 ▲1.52
Media Library /wp-admin/upload.php1,822 ▲155.04 ▲0.00156.02 ▼18.51120.96 ▼15.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 16 options
    • handsUP_opt_scroll_active
    • handsUP_opt_swipe
    • handsUP_opt_cookie_life
    • handsUP_opt_leapCursor_interaction
    • handsUP_opt_leapCursor_color
    • handsUP_opt_refresh
    • handsUP_opt_tutorial
    • handsUP_opt_swipe_left
    • handsUP_opt_leapCursor_size
    • handsUP_opt_scroll
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/handsup/admin/options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/handsup/handsUP.php:58

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (handsUP! Settings.) image not found
The official readme.txt might help

handsup/handsUP.php 92% from 13 tests

The primary PHP file in "handsUP!" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("handsup.php" instead of "handsUP.php")

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
There were no executable files found in this plugin1,479 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript52051881,021
PHP210160406
CSS15052

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/iconCircle.png7.67KB3.67KB▼ 52.14%
img/iconGrabB.png9.53KB4.36KB▼ 54.25%
img/iconUpDown.png7.67KB3.60KB▼ 53.11%
img/iconTilt.png7.78KB3.81KB▼ 50.98%
img/iconGrab.png9.20KB4.36KB▼ 52.62%