90% wptab-tableau-public-viz-block

Code Review | WP-TAB Tableau Public Viz Block

WordPress plugin WP-TAB Tableau Public Viz Block scored90%from 54 tests.

About plugin

  • Plugin page: wptab-tableau-pub...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 26, 2019
  • Latest release: Mar 2, 2023
  • Number of updates: 20
  • Update frequency: every 62.7 days
  • Top authors: garyhukkeri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /4,475 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.54ms] Passed 4 tests

Server-side resources used by WP-TAB Tableau Public Viz Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.31 ▼5.28
Dashboard /wp-admin3.31 ▲0.0142.49 ▼12.14
Posts /wp-admin/edit.php3.36 ▲0.0146.84 ▲1.75
Add New Post /wp-admin/post-new.php5.84 ▼0.0579.54 ▼18.48
Media Library /wp-admin/upload.php3.23 ▲0.0137.08 ▲2.37

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

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

Browser metrics Passed 4 tests

WP-TAB Tableau Public Viz Block: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲13914.61 ▲0.3412.31 ▲10.5536.86 ▼10.58
Dashboard /wp-admin2,198 ▲245.60 ▲0.0379.26 ▼36.2438.94 ▼12.61
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0140.16 ▼0.6838.12 ▼2.43
Add New Post /wp-admin/post-new.php6,365 ▲4,83027.60 ▲9.16897.56 ▲259.1250.67 ▼17.00
Media Library /wp-admin/upload.php1,397 ▼34.15 ▼0.1097.02 ▼8.5843.49 ▼3.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("paypal.me/wptab")
The official readme.txt might help

wptab-tableau-public-viz-block/wptab-tableau-public-viz-block.php Passed 13 tests

The main PHP file in "WP-TAB Tableau Public Viz Block" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
An easy way to embed Tableau Public Vizualizations into a WordPress page with basic options.

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
Everything looks great! No dangerous files found in this plugin261 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21713243
PHP161518

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected