79% wow-scroll-up

Code Review | Wow scroll up

WordPress plugin Wow scroll up scored79%from 54 tests.

About plugin

  • Plugin page: wow-scroll-up
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Mar 22, 2018
  • Latest release: Mar 29, 2018
  • Number of updates: 11
  • Update frequency: every 0.6 days
  • Top authors: veradeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /623 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.13MB] [CPU: ▼17.99ms] Passed 4 tests

Analyzing server-side resources used by Wow scroll up
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0328.27 ▼12.61
Dashboard /wp-admin3.24 ▼0.0733.27 ▼22.08
Posts /wp-admin/edit.php3.31 ▼0.0439.92 ▼13.05
Add New Post /wp-admin/post-new.php5.50 ▼0.3970.47 ▼24.23
Media Library /wp-admin/upload.php3.21 ▼0.0227.30 ▼12.11
Wow scroll up /wp-admin/options-general.php?page=wow_scroll_up_settings3.2231.77

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
wsu_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Wow scroll up
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,182 ▲42115.32 ▲1.3212.68 ▲10.9837.00 ▼10.43
Dashboard /wp-admin2,364 ▲1846.55 ▲0.95128.09 ▲34.5141.51 ▼10.59
Posts /wp-admin/edit.php2,295 ▲1923.76 ▲1.7258.50 ▲21.8835.14 ▼0.61
Add New Post /wp-admin/post-new.php1,552 ▲2422.95 ▼0.01653.88 ▼33.9036.96 ▼21.31
Media Library /wp-admin/upload.php1,426 ▲264.61 ▲0.4689.42 ▼9.3748.71 ▲4.25
Wow scroll up /wp-admin/options-general.php?page=wow_scroll_up_settings1,7074.1390.6365.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • wsu_options
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wow_scroll_up_settings
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
    • > GET request to /wp-admin/options-general.php?page=wow_scroll_up_settings
    • > Notice in wp-content/plugins/wow-scroll-up/wow-scroll-up.php+136
    Undefined index: wsu_button_image

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 fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wow-scroll-up/wow-scroll-up.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wow-scroll-up/wow-scroll-button.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: scroll, button, animate, scrollup, up

wow-scroll-up/wow-scroll-up.php Passed 13 tests

The main PHP script in "Wow scroll up" version 1.2 is automatically included on every request by WordPress
68 characters long description:
This plugin allows you to easily scroll back to the top of the page.

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
No dangerous file extensions were detected1,673 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
SVG11511984
PHP24525272
CSS3400209
JavaScript46145208

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin