78% mousewheel-smooth-scroll

Code Review | MouseWheel Smooth Scroll

WordPress plugin MouseWheel Smooth Scroll scored78%from 54 tests.

About plugin

  • Plugin page: mousewheel-smooth...
  • Plugin version: 6.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4
  • WordPress version: 6.3.1
  • First release: Jan 8, 2015
  • Latest release: Oct 25, 2023
  • Number of updates: 94
  • Update frequency: every 34.2 days
  • Top authors: kubiq (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

60,000+ active /318,678 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by MouseWheel Smooth Scroll
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.06 ▼1.61
Dashboard /wp-admin3.38 ▲0.0748.40 ▼1.05
Posts /wp-admin/edit.php3.49 ▲0.1343.75 ▲0.34
Add New Post /wp-admin/post-new.php5.96 ▲0.0780.52 ▼6.40
Media Library /wp-admin/upload.php3.30 ▲0.0736.76 ▲4.50

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
wpmss_settings
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for MouseWheel Smooth Scroll
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲14313.46 ▼1.119.19 ▲7.7138.51 ▼5.92
Dashboard /wp-admin2,199 ▲285.54 ▼0.0484.61 ▼3.9335.71 ▼5.17
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0535.88 ▼1.9032.19 ▼4.35
Add New Post /wp-admin/post-new.php1,529 ▼023.25 ▲0.08675.33 ▲5.4759.99 ▲9.53
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.04107.81 ▲1.6446.95 ▲0.17
Smooth Scroll /wp-admin/mousewheel-smooth-scroll.php260.420.0713.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • wpmss_settings
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mousewheel-smooth-scroll/mousewheel-smooth-scroll.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/mousewheel-smooth-scroll.php
    • > Network (severe)
    wp-admin/mousewheel-smooth-scroll.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: smooth scroll, mousewheel scroll, scrolling

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

This is the main PHP file of "MouseWheel Smooth Scroll" version 6.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin814 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2127134530
PHP12310284

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected