84% infinite-all-images

Code Review | Infinite All Images

WordPress plugin Infinite All Images scored84%from 54 tests.

About plugin

  • Plugin page: infinite-all-images
  • Plugin version: 3.03
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jun 6, 2016
  • Latest release: Oct 29, 2023
  • Number of updates: 78
  • Update frequency: every 34.6 days
  • Top authors: Katsushi Kawamori (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,080 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Infinite All Images
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.73 ▼2.05
Dashboard /wp-admin3.32 ▼0.0339.41 ▼23.43
Posts /wp-admin/edit.php3.37 ▲0.0145.40 ▲2.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0175.91 ▼9.69
Media Library /wp-admin/upload.php3.24 ▲0.0132.55 ▼1.08
Infinite All Images /wp-admin/options-general.php?page=InfiniteAllImages3.2127.92

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Infinite All Images
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.28 ▼0.441.76 ▲0.1442.94 ▼2.50
Dashboard /wp-admin2,199 ▲195.63 ▲0.0992.72 ▼8.5141.24 ▼2.26
Posts /wp-admin/edit.php2,104 ▲72.03 ▲0.0740.34 ▲4.1134.52 ▼1.37
Add New Post /wp-admin/post-new.php1,531 ▲323.12 ▲0.02669.37 ▼5.1349.90 ▼7.06
Media Library /wp-admin/upload.php1,407 ▲104.18 ▲0.0195.65 ▼2.8941.80 ▼0.31
Infinite All Images /wp-admin/options-general.php?page=InfiniteAllImages1,1672.0025.8829.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-all-images/lib/class-infiniteallimagesadmin.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-all-images/lib/class-infiniteallimagesadmin.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-all-images/lib/class-infiniteallimages.php:65

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: infinite scroll, masonry, gallery, images

infinite-all-images/infiniteallimages.php 92% from 13 tests

The main PHP script in "Infinite All Images" version 3.03 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("infinite-all-images.php" instead of "infiniteallimages.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
There were no executable files found in this plugin780 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4111213723
JavaScript252840
CSS253517

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity47.00
▷ Minimum class complexity46.00
▷ Maximum class complexity48.00
Average method complexity6.41
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin