78% infinite-scrolling

Code Review | Infinite Scroll for Genesis

WordPress plugin Infinite Scroll for Genesis scored78%from 54 tests.

About plugin

  • Plugin page: infinite-scrolling
  • Plugin version: 2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 28, 2020
  • Latest release: Feb 15, 2023
  • Number of updates: 19
  • Update frequency: every 49.1 days
  • Top authors: amarilindra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,199 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.45ms] Passed 4 tests

An overview of server-side resources used by Infinite Scroll for Genesis
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.51 ▼8.21
Dashboard /wp-admin3.37 ▲0.0349.68 ▼10.65
Posts /wp-admin/edit.php3.49 ▲0.1349.05 ▼2.30
Add New Post /wp-admin/post-new.php5.95 ▲0.0786.91 ▼12.62
Media Library /wp-admin/upload.php3.29 ▲0.0740.23 ▲3.33
Infinite Scroll /wp-admin/options-general.php?page=infinite-scroll-for-wp3.3137.34

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Infinite Scroll for Genesis
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.23 ▼0.181.60 ▼0.2542.04 ▲1.58
Dashboard /wp-admin2,193 ▲165.49 ▼0.1684.22 ▼3.5941.55 ▲2.48
Posts /wp-admin/edit.php2,101 ▲41.95 ▲0.0135.97 ▼3.7234.35 ▼1.31
Add New Post /wp-admin/post-new.php1,529 ▲322.99 ▼0.07680.59 ▲39.9654.35 ▲8.26
Media Library /wp-admin/upload.php1,398 ▼54.21 ▼0.0899.44 ▼5.4141.38 ▼3.05
Infinite Scroll /wp-admin/options-general.php?page=infinite-scroll-for-wp1,0752.2925.5538.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant ikva_infinite_scroll_for_wp_SETTINGS_SLUG - assumed 'ikva_infinite_scroll_for_wp_SETTINGS_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/infinite-scrolling/includes/admin/settings.php on line 21
    • > PHP Warning
      Use of undefined constant ikva_infinite_scroll_for_wp_SETTINGS_SLUG - assumed 'ikva_infinite_scroll_for_wp_SETTINGS_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/infinite-scrolling/includes/admin/settings.php on line 15
    • > PHP Warning
      Use of undefined constant ikva_infinite_scroll_for_wp_SETTINGS_SLUG - assumed 'ikva_infinite_scroll_for_wp_SETTINGS_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/infinite-scrolling/includes/admin/settings.php on line 18
    • > PHP Warning
      include_once(ikva_infinite_scroll_for_wp_PLUGIN_DIR/includes/menu/configure.php): failed to open stream: No such file or directory in wp-content/plugins/infinite-scrolling/includes/admin/settings.php on line 92
    • > PHP Warning
      Use of undefined constant ikva_infinite_scroll_for_wp_PLUGIN_DIR - assumed 'ikva_infinite_scroll_for_wp_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/infinite-scrolling/includes/admin/settings.php on line 92
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ikva_infinite_scroll_for_wp_configure() in wp-content/plugins/infinite-scrolling/includes/admin/settings.php:93
    • > PHP Warning
      include_once(): Failed opening 'ikva_infinite_scroll_for_wp_PLUGIN_DIR/includes/menu/configure.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/infinite-scrolling/includes/admin/settings.php on line 92
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-scrolling/includes/menu/menus.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-scrolling/includes/front/infinite-scroll.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=infinite-scroll-for-wp
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=infinite-scroll-for-wp 279 The specified value "#333" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

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: user experience, infinite scroll, ui, pagination, genesis

infinite-scrolling/infinite-scroll-for-wp.php 92% from 13 tests

The main PHP file in "Infinite Scroll for Genesis" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("infinite-scrolling.php" instead of "infinite-scroll-for-wp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,033 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP10237191,032
JavaScript11101

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/bunnycdn.png8.20KB8.30KB0.00%
assets/images/wordpress.png14.34KB15.46KB0.00%
assets/images/wp-droid.png5.62KB5.93KB0.00%
assets/images/android.png5.72KB6.01KB0.00%
assets/images/wp-rocket.png8.22KB8.33KB0.00%