89% yith-infinite-scrolling

Code Review | YITH Infinite Scrolling

WordPress plugin YITH Infinite Scrolling scored89%from 54 tests.

About plugin

  • Plugin page: yith-infinite-scr...
  • Plugin version: 1.17.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4
  • WordPress version: 6.3.1
  • First release: Mar 12, 2015
  • Latest release: Nov 13, 2023
  • Number of updates: 81
  • Update frequency: every 39.2 days
  • Top authors: yithemes (100%)

Code review

54 tests

User reviews

45 reviews

Install metrics

10,000+ active /336,926 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.42MB] [CPU: ▲11.02ms] 75% from 4 tests

A check of server-side resources used by YITH Infinite Scrolling
The following require your attention
  • CPU: You should keep total CPU usage under 500.00ms (currently 1,316.84ms on /wp-admin/admin.php?page=yith_system_info)
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.82 ▲1.46
Dashboard /wp-admin5.74 ▲2.4375.98 ▲24.31
Posts /wp-admin/edit.php5.27 ▲1.9160.27 ▲12.96
Add New Post /wp-admin/post-new.php7.75 ▲1.86107.18 ▲8.40
Media Library /wp-admin/upload.php5.08 ▲1.8455.59 ▲21.27
System Status /wp-admin/admin.php?page=yith_system_info5.121,316.84
Infinite Scrolling /wp-admin/admin.php?page=yith_infs_panel5.1250.69

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 322 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
yith_system_info
widget_theysaidso_widget
yit_recently_activated
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for YITH Infinite Scrolling
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,398 ▲61113.95 ▼0.2910.09 ▲8.1143.06 ▼1.17
Dashboard /wp-admin2,675 ▲5115.88 ▲0.1098.17 ▼14.9394.67 ▲50.34
Posts /wp-admin/edit.php2,153 ▲531.95 ▼0.0238.31 ▼1.3033.63 ▼4.41
Add New Post /wp-admin/post-new.php1,578 ▲5223.34 ▼0.15771.12 ▲73.8861.44 ▲3.82
Media Library /wp-admin/upload.php1,453 ▲534.25 ▲0.06112.03 ▲12.3883.46 ▲39.20
System Status /wp-admin/admin.php?page=yith_system_info1,3072.0223.5353.34
Infinite Scrolling /wp-admin/admin.php?page=yith_infs_panel1,3544.0761.1999.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • yith_system_info
    • theysaidso_admin_options
    • yit_recently_activated

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === yith-infinite-scrolling === )
You can look at the official readme.txt

yith-infinite-scrolling/init.php 85% from 13 tests

The principal PHP file in "YITH Infinite Scrolling" v. 1.17.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 235 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("yith-infinite-scrolling.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin40,764 lines of code in 255 files:
LanguageFilesBlank linesComment linesLines of code
PHP1712,6585,35914,927
JavaScript491,3458439,353
CSS201,6612449,211
PO File61,5661,9204,307
SVG8012,926
XML112940

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity41.93
▷ Minimum class complexity1.00
▷ Maximum class complexity336.00
Average method complexity4.04
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes29
▷ Abstract classes13.45%
▷ Concrete classes2896.55%
▷ Final classes00.00%
Methods378
▷ Static methods5314.02%
▷ Public methods30680.95%
▷ Protected methods5213.76%
▷ Private methods205.29%
Functions140
▷ Named functions13294.29%
▷ Anonymous functions85.71%
Constants19
▷ Global constants1894.74%
▷ Class constants15.26%
▷ Public constants1100.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
45 PNG files occupy 0.41MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/01-bg.png3.99KB1.73KB▼ 56.58%
plugin-fw/assets/css/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png0.09KB0.16KB0.00%
plugin-fw/assets/images/x.png0.70KB0.71KB0.00%
assets/images/05-icon.png1.51KB0.73KB▼ 51.48%
assets/images/04-bg.png2.65KB1.09KB▼ 58.77%