84% catch-infinite-scroll

Code Review | Catch Infinite Scroll

WordPress plugin Catch Infinite Scroll scored84%from 54 tests.

About plugin

  • Plugin page: catch-infinite-sc...
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Dec 29, 2017
  • Latest release: Nov 15, 2023
  • Number of updates: 42
  • Update frequency: every 51.1 days
  • Top authors: catchthemes (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

20,000+ active /510,835 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼3.88ms] Passed 4 tests

Server-side resources used by Catch Infinite Scroll
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1837.93 ▼4.07
Dashboard /wp-admin3.48 ▲0.1747.14 ▼3.54
Posts /wp-admin/edit.php3.60 ▲0.2347.37 ▲2.52
Add New Post /wp-admin/post-new.php6.06 ▲0.1790.88 ▼10.42
Media Library /wp-admin/upload.php3.40 ▲0.1737.22 ▲4.19

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Catch Infinite Scroll
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲10513.74 ▼0.618.50 ▲6.6544.71 ▼0.30
Dashboard /wp-admin2,211 ▲315.60 ▼0.0591.14 ▼8.8440.76 ▼5.55
Posts /wp-admin/edit.php2,116 ▲162.00 ▲0.0639.79 ▲1.3035.92 ▼3.10
Add New Post /wp-admin/post-new.php1,539 ▲1323.14 ▲0.02612.44 ▲2.6552.17 ▼0.40
Media Library /wp-admin/upload.php1,416 ▲164.21 ▼0.0196.46 ▼2.6540.32 ▼5.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catch-infinite-scroll/includes/ctp-tabs-removal.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-infinite-scroll/admin/partials/catch-infinite-scroll-admin-display.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/catch-infinite-scroll/admin/partials/footer.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/catch-infinite-scroll/includes/CatchThemesThemePlugin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-infinite-scroll/admin/partials/sidebar.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/catch-infinite-scroll/includes/jetpack-compatibility.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-infinite-scroll/admin/partials/catch-infinite-scroll-display-dashboard.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: scroll, infinite scrolling, load more, infinite, infinite scroll

catch-infinite-scroll/catch-infinite-scroll.php 92% from 13 tests

Analyzing the main PHP file in "Catch Infinite Scroll" version 2.0.5
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 180 characters long)

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
Good job! No executable or dangerous file extensions detected2,318 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP183286791,207
CSS315622782
JavaScript45588329

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity11.25
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods3386.84%
▷ Protected methods00.00%
▷ Private methods513.16%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/premium-plugin-246x116.png9.01KB4.16KB▼ 53.83%
admin/images/free-plugin-246x116.png8.01KB3.81KB▼ 52.42%
image/logo.png2.44KB2.18KB▼ 10.72%