83% r-nice-scroll

Code Review | R Nicescroll

WordPress plugin R Nicescroll scored83%from 54 tests.

About plugin

  • Plugin page: r-nice-scroll
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Sep 13, 2014
  • Latest release: Sep 14, 2014
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: rasel2339 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,148 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.20ms] Passed 4 tests

A check of server-side resources used by R Nicescroll
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0425.87 ▼19.03
Dashboard /wp-admin3.36 ▲0.0654.96 ▼2.39
Posts /wp-admin/edit.php3.41 ▲0.0652.18 ▼6.16
Add New Post /wp-admin/post-new.php5.96 ▲0.07113.56 ▼3.53
Media Library /wp-admin/upload.php3.28 ▲0.0533.71 ▼4.06

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/r-nice-scroll/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by R Nicescroll
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,077 ▲31613.97 ▼0.3414.38 ▲12.5644.61 ▲2.90
Dashboard /wp-admin2,259 ▲535.11 ▼0.77126.84 ▼2.3845.82 ▼6.48
Posts /wp-admin/edit.php2,134 ▲312.33 ▲0.3336.01 ▼7.3132.29 ▼4.07
Add New Post /wp-admin/post-new.php1,553 ▲823.32 ▲0.15630.71 ▼110.1636.62 ▼16.83
Media Library /wp-admin/upload.php1,432 ▲324.44 ▲0.20103.01 ▼6.1444.74 ▼0.89

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× 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/r-nice-scroll/r-nicescroll.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/r-nice-scroll/inc/settings.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
  • Screenshots: Screenshot #1 (Working scroll up wordpress plugin.) image not found
You can look at the official readme.txt

r-nice-scroll/r-nicescroll.php 92% from 13 tests

This is the main PHP file of "R Nicescroll" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("r-nice-scroll.php" instead of "r-nicescroll.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected259 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25326145
JavaScript200114

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions19
▷ Named functions19100.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
There are no PNG files in this plugin