84% infinite-scroll-to-tf

Code Review | Infinite Scroll To TF

WordPress plugin Infinite Scroll To TF scored84%from 54 tests.

About plugin

  • Plugin page: infinite-scroll-t...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.6
  • WordPress version: 6.3.1
  • First release: Nov 11, 2015
  • Latest release: Aug 21, 2016
  • Number of updates: 6
  • Update frequency: every 47.3 days
  • Top authors: Alobaidi (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,450 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.54ms] Passed 4 tests

Analyzing server-side resources used by Infinite Scroll To TF
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.40 ▼1.95
Dashboard /wp-admin3.33 ▲0.0249.07 ▼1.26
Posts /wp-admin/edit.php3.38 ▲0.0249.13 ▼1.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.84 ▼13.28
Media Library /wp-admin/upload.php3.26 ▲0.0238.16 ▲4.59

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

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

Browser metrics Passed 4 tests

Infinite Scroll To TF: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲12013.84 ▼0.539.60 ▲7.6441.63 ▼2.44
Dashboard /wp-admin2,195 ▲185.58 ▼0.0995.80 ▲5.5339.96 ▼1.59
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0338.75 ▼1.5936.82 ▼1.44
Add New Post /wp-admin/post-new.php1,527 ▼422.90 ▼0.17632.22 ▲4.8648.80 ▼1.57
Media Library /wp-admin/upload.php1,403 ▲64.21 ▼0.0296.52 ▼7.5143.10 ▼1.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/infinite-scroll-to-tf/uninstall.php
    • > /wp-content/plugins/infinite-scroll-to-tf/settings.php
    • > /wp-content/plugins/infinite-scroll-to-tf/infinite-scroll-to-tf.php

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 22 tag instead of maximum 10
You can take inspiration from this readme.txt

infinite-scroll-to-tf/infinite-scroll-to-tf.php Passed 13 tests

The main PHP file in "Infinite Scroll To TF" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
129 characters long description:
Add Infinite Scroll to Twenty Fifteen theme easily, animation effect and custom text messages, easy to use, just activate plugin.

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
Good job! No executable or dangerous file extensions detected167 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44927121
CSS18045
JavaScript11101

PHP code Passed 2 tests

An short overview of 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.33
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%
Functions8
▷ Named functions8100.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
There were not PNG files found in your plugin