89% simple-tableau-viz

Code Review | Simple Tableau Viz

WordPress plugin Simple Tableau Viz scored89%from 54 tests.

About plugin

  • Plugin page: simple-tableau-viz
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.2.2
  • WordPress version: 6.3.1
  • First release: Nov 14, 2018
  • Latest release: Sep 27, 2019
  • Number of updates: 9
  • Update frequency: every 36.2 days
  • Top authors: garyhukkeri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,557 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

An overview of server-side resources used by Simple Tableau Viz
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.82 ▼6.04
Dashboard /wp-admin3.32 ▲0.0148.35 ▼2.57
Posts /wp-admin/edit.php3.37 ▲0.0150.11 ▼7.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.29 ▼15.90
Media Library /wp-admin/upload.php3.24 ▲0.0143.85 ▲7.80

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Simple Tableau Viz: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲13813.94 ▼0.2813.55 ▲11.3634.69 ▼4.14
Dashboard /wp-admin2,192 ▲155.63 ▼0.03100.72 ▲10.3443.99 ▲2.56
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0635.44 ▼7.6234.78 ▲0.43
Add New Post /wp-admin/post-new.php6,194 ▲4,66619.31 ▼3.84920.67 ▲279.2459.55 ▲10.82
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.04101.93 ▼2.4342.05 ▼0.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 83% from 29 tests

readme.txt 75% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === simple-tableau-viz === )
  • Donate link: Please fix this invalid url: ""
  • Screenshots: These screenshots require images: #1 (Adding shortcode manually.), #2 (Adding viz through Editor.), #3 (An embedded tableau report.)
  • Stable tag: No value
The official readme.txt might help

simple-tableau-viz/simple-tableau-viz.php 92% from 13 tests

The main PHP file in "Simple Tableau Viz" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 179 characters long)

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 plugin140 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3121095
PHP1142245

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/tableau-public-logo.png0.97KB0.97KB0.10%