84% interactive-table

Code Review | Interactive Table

WordPress plugin Interactive Table scored84%from 54 tests.

About plugin

  • Plugin page: interactive-table
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Feb 19, 2018
  • Latest release: Aug 23, 2021
  • Number of updates: 4
  • Update frequency: every 320.2 days
  • Top authors: anasbinmukim (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /925 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.17MB] [CPU: ▼3.69ms] Passed 4 tests

An overview of server-side resources used by Interactive Table
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1843.86 ▼1.01
Dashboard /wp-admin3.46 ▲0.1655.53 ▲2.61
Posts /wp-admin/edit.php3.57 ▲0.2251.76 ▼1.39
Add New Post /wp-admin/post-new.php6.06 ▲0.1889.31 ▼13.16
Media Library /wp-admin/upload.php3.38 ▲0.1636.68 ▲0.79
Category /wp-admin/edit.php?post_type=interactive_table&page=it-cell-cetegory3.4036.48
INAV Table /wp-admin/edit.php?post_type=interactive_table3.4337.17
Settings /wp-admin/edit.php?post_type=interactive_table&page=it-settings3.4534.91
Add New /wp-admin/post-new.php?post_type=interactive_table3.5354.89

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 23 new options
New WordPress options
it_cell_hover_title_color
it_display_mode
it_cell_hover
it_cell_title_color
cell_highlight_color
it_read_more
it_read_more_font_color
can_compress_scripts
readmore_label
it_block_heading_position
...

Browser metrics Passed 4 tests

An overview of browser requirements for Interactive Table
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲20313.73 ▼0.855.65 ▲3.8644.89 ▲0.38
Dashboard /wp-admin2,246 ▲585.03 ▼0.87115.30 ▲3.9194.60 ▲50.18
Posts /wp-admin/edit.php2,149 ▲602.29 ▲0.2841.43 ▲5.7637.33 ▲2.89
Add New Post /wp-admin/post-new.php1,559 ▲16721.15 ▲2.41743.02 ▲64.9838.35 ▼9.42
Media Library /wp-admin/upload.php1,446 ▲644.44 ▲0.26123.89 ▲23.5151.46 ▲7.14
Category /wp-admin/edit.php?post_type=interactive_table&page=it-cell-cetegory9381.9629.6836.36
INAV Table /wp-admin/edit.php?post_type=interactive_table1,1212.2433.5032.57
Settings /wp-admin/edit.php?post_type=interactive_table&page=it-settings1,9053.0370.9235.74
Add New /wp-admin/post-new.php?post_type=interactive_table2,7109.14201.31136.93

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
  • The uninstall procedure has failed, leaving 23 options in the database
    • it_cell_hover
    • it_single_cell_slug_url
    • can_compress_scripts
    • it_title_hover
    • readmore_label
    • db_upgraded
    • it_highlight_mode
    • fixed_highlight
    • widget_recent-comments
    • it_cell_font_color
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/interactive-table/templates/single-interactive_table.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
7 plugin tags: color grid, responsive, interactive table, color content, dynamic hover grid view...

interactive-table/interactive-table.php Passed 13 tests

The primary PHP file in "Interactive Table" version 2.0.0 is used by WordPress to initiate all plugin functionality
95 characters long description:
A dynamic way to display clean & responsive interactive table for your contents in a nice view.

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 detected2,180 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP13130871,140
XML1716393
JavaScript24418266
PO File18489195
CSS3507186

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/it-nav.png0.42KB0.47KB0.00%