68% data-tables-generator-by-supsystic

Code Review | Data Tables Generator by Supsystic

WordPress plugin Data Tables Generator by Supsystic scored68%from 54 tests.

About plugin

  • Plugin page: data-tables-gener...
  • Plugin version: 1.10.30
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 12, 2015
  • Latest release: Sep 26, 2023
  • Number of updates: 204
  • Update frequency: every 15.0 days
  • Top authors: supsystic.com (100%)

Code review

54 tests

User reviews

483 reviews

Install metrics

20,000+ active /1,288,474 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.99MB] [CPU: ▲7.12ms] Passed 4 tests

A check of server-side resources used by Data Tables Generator by Supsystic
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.52 ▲2.0664.05 ▲21.58
Dashboard /wp-admin5.33 ▲1.9962.46 ▲1.20
Posts /wp-admin/edit.php5.38 ▲2.0362.48 ▲10.82
Add New Post /wp-admin/post-new.php7.87 ▲1.9998.76 ▼5.11
Media Library /wp-admin/upload.php5.19 ▲1.9660.81 ▲24.74
Tables /wp-admin/admin.php?page=supsystic-tables&module=tables7.2176.59
Settings /wp-admin/admin.php?page=supsystic-tables&module=settings7.5269.45
Overview /wp-admin/admin.php?page=supsystic-tables&module=overview8.24378.73
Data Tables by Supsystic /wp-admin/admin.php?page=supsystic-tables7.2182.56

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 566 new files
Database: 6 new tables, 15 new options
New tables
wp_supsystic_tbl_columns
wp_supsystic_tbl_rows_history
wp_supsystic_tbl_conditions
wp_supsystic_tbl_diagrams
wp_supsystic_tbl_rows
wp_supsystic_tbl_tables
New WordPress options
widget_recent-comments
widget_recent-posts
supsystic_tbl_welcome_page_was_showed
stbl_installed
theysaidso_admin_options
supsystic_tbl_wooAdsNotice
wp_supsystic_tbl_plug_welcome_show
supsystic_tbl_plug_was_used
widget_theysaidso_widget
can_compress_scripts
...

Browser metrics Passed 4 tests

Data Tables Generator by Supsystic: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,971 ▲21013.61 ▼1.0410.58 ▲9.0439.71 ▼1.43
Dashboard /wp-admin2,262 ▲855.80 ▲0.1295.18 ▲10.2340.19 ▼1.14
Posts /wp-admin/edit.php2,170 ▲702.17 ▲0.1641.82 ▲3.4232.59 ▼4.20
Add New Post /wp-admin/post-new.php1,461 ▼6518.62 ▼4.97610.45 ▼93.5931.49 ▼27.93
Media Library /wp-admin/upload.php1,498 ▲954.35 ▲0.1499.85 ▼0.0644.44 ▼0.07
Add table /wp-admin/admin.php?page=supsystic-tables#add1,62910.21321.8899.18
Tables /wp-admin/admin.php?page=supsystic-tables&module=tables1,7975.04109.7376.27
Settings /wp-admin/admin.php?page=supsystic-tables&module=settings1,4163.5472.9552.41
Overview /wp-admin/admin.php?page=supsystic-tables&module=overview2,60521.30546.9153.92
Data Tables by Supsystic /wp-admin/admin.php?page=supsystic-tables1,7945.01113.1469.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure failed, leaving 6 tables in the database
    • wp_supsystic_tbl_rows
    • wp_supsystic_tbl_conditions
    • wp_supsystic_tbl_tables
    • wp_supsystic_tbl_columns
    • wp_supsystic_tbl_diagrams
    • wp_supsystic_tbl_rows_history
  • The uninstall procedure has failed, leaving 14 options in the database
    • supsystic_tbl_reviewNotice
    • can_compress_scripts
    • widget_theysaidso_widget
    • supsystic_tbl_welcome_page_was_showed
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • supsystic_tbl_plugin_version
    • supsystic_tbl_plug_was_used
    • widget_recent-comments
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
The following issues need your attention
  • 203× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_SupTwgDtgs_Node_Expression' not found in wp-content/plugins/data-tables-generator-by-supsystic/vendor/Twig/Node/Expression/Parent.php:18
    • > PHP Notice
      Undefined variable: table in wp-content/plugins/data-tables-generator-by-supsystic/src/SupsysticTables/Tables/views/shortcode.php on line 19
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_SupTwgDtgs_Node' not found in wp-content/plugins/data-tables-generator-by-supsystic/vendor/Twig/Node/Expression.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_SupTwgDtgs_Node_Expression_Conditional' not found in wp-content/plugins/data-tables-generator-by-supsystic/vendor/Twig/Node/Expression/NullCoalesce.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_SupTwgDtgs_Extension' not found in wp-content/plugins/data-tables-generator-by-supsystic/vendor/Twig/Extension/Optimizer.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_SupTwgDtgs_Extension' not found in wp-content/plugins/data-tables-generator-by-supsystic/vendor/Twig/Extension/StringLoader.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_SupTwgDtgs_Node' not found in wp-content/plugins/data-tables-generator-by-supsystic/vendor/Twig/Node/ForLoop.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_SupTwgDtgs_TokenParser' not found in wp-content/plugins/data-tables-generator-by-supsystic/vendor/Twig/TokenParser/From.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_SupTwgDtgs_Node_Expression_Binary' not found in wp-content/plugins/data-tables-generator-by-supsystic/vendor/Twig/Node/Expression/Binary/FloorDiv.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'SupsysticTables_Core_BaseModule' not found in wp-content/plugins/data-tables-generator-by-supsystic/src/SupsysticTables/Woocommerce/Module.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=supsystic-tables
    • > Javascript (severe) in unknown
    /wp-content/plugins/data-tables-generator-by-supsystic/src/SupsysticTables/Tables/assets/libraries/datetime-moment.js?ver=2.8.4 26:18 Uncaught ReferenceError: moment is not defined

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: data table, line chart, wordpress table plugin, excel, pie chart...

data-tables-generator-by-supsystic/index.php 85% from 13 tests

The primary PHP file in "Data Tables Generator by Supsystic" version 1.10.30 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("data-tables-generator-by-supsystic.php" instead of "index.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin114,371 lines of code in 474 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript934,3667,96963,001
PHP2954,4138,76921,843
PO File187,29785018,856
Twig2814084,045
CSS334432433,687
SVG1002,671
LESS3364213
SQL35055

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity10.11
▷ Minimum class complexity1.00
▷ Maximum class complexity265.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces0
Interfaces33
Traits0
Classes257
▷ Abstract classes207.78%
▷ Concrete classes23792.22%
▷ Final classes10.42%
Methods1,714
▷ Static methods653.79%
▷ Public methods1,48486.58%
▷ Protected methods1538.93%
▷ Private methods774.49%
Functions57
▷ Named functions5596.49%
▷ Anonymous functions23.51%
Constants64
▷ Global constants1117.19%
▷ Class constants5382.81%
▷ Public constants53100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
60 PNG files occupy 0.84MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/SupsysticTables/Overview/assets/img/overview-01.png21.29KB11.84KB▼ 44.39%
src/SupsysticTables/Tables/assets/libraries/colorpicker/images/custom_hsb_b.png1.07KB0.82KB▼ 23.61%
app/assets/css/chosen-sprite.png0.53KB0.88KB0.00%
src/SupsysticTables/Tables/assets/libraries/colorpicker/images/custom_rgb_r.png0.99KB0.74KB▼ 25.34%
src/SupsysticTables/Tables/assets/libraries/colorpicker/images/custom_hex.png0.55KB0.39KB▼ 28.11%