90% scroll-rec

Code Review | Scroll-Rec

WordPress plugin Scroll-Rec scored90%from 54 tests.

About plugin

  • Plugin page: scroll-rec
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Feb 8, 2022
  • Latest release: Feb 8, 2022
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: nigemizu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /487 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 gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.83ms] Passed 4 tests

A check of server-side resources used by Scroll-Rec
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.13 ▼5.36
Dashboard /wp-admin3.31 ▼0.0444.17 ▼19.28
Posts /wp-admin/edit.php3.36 ▲0.0044.93 ▼0.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.53 ▼1.98
Media Library /wp-admin/upload.php3.23 ▲0.0033.40 ▲0.68

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Scroll-Rec
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.35 ▼0.874.55 ▲2.7142.47 ▼5.73
Dashboard /wp-admin2,203 ▲155.91 ▲1.02108.45 ▼9.6541.31 ▼9.04
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0739.49 ▲3.6935.41 ▲0.58
Add New Post /wp-admin/post-new.php1,528 ▲918.31 ▼4.93641.94 ▼39.8164.16 ▲10.49
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0699.67 ▼2.0941.66 ▼5.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (2.) image missing
The official readme.txt is a good inspiration

scroll-rec/scroll-rec.php Passed 13 tests

"Scroll-Rec" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
74 characters long description:
Record the position of the page and scroll to it. You can scroll anywhere.

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
Good job! No executable or dangerous file extensions detected521 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript179133514
PHP12107

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin