94% auto-table-scroll

Code Review | Auto table scroll

WordPress plugin Auto table scroll scored 94% from 54 tests.

About plugin

  • Plugin page: auto-table-scroll
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4
  • WordPress version: 5.8.1
  • First release: May 27, 2020
  • Latest release: May 27, 2020
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: elm1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 219 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Auto table scroll
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1237.31 ▲12.74
Dashboard /wp-admin3.06 ▲0.0137.58 ▼18.59
Posts /wp-admin/edit.php3.11 ▲0.0147.15 ▼2.99
Add New Post /wp-admin/post-new.php5.43 ▼0.0199.89 ▼565.00
Media Library /wp-admin/upload.php3.01 ▼0.0034.17 ▼10.65

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Auto table scroll
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,706 ▲11016.26 ▲0.3711.44 ▲0.2246.95 ▼4.82
Dashboard /wp-admin2,967 ▲336.07 ▲0.14156.48 ▲1.09110.03 ▼3.10
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0168.98 ▼1.5189.06 ▼3.86
Add New Post /wp-admin/post-new.php1,683 ▼018.71 ▼0.03422.13 ▼5.50113.27 ▼0.23
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.02166.61 ▲2.36111.46 ▼9.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-table-scroll/auto_scroll_tables.php:21

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: auto, tables, mobile, scroll

auto-table-scroll/auto_scroll_tables.php 92% from 13 tests

"Auto table scroll" version 0.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("auto-table-scroll.php" instead of "auto_scroll_tables.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15718

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin