84% ajax-load-more-anything

Code Review | Load More Anything

WordPress plugin Load More Anything scored84%from 54 tests.

About plugin

  • Plugin page: ajax-load-more-an...
  • Plugin version: 3.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Oct 27, 2017
  • Latest release: Oct 26, 2023
  • Number of updates: 59
  • Update frequency: every 37.3 days
  • Top authors: mdshuvo (100%)

Code review

54 tests

User reviews

70 reviews

Install metrics

6,000+ active /67,727 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.49MB] [CPU: ▲0.03ms] Passed 4 tests

An overview of server-side resources used by Load More Anything
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.98 ▲0.5241.61 ▲4.56
Dashboard /wp-admin3.84 ▲0.5050.89 ▼6.17
Posts /wp-admin/edit.php3.88 ▲0.5348.13 ▲1.89
Add New Post /wp-admin/post-new.php6.35 ▲0.4696.13 ▲0.83
Media Library /wp-admin/upload.php3.70 ▲0.4736.47 ▲3.58

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Load More Anything
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,287 ▲54113.86 ▼0.368.20 ▲6.5944.30 ▲5.08
Dashboard /wp-admin2,594 ▲4175.61 ▲0.0899.76 ▲10.3947.93 ▲6.70
Posts /wp-admin/edit.php2,502 ▲4022.04 ▲0.0335.94 ▼0.0733.10 ▼2.84
Add New Post /wp-admin/post-new.php1,925 ▲38823.15 ▲4.77661.28 ▼1.0052.20 ▼5.36
Media Library /wp-admin/upload.php1,802 ▲4084.25 ▲0.0893.62 ▼2.3941.36 ▼2.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • ald_installed
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • ald_plugin_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix 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/ajax-load-more-anything/inc/class-admin-notice.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-load-more-anything/admin/Menu.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-load-more-anything/inc/ald-functions.php:94
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-load-more-anything/admin/functions.php:144

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 93% 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
8 plugin tags: infinite scroll, ajax pagination, woocommerce ajax, ajax load more, load more...

ajax-load-more-anything/ajax-load-div.php 85% from 13 tests

The entry point to "Load More Anything" version 3.3.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 270 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ajax-load-more-anything.php" instead of "ajax-load-div.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin3,639 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity32.60
▷ Minimum class complexity6.00
▷ Maximum class complexity82.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
▷ Static methods34.29%
▷ Public methods5274.29%
▷ Protected methods57.14%
▷ Private methods1318.57%
▷ Named functions25100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.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
There are no PNG files in this plugin