73% ukl-scroll-to-top

Code Review | ukl scroll up

WordPress plugin ukl scroll up scored73%from 54 tests.

About plugin

  • Plugin page: ukl-scroll-to-top
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 6.3.1
  • First release: Jun 18, 2015
  • Latest release: Jun 18, 2015
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: umme kulsum lucky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /478 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼1.94MB] [CPU: ▼59.27ms] Passed 4 tests

Analyzing server-side resources used by ukl scroll up
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.424.94 ▼37.61
Dashboard /wp-admin2.06 ▼1.245.52 ▼44.69
Posts /wp-admin/edit.php2.06 ▼1.296.13 ▼47.07
Add New Post /wp-admin/post-new.php2.06 ▼3.827.76 ▼107.71
Media Library /wp-admin/upload.php2.06 ▼1.166.58 ▼30.07

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by ukl scroll up
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲14913.49 ▼1.209.83 ▲8.0942.28 ▲0.20
Dashboard /wp-admin2,209 ▲355.63 ▼0.0587.93 ▼4.1740.66 ▼4.00
Posts /wp-admin/edit.php2,114 ▲142.19 ▲0.1239.52 ▲4.6639.29 ▲6.42
Add New Post /wp-admin/post-new.php1,536 ▼423.55 ▲0.48691.54 ▲46.0762.91 ▲3.75
Media Library /wp-admin/upload.php1,417 ▲144.28 ▲0.07109.93 ▲5.0648.03 ▲1.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the lucky-jquery-easing handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 add_action() in wp-content/plugins/ukl-scroll-to-top/ukl-scroll-up.php:16

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Contributors: Contributors not specified
  • Screenshots: Please add an image for screenshot #1 (Installed in demo server.)
The official readme.txt might help

ukl-scroll-to-top/ukl-scroll-up.php 92% from 13 tests

This is the main PHP file of "ukl scroll up" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ukl-scroll-to-top.php" instead of "ukl-scroll-up.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin167 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3979151
PHP1131011
CSS1005

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.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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin