84% ajax-load-more-for-users

Code Review | Ajax Load More for Users

WordPress plugin Ajax Load More for Users scored 84% from 54 tests.

About plugin

  • Plugin page: ajax-load-more-fo...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 13, 2023
  • Latest release: Jun 12, 2023
  • Number of updates: 6
  • Update frequency: every 25.2 days
  • Top authors: dcooney (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 490 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by Ajax Load More for Users
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.75 ▼6.16
Dashboard /wp-admin3.38 ▲0.0851.24 ▲1.89
Posts /wp-admin/edit.php3.43 ▲0.0747.68 ▼1.75
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.15 ▼8.37
Media Library /wp-admin/upload.php3.30 ▲0.0738.56 ▲4.52

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Ajax Load More for Users
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.63 ▼1.014.75 ▲2.9443.54 ▼2.36
Dashboard /wp-admin2,206 ▲154.83 ▼0.98106.08 ▼2.7741.78 ▲0.24
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0335.76 ▼0.7330.98 ▼3.61
Add New Post /wp-admin/post-new.php1,514 ▼2017.55 ▼5.61688.20 ▲90.6058.37 ▲6.46
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.06101.42 ▼7.0746.81 ▲3.64

Uninstaller [IO: ▲0.00MB] [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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-load-more-for-users/functions/install.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: wordpress users, infinite scroll, users, lazy load users, wp_user_query...

ajax-load-more-for-users/ajax-load-more-for-users.php Passed 13 tests

The principal PHP file in "Ajax Load More for Users" v. 1.1 is loaded by WordPress automatically on each request
60 characters long description:
Ajax Load More extension to infinite scroll WordPress users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin379 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity102.00
▷ Minimum class complexity102.00
▷ Maximum class complexity102.00
Average method complexity13.62
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods225.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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