90% infinite-scroll-block

Code Review | Infinite Scroll Block

WordPress plugin Infinite Scroll Block scored90%from 54 tests.

About plugin

  • Plugin page: infinite-scroll-b...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 18, 2022
  • Latest release: Mar 31, 2023
  • Number of updates: 6
  • Update frequency: every 22.2 days
  • Top authors: apedestrian (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,281 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.46ms] Passed 4 tests

Server-side resources used by Infinite Scroll Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.52 ▼2.40
Dashboard /wp-admin3.32 ▲0.0250.68 ▼2.59
Posts /wp-admin/edit.php3.37 ▲0.0248.56 ▼0.81
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.60 ▼12.03
Media Library /wp-admin/upload.php3.25 ▲0.0238.85 ▲4.37

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Infinite Scroll Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.31 ▼0.121.69 ▼0.1157.55 ▲16.31
Dashboard /wp-admin2,195 ▲275.64 ▼0.0191.72 ▼10.5441.46 ▼2.17
Posts /wp-admin/edit.php2,103 ▲61.97 ▼0.0934.73 ▼1.1331.65 ▼2.17
Add New Post /wp-admin/post-new.php6,204 ▲4,65918.95 ▼4.34935.61 ▲318.0339.51 ▼7.22
Media Library /wp-admin/upload.php1,400 ▼34.27 ▲0.07114.67 ▲14.5449.36 ▲6.34

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: blocks, full site editing, fse, gutenberg, infinite scroll

infinite-scroll-block/index.php 92% from 13 tests

The main file in "Infinite Scroll Block" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("infinite-scroll-block.php" instead of "index.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 detected162 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP6191785
JSON30071
JavaScript4004
CSS3102

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.61
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%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.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