83% infinite-scroll-and-ajax-load-more

Code Review | Infinite Scroll and Ajax Load More

WordPress plugin Infinite Scroll and Ajax Load More scored83%from 54 tests.

About plugin

  • Plugin page: infinite-scroll-a...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 31, 2019
  • Latest release: Oct 11, 2023
  • Number of updates: 13
  • Update frequency: every 131.9 days
  • Top authors: Arpit Patel (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /8,723 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.88ms] Passed 4 tests

Server-side resources used by Infinite Scroll and Ajax Load More
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0023.80 ▼18.40
Dashboard /wp-admin3.40 ▲0.0945.57 ▼5.42
Posts /wp-admin/edit.php3.52 ▲0.1653.46 ▲8.05
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.08 ▼8.70
Media Library /wp-admin/upload.php3.33 ▲0.0933.75 ▲1.00
Infinite Scroll /wp-admin/options-general.php?page=bliss-ajax-loadmore3.3235.82

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Infinite Scroll and Ajax Load More
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲9513.48 ▼0.898.47 ▲6.3237.16 ▼6.22
Dashboard /wp-admin2,201 ▲245.63 ▼0.0685.72 ▼1.7639.88 ▼2.09
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0034.56 ▼4.9730.49 ▼7.59
Add New Post /wp-admin/post-new.php1,532 ▼523.24 ▲4.93650.06 ▲31.5658.41 ▼1.72
Media Library /wp-admin/upload.php1,407 ▲44.23 ▼0.0194.97 ▼3.7940.05 ▼1.04
Infinite Scroll /wp-admin/options-general.php?page=bliss-ajax-loadmore1,3353.4858.6827.60

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-scroll-and-ajax-load-more/admin/bliss-loadmore-setting.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-scroll-and-ajax-load-more/public/bliss-ajax-loadmore-front.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-scroll-and-ajax-load-more/public/bliss-infinite-loadmore-script.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/infinite-scroll-and-ajax-load-more/templates/content-loop.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: infinite scroll, infinite, load more, infinite scrolling, scroll

infinite-scroll-and-ajax-load-more/infinite-scroll-ajax-load-more.php 69% from 13 tests

The primary PHP file in "Infinite Scroll and Ajax Load More" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("infinite-scroll-and-ajax-load-more.php" instead of "infinite-scroll-ajax-load-more.php")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected559 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP658137466
JavaScript310579
CSS20014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity16.33
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin