89% infinite-ajax-scrolling-for-woocommerce

Code Review | Infinite Ajax Scrolling Lite For Woocommerce

WordPress plugin Infinite Ajax Scrolling Lite For Woocommerce scored89%from 54 tests.

About plugin

  • Plugin page: infinite-ajax-scr...
  • Plugin version: 1.4.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-5.3
  • WordPress version: 6.3.1
  • First release: Jul 22, 2015
  • Latest release: Jan 24, 2020
  • Number of updates: 106
  • Update frequency: every 15.5 days
  • Top authors: phoeniixx (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /26,378 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Infinite Ajax Scrolling Lite For Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.49 ▼5.53
Dashboard /wp-admin3.31 ▲0.0047.66 ▼5.00
Posts /wp-admin/edit.php3.36 ▲0.0043.68 ▼5.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.98 ▼19.57
Media Library /wp-admin/upload.php3.23 ▲0.0037.82 ▲3.96

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Infinite Ajax Scrolling Lite For Woocommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲9314.78 ▲0.491.96 ▲0.1734.98 ▼11.05
Dashboard /wp-admin2,204 ▲245.67 ▲0.0886.03 ▼2.5639.27 ▼3.51
Posts /wp-admin/edit.php2,124 ▲241.99 ▲0.0338.45 ▼0.4241.85 ▲4.07
Add New Post /wp-admin/post-new.php1,385 ▼14120.81 ▲3.19571.70 ▼91.0950.34 ▼2.35
Media Library /wp-admin/upload.php1,421 ▲244.18 ▼0.04101.34 ▼11.4344.42 ▲0.31

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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 require attention:
  • Tags: You are using too many tags: 24 tag instead of maximum 10
You can look at the official readme.txt

infinite-ajax-scrolling-for-woocommerce/infinite_scrolling_woocommerce_plugin.php 77% from 13 tests

The primary PHP file in "Infinite Ajax Scrolling Lite For Woocommerce" version 1.4.9 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "2.6.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("infinite-ajax-scrolling-for-woocommerce.php" instead of "infinite_scrolling_woocommerce_plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected457 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP212913340
JavaScript2410112
CSS1305

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
22 PNG files occupy 0.45MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/magnifile.png36.47KB14.52KB▼ 60.18%
images/custome-$19.png21.55KB10.29KB▼ 52.26%
images/custom-tag-$25.png23.67KB9.83KB▼ 58.49%
images/compare.png29.25KB12.97KB▼ 55.65%
images/social-login.png24.67KB10.78KB▼ 56.30%