94% responsive-scrollable-table

Code Review | Responsive Scrollable Table

WordPress plugin Responsive Scrollable Table scored 94% from 54 tests.

About plugin

  • Plugin page: responsive-scroll...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jun 23, 2017
  • Latest release: Jun 23, 2017
  • Number of updates: 11
  • Update frequency: every 5.1 days
  • Top authors: Jeriff Cheng (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 941 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Responsive Scrollable Table
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0041.95 ▲4.40
Dashboard /wp-admin3.06 ▲0.0147.45 ▲10.82
Posts /wp-admin/edit.php3.11 ▲0.0147.16 ▼4.69
Add New Post /wp-admin/post-new.php5.42 ▼0.0190.82 ▼558.07
Media Library /wp-admin/upload.php3.01 ▲0.0033.97 ▼0.88

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive Scrollable Table
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲11415.94 ▲0.179.26 ▲0.5344.19 ▼2.35
Dashboard /wp-admin2,970 ▲396.06 ▲0.07158.44 ▲1.52109.99 ▼0.17
Posts /wp-admin/edit.php2,739 ▼02.71 ▲0.0065.30 ▼8.5693.54 ▲3.07
Add New Post /wp-admin/post-new.php1,618 ▲321.38 ▲0.38316.91 ▲34.67100.50 ▼8.44
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.01151.36 ▲2.74114.40 ▼6.85

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/responsive-scrollable-table/index.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed: You can take inspiration from this readme.txt

responsive-scrollable-table/index.php 92% from 13 tests

This is the main PHP file of "Responsive Scrollable Table" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("responsive-scrollable-table.php" instead of "index.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 detected33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181433

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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%
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 are no PNG files in this plugin