84% genesis-jetpack-infinite-scroll

Code Review | Jetpack Infinite Scroll For Genesis

WordPress plugin Jetpack Infinite Scroll For Genesis scored 84% from 54 tests.

About plugin

  • Plugin page: genesis-jetpack-i...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Jul 31, 2015
  • Latest release: Nov 10, 2015
  • Number of updates: 7
  • Update frequency: every 14.6 days
  • Top authors: chrisfromthelc (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 3,499 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by Jetpack Infinite Scroll For Genesis
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0151.68 ▲4.61
Dashboard /wp-admin3.31 ▲0.0151.92 ▼6.60
Posts /wp-admin/edit.php3.36 ▲0.0149.76 ▼3.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.55 ▼6.23
Media Library /wp-admin/upload.php3.24 ▲0.0136.73 ▼2.38

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jetpack Infinite Scroll For Genesis
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼2513.34 ▼1.124.81 ▲2.5943.10 ▼2.16
Dashboard /wp-admin2,206 ▼34.86 ▼0.01108.28 ▼3.3239.19 ▼4.34
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0040.17 ▲4.2534.37 ▲1.17
Add New Post /wp-admin/post-new.php1,533 ▲1023.36 ▲0.25609.59 ▲14.3254.14 ▲4.86
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0497.98 ▼1.5142.25 ▲2.04

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/genesis-jetpack-infinite-scroll/genesis-jetpack-infinite-scroll.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === genesis-jetpack-infinite-scroll === )
You can take inspiration from this readme.txt

genesis-jetpack-infinite-scroll/genesis-jetpack-infinite-scroll.php Passed 13 tests

The main file in "Jetpack Infinite Scroll For Genesis" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
105 characters long description:
Allows for the simple enabling of Jetpack Infinite Scroll for themes using the Genesis Framework (HTML5).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151522

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin