10% libre-scrolling

Code Review | Libre scrolling

WordPress plugin Libre scrolling scored 10% from 54 tests.

About plugin

  • Plugin page: libre-scrolling
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.4
  • WordPress version: 5.8.1
  • First release: Mar 16, 2020
  • Latest release: Mar 19, 2020
  • Number of updates: 5
  • Update frequency: every 19.2 days
  • Top authors: romainguillaume (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 235 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/libre-scrolling/libre-scrolling.php+23
    Undefined property: plugin_libre_scroll::$anchors

Server metrics [RAM: ▼1.86MB] [CPU: ▼192.32ms] Passed 4 tests

A check of server-side resources used by Libre scrolling
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.77 ▼0.955.20 ▼18.41
Dashboard /wp-admin1.79 ▼1.275.20 ▼45.33
Posts /wp-admin/edit.php1.79 ▼1.325.77 ▼44.95
Add New Post /wp-admin/post-new.php1.79 ▼3.656.24 ▼650.73
Media Library /wp-admin/upload.php1.79 ▼1.217.33 ▼28.25

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Libre scrolling
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲9315.91 ▲0.249.41 ▼2.3150.80 ▼1.54
Dashboard /wp-admin2,970 ▲365.92 ▼0.15149.50 ▼14.87116.93 ▼10.21
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0168.69 ▲2.2795.16 ▼4.71
Add New Post /wp-admin/post-new.php1,683 ▼018.73 ▲0.61395.05 ▼11.31108.32 ▼11.54
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.00165.70 ▼6.60130.14 ▲2.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/libre-scrolling/libre-scrolling.php+23
    Undefined property: plugin_libre_scroll::$anchors

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/libre-scrolling/libre-scrolling.php:22

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
Please take inspiration from this readme.txt

libre-scrolling/libre-scrolling.php 92% from 13 tests

The principal PHP file in "Libre scrolling" v. 0.1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin54 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP123336
JavaScript13618

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin