83% nicescrollr

Code Review | Nicescrollr

WordPress plugin Nicescrollr scored83%from 54 tests.

About plugin

  • Plugin page: nicescrollr
  • Plugin version: 0.9.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2
  • WordPress version: 6.3.1
  • First release: Aug 9, 2015
  • Latest release: Sep 24, 2023
  • Number of updates: 372
  • Update frequency: every 8.1 days
  • Top authors: demispatti (53.23%)OneMoreNerd (47.04%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /9,447 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.59MB] [CPU: ▼2.72ms] Passed 4 tests

Server-side resources used by Nicescrollr
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.5945.49 ▲2.43
Dashboard /wp-admin3.90 ▲0.5953.50 ▼1.06
Posts /wp-admin/edit.php3.95 ▲0.5949.04 ▼10.84
Add New Post /wp-admin/post-new.php6.50 ▲0.6188.56 ▼1.42
Media Library /wp-admin/upload.php3.82 ▲0.5943.41 ▲8.83
Nicescrollr /wp-admin/options-general.php?page=nicescrollr_settings3.8737.13

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
nicescrollr_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Nicescrollr
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,100 ▲34314.20 ▼0.1818.58 ▲16.7544.60 ▲5.00
Dashboard /wp-admin2,246 ▲585.40 ▲0.49113.57 ▲13.9939.95 ▼3.00
Posts /wp-admin/edit.php2,148 ▲562.57 ▲0.5141.26 ▼0.0431.56 ▼2.79
Add New Post /wp-admin/post-new.php1,549 ▲3523.46 ▲5.88703.66 ▲20.9140.14 ▼23.80
Media Library /wp-admin/upload.php1,429 ▲414.54 ▲0.23105.12 ▲2.4943.01 ▼0.45
Nicescrollr /wp-admin/options-general.php?page=nicescrollr_settings3,6183.63180.6765.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • nicescrollr_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=nicescrollr_settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=nicescrollr_settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=nicescrollr_settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=nicescrollr_settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.clearAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Requires php: The plugin version is formatted incorrectly
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

nicescrollr/nicescrollr.php 92% from 13 tests

The main file in "Nicescrollr" v. 0.9.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 469 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected7,830 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript127161553,501
PHP217871,9202,522
PO File1332945609
Markdown51420601
CSS49953597

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity16.39
▷ Minimum class complexity1.00
▷ Maximum class complexity125.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity72.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods132
▷ Static methods21.52%
▷ Public methods8765.91%
▷ Protected methods00.00%
▷ Private methods4534.09%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
shared/icon-128x128.png12.79KB6.72KB▼ 47.43%