83% um-infinite-scroll

Code Review | UM Infinite Scroll Member Directory

WordPress plugin UM Infinite Scroll Member Directory scored83%from 54 tests.

About plugin

  • Plugin page: um-infinite-scroll
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.9.2
  • WordPress version: 6.3.1
  • First release: Jan 27, 2018
  • Latest release: Jan 27, 2018
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: nicolly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,862 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by UM Infinite Scroll Member Directory
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.34 ▲2.14
Dashboard /wp-admin3.31 ▼0.0444.12 ▼12.82
Posts /wp-admin/edit.php3.36 ▲0.0046.86 ▼1.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.99 ▼16.18
Media Library /wp-admin/upload.php3.23 ▲0.0036.91 ▲5.58

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

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

Browser metrics Passed 4 tests

UM Infinite Scroll Member Directory: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲10913.43 ▼1.018.53 ▲6.9543.06 ▼1.31
Dashboard /wp-admin2,189 ▲125.55 ▼0.0681.00 ▼8.9437.66 ▼0.80
Posts /wp-admin/edit.php2,082 ▼182.01 ▲0.0534.12 ▼1.9732.17 ▼4.02
Add New Post /wp-admin/post-new.php1,535 ▲718.45 ▼4.65626.39 ▼34.1864.08 ▲11.42
Media Library /wp-admin/upload.php1,400 ▲94.09 ▼0.10113.17 ▲10.8247.50 ▲4.09

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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 no errors were found, this is by no means 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
Please fix the following
  • 1× 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/um-infinite-scroll/um_infinite_scroll.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

um-infinite-scroll/um_infinite_scroll.php 85% from 13 tests

The main PHP file in "UM Infinite Scroll Member Directory" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("um-infinite-scroll.php" instead of "um_infinite_scroll.php")

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 plugin49 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript121037
PHP151112

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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