83% load-more-anything-listing

Code Review | Load More Anything Listing

WordPress plugin Load More Anything Listing scored 83% from 54 tests.

About plugin

  • Plugin page: load-more-anythin...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 21, 2019
  • Latest release: Dec 1, 2019
  • Number of updates: 3
  • Update frequency: every 4.0 days
  • Top authors: xpertdeveloperz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 602 total downloads

Benchmarks

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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Load More Anything Listing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.96 ▼0.41
Dashboard /wp-admin3.32 ▲0.0147.34 ▼1.04
Posts /wp-admin/edit.php3.37 ▲0.0149.48 ▲6.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.43 ▼7.48
Media Library /wp-admin/upload.php3.24 ▲0.0133.65 ▲0.11
Load More Anything Listing /wp-admin/options-general.php?page=lmal_setting3.2133.21

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Load More Anything Listing
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲16013.71 ▼0.724.56 ▲2.7542.58 ▼5.93
Dashboard /wp-admin2,216 ▲275.85 ▲0.9296.44 ▼25.7737.77 ▼9.93
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0442.64 ▲8.5838.30 ▲4.82
Add New Post /wp-admin/post-new.php1,539 ▲523.14 ▼0.14646.04 ▼39.9557.77 ▲4.10
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.03102.61 ▼1.4044.33 ▼2.19
Load More Anything Listing /wp-admin/options-general.php?page=lmal_setting9031.7127.1930.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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)
Good news, no errors were detected

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/load-more-anything-listing/inc/lmal-scripts.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/load-more-anything-listing/inc/lmal-scripts.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 25 tag instead of maximum 10
The official readme.txt might help

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

The primary PHP file in "Load More Anything Listing" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("load-more-anything-listing.php" instead of "ajax-load-div.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 230 characters long)
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin277 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27143277

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin