94% surbma-smooth-scroll

Code Review | Surbma | Smooth Scroll

WordPress plugin Surbma | Smooth Scroll scored 94% from 54 tests.

About plugin

  • Plugin page: surbma-smooth-scroll
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.8.1
  • First release: Apr 4, 2015
  • Latest release: Nov 9, 2021
  • Number of updates: 20
  • Update frequency: every 120.6 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

2,000+ active / 13,457 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼138.91ms] Passed 4 tests

An overview of server-side resources used by Surbma | Smooth Scroll
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0135.35 ▲1.38
Dashboard /wp-admin3.07 ▲0.0141.64 ▲1.32
Posts /wp-admin/edit.php3.12 ▲0.0145.70 ▲0.83
Add New Post /wp-admin/post-new.php5.43 ▼0.0184.01 ▼557.81
Media Library /wp-admin/upload.php3.01 ▲0.0132.95 ▲0.03

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Surbma | Smooth Scroll
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,793 ▲19716.46 ▲0.8913.10 ▲2.3748.08 ▼0.98
Dashboard /wp-admin2,973 ▲426.16 ▲0.23152.08 ▲12.89115.02 ▼3.90
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0165.34 ▼3.1387.74 ▼4.51
Add New Post /wp-admin/post-new.php1,672 ▼018.89 ▲0.09382.41 ▲10.62110.62 ▲5.94
Media Library /wp-admin/upload.php1,807 ▼35.02 ▲0.02143.20 ▼12.46121.42 ▼18.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/surbma-smooth-scroll/surbma-smooth-scroll.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: jquery, smooth scroll, ariel flesler, localscroll, scrollto...

surbma-smooth-scroll/surbma-smooth-scroll.php 92% from 13 tests

The primary PHP file in "Surbma | Smooth Scroll" version 1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages/")

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 detected16 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP181310
JavaScript30123
Markdown1103

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected