90% ajax-load-more-for-acf

Code Review | Ajax Load More for Advanced Custom Fields

WordPress plugin Ajax Load More for Advanced Custom Fields scored90%from 54 tests.

About plugin

  • Plugin page: ajax-load-more-fo...
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: May 4, 2017
  • Latest release: Jun 12, 2023
  • Number of updates: 30
  • Update frequency: every 74.4 days
  • Top authors: dcooney (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /32,341 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.72ms] Passed 4 tests

An overview of server-side resources used by Ajax Load More for Advanced Custom Fields
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.98 ▼5.78
Dashboard /wp-admin3.32 ▲0.0250.10 ▼4.85
Posts /wp-admin/edit.php3.37 ▲0.0152.30 ▲2.68
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.18 ▼5.72
Media Library /wp-admin/upload.php3.24 ▲0.0134.51 ▼2.53

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Ajax Load More for Advanced Custom Fields: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.20 ▼0.381.82 ▲0.0944.75 ▼6.04
Dashboard /wp-admin2,192 ▲155.56 ▼0.0786.73 ▼1.0645.62 ▲4.38
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0436.71 ▲0.4033.61 ▼1.68
Add New Post /wp-admin/post-new.php1,545 ▲1023.47 ▲0.36671.96 ▲25.1459.71 ▲1.30
Media Library /wp-admin/upload.php1,400 ▲34.14 ▼0.1799.27 ▼7.4444.08 ▼5.44

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 detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: relationship, gallery, ajax load more, repeater, repeater field...

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

The primary PHP file in "Ajax Load More for Advanced Custom Fields" version 1.3.2 is used by WordPress to initiate all plugin functionality
72 characters long description:
An Ajax Load More extension that adds compatibility for ACF field types.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin507 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP273165507

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity89.00
▷ Minimum class complexity89.00
▷ Maximum class complexity89.00
Average method complexity15.67
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin