89% wp-infinite-scroll-posts

Code Review | WP EasyScroll Posts

WordPress plugin WP EasyScroll Posts scored89%from 54 tests.

About plugin

  • Plugin page: wp-infinite-scrol...
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2015
  • Latest release: Jun 18, 2019
  • Number of updates: 21
  • Update frequency: every 74.2 days
  • Top authors: vivacityinfotech.jaipur (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /9,192 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by WP EasyScroll Posts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0623.79 ▼19.91
Dashboard /wp-admin3.33 ▼0.0152.81 ▼13.08
Posts /wp-admin/edit.php3.38 ▲0.0350.15 ▼2.42
Add New Post /wp-admin/post-new.php5.91 ▲0.0399.59 ▼0.24
Media Library /wp-admin/upload.php3.26 ▲0.0338.72 ▼4.11

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
wp_easy_scroll_posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP EasyScroll Posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲13413.72 ▼0.926.17 ▲4.2642.71 ▼3.31
Dashboard /wp-admin2,239 ▲364.86 ▼0.06107.31 ▼6.5741.67 ▼8.68
Posts /wp-admin/edit.php2,118 ▲182.01 ▼0.0240.11 ▲2.4134.80 ▼2.32
Add New Post /wp-admin/post-new.php1,556 ▲1023.14 ▼0.22648.71 ▲26.1759.14 ▼1.35
Media Library /wp-admin/upload.php1,415 ▲124.21 ▲0.06103.26 ▼9.6447.86 ▲0.74

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • wp_easy_scroll_posts
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
9 plugin tags: scroll posts, scroll, pagination, scrolling, post pagination...

wp-infinite-scroll-posts/wp-easy-scroll-posts.php 85% from 13 tests

The primary PHP file in "WP EasyScroll Posts" version 1.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-infinite-scroll-posts.php" instead of "wp-easy-scroll-posts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,172 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3188111600
PHP510038454
PO File1333482
CSS13036

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.33
▷ Minimum class complexity10.00
▷ Maximum class complexity23.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.82MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png307.24KB126.35KB▼ 58.87%
img/arrow_icon.png0.55KB0.56KB0.00%
img/woo_frontend_banner.png36.65KB12.80KB▼ 65.07%
img/blue_frog_banner.png35.58KB12.88KB▼ 63.81%
screenshot-3.png123.96KB44.46KB▼ 64.14%