77% load-more-ajax

Code Review | Load More Ajax Lite

WordPress plugin Load More Ajax Lite scored77%from 54 tests.

About plugin

  • Plugin page: load-more-ajax
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 6.3.1
  • First release: Apr 12, 2022
  • Latest release: Jan 23, 2023
  • Number of updates: 9
  • Update frequency: every 31.8 days
  • Top authors: ajantawpdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /633 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.20ms] Passed 4 tests

A check of server-side resources used by Load More Ajax Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0340.78 ▲1.43
Dashboard /wp-admin3.32 ▼0.0343.77 ▼16.11
Posts /wp-admin/edit.php3.37 ▲0.0141.99 ▼6.26
Add New Post /wp-admin/post-new.php5.90 ▲0.01101.10 ▲10.65
Media Library /wp-admin/upload.php3.24 ▲0.0134.96 ▲4.13

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
load_more_ajax_lite_version
widget_theysaidso_widget
load_more_ajax_lite_installed

Browser metrics Passed 4 tests

A check of browser resources used by Load More Ajax Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.15 ▼1.221.71 ▼0.1241.54 ▼1.64
Dashboard /wp-admin2,209 ▲246.06 ▲0.23101.19 ▼1.5638.24 ▼1.85
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0136.56 ▼2.9734.69 ▼2.10
Add New Post /wp-admin/post-new.php1,534 ▼223.00 ▼0.32640.91 ▼27.2265.03 ▲2.28
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.0294.78 ▼3.3442.89 ▲0.43

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • load_more_ajax_lite_version
    • theysaidso_admin_options
    • load_more_ajax_lite_installed
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/load-more-ajax/load-more-ajax-lite.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/load-more-ajax/inc/functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/load-more-ajax/inc/shortcodes.php:103
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/load-more-ajax/inc/admin/admin-menu.php:18

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can look at the official readme.txt

load-more-ajax/load-more-ajax-lite.php 69% from 13 tests

The principal PHP file in "Load More Ajax Lite" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.0" instead of "7.2")
  • Main file name: Name the main plugin file the same as the plugin slug ("load-more-ajax.php" instead of "load-more-ajax-lite.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,166 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS34313600
PHP469109327
JavaScript1852239

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods10
▷ Static methods110.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.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 files were detected