89% scrollr

Code Review | Scrollr

WordPress plugin Scrollr scored89%from 54 tests.

About plugin

  • Plugin page: scrollr
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.3.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Aug 20, 2021
  • Latest release: Nov 13, 2023
  • Number of updates: 18
  • Update frequency: every 45.3 days
  • Top authors: maxpressy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /728 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Scrollr
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.69 ▲4.18
Dashboard /wp-admin3.32 ▲0.0145.59 ▼5.96
Posts /wp-admin/edit.php3.37 ▲0.0150.37 ▲0.33
Add New Post /wp-admin/post-new.php5.85 ▼0.0493.45 ▼9.57
Media Library /wp-admin/upload.php3.24 ▲0.0137.16 ▲2.65

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Scrollr: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲16213.50 ▼0.858.88 ▲7.2840.72 ▼1.82
Dashboard /wp-admin2,195 ▲185.58 ▼0.0592.00 ▼7.0440.74 ▲2.91
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0339.26 ▼1.8536.37 ▼0.31
Add New Post /wp-admin/post-new.php1,535 ▲923.25 ▲0.24667.96 ▲2.4165.09 ▲10.42
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.0598.04 ▼4.5942.66 ▼1.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: scroll, onepage, smoth scroll, page scrolling, navigation...

scrollr/scrollr.php 85% from 13 tests

The primary PHP file in "Scrollr" version 1.0.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: The domain path must begin with a forward slash character ("/none, no strings to translate yet.")
  • Domain Path: The domain path should use only dashes and lowercase characters ("none, no strings to translate yet.")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected207 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript510977162
PHP3184545

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.69
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin