79% wp-link-scroller

Code Review | WP Link Scroller

WordPress plugin WP Link Scroller scored79%from 54 tests.

About plugin

  • Plugin page: wp-link-scroller
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Feb 24, 2017
  • Latest release: Jul 31, 2018
  • Number of updates: 14
  • Update frequency: every 37.3 days
  • Top authors: hokku (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /838 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by WP Link Scroller
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.95 ▲3.66
Dashboard /wp-admin3.38 ▲0.0846.65 ▲1.75
Posts /wp-admin/edit.php3.43 ▲0.0749.69 ▲0.38
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.73 ▼11.81
Media Library /wp-admin/upload.php3.30 ▲0.0734.89 ▼2.44
WP Link Scroller /wp-admin/options-general.php?page=wpls_settings_page3.2430.86

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Link Scroller
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8614.76 ▲0.352.10 ▲0.4740.13 ▼0.52
Dashboard /wp-admin2,210 ▲184.88 ▼0.07101.05 ▼9.6238.91 ▲0.29
Posts /wp-admin/edit.php2,096 ▲42.06 ▲0.0038.82 ▼0.1633.21 ▼2.59
Add New Post /wp-admin/post-new.php1,545 ▲1218.29 ▼5.14607.51 ▼56.2950.67 ▼2.66
Media Library /wp-admin/upload.php1,386 ▲14.23 ▲0.0595.58 ▼8.8741.04 ▼4.28
WP Link Scroller /wp-admin/options-general.php?page=wpls_settings_page8072.0633.6831.18

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wpls_settings_page
    • > Notice in wp-content/plugins/wp-link-scroller/inc/settings.php+88
    Trying to access array offset on value of type bool
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wpls_settings_page
    • > Notice in wp-content/plugins/wp-link-scroller/inc/settings.php+88
    Trying to access array offset on value of type null
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wpls_settings_page
    • > Notice in wp-content/plugins/wp-link-scroller/inc/settings.php+206
    ob_end_clean(): failed to delete buffer. No buffer to delete

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 fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-link-scroller/inc/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-link-scroller/inc/fields.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-link-scroller/wp-link-scroller.php:10

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: link slide, anchor scrolling, scroll link, anchor slide, link scrolling...

wp-link-scroller/wp-link-scroller.php Passed 13 tests

The entry point to "WP Link Scroller" version 1.3.2 is a PHP file that has certain tags in its header comment area
53 characters long description:
Plugin creates slow scrolling for your #anchor links.

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
Good job! No executable or dangerous file extensions detected255 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP43612255

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin