10% ultimate-infinite-scroll

Code Review | Ultimate Infinite Scroll Plugin

WordPress plugin Ultimate Infinite Scroll Plugin scored10%from 54 tests.

About plugin

  • Plugin page: ultimate-infinite...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2020
  • Latest release: Mar 30, 2023
  • Number of updates: 10
  • Update frequency: every 83.4 days
  • Top authors: wpunicorn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,322 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/ultimate-infinite-scroll/includes/helpers.php+53
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲5.99MB] [CPU: ▲25.95ms] 75% from 4 tests

Server-side resources used by Ultimate Infinite Scroll Plugin
Please take the time to fix the following items
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.99MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.84 ▲6.3873.43 ▲30.04
Dashboard /wp-admin9.86 ▲6.5284.73 ▲19.12
Posts /wp-admin/edit.php9.86 ▲6.5083.15 ▲31.43
Add New Post /wp-admin/post-new.php10.44 ▲4.55130.64 ▲23.20
Media Library /wp-admin/upload.php9.86 ▲6.6379.03 ▲44.83
Freemius Debug [v.2.5.5] /wp-admin/admin.php?page=freemius9.8671.77

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 307 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
fs_debug_mode
fs_accounts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
infinite-scroll-wc
fs_active_plugins

Browser metrics Passed 4 tests

An overview of browser requirements for Ultimate Infinite Scroll Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17513.46 ▼0.8911.85 ▲10.2331.71 ▼7.80
Dashboard /wp-admin2,237 ▲605.51 ▼0.0283.89 ▼7.2746.36 ▲2.49
Posts /wp-admin/edit.php2,146 ▲431.98 ▲0.0234.72 ▼6.0931.99 ▼5.35
Add New Post /wp-admin/post-new.php1,547 ▲1923.05 ▼0.28641.22 ▼13.1952.65 ▲2.06
Media Library /wp-admin/upload.php1,442 ▲454.23 ▲0.0496.64 ▼9.4544.55 ▼2.13
Freemius Debug [v.2.5.5] /wp-admin/admin.php?page=freemius1,0941.6923.8427.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/ultimate-infinite-scroll/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 10 options
    • fs_active_plugins
    • widget_recent-comments
    • can_compress_scripts
    • fs_accounts
    • widget_theysaidso_widget
    • infinite-scroll-wc
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • fs_debug_mode

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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 take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-infinite-scroll/includes/helpers.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ultimate-infinite-scroll/ultimate-infinite-scroll.php:22

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: A description for screenshot #4 is required in ultimate-infinite-scroll/assets to your readme.txt
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt might help

ultimate-infinite-scroll/ultimate-infinite-scroll.php 92% from 13 tests

The principal PHP file in "Ultimate Infinite Scroll Plugin" v. 1.0.3 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis 97% from 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 detected72,916 lines of code in 255 files:
LanguageFilesBlank linesComment linesLines of code
PHP18610,41118,23740,240
PO File126,9608,45515,240
CSS211,0014917,854
Sass1592834,730
JavaScript161,3244984,608
Markdown1680214
JSON10027
SVG3003

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,079)
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity55.31
▷ Minimum class complexity1.00
▷ Maximum class complexity3,079.00
Average method complexity4.96
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes108
▷ Abstract classes43.70%
▷ Concrete classes10496.30%
▷ Final classes00.00%
Methods1,511
▷ Static methods23615.62%
▷ Public methods1,12174.19%
▷ Protected methods181.19%
▷ Private methods37224.62%
Functions115
▷ Named functions11499.13%
▷ Anonymous functions10.87%
Constants148
▷ Global constants10168.24%
▷ Class constants4731.76%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/bulksms.png5.96KB4.30KB▼ 27.81%
freemius/assets/img/ultimate-infinite-scroll.png14.16KB4.93KB▼ 65.17%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/wp-twilio-core.png23.59KB8.71KB▼ 63.09%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%