68% wp-table-builder

Code Review | WP Table Builder - WordPress Table Plugin

WordPress plugin WP Table Builder - WordPress Table Plugin scored68%from 54 tests.

About plugin

  • Plugin page: wp-table-builder
  • Plugin version: 1.4.13
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Jul 17, 2019
  • Latest release: Nov 7, 2023
  • Number of updates: 126
  • Update frequency: every 12.5 days
  • Top authors: imtiazrayhan (100%)

Code review

54 tests

User reviews

581 reviews

Install metrics

60,000+ active /937,518 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
Installer ran successfully

Server metrics [RAM: ▲5.74MB] [CPU: ▲36.28ms] 75% from 4 tests

Analyzing server-side resources used by WP Table Builder - WordPress Table Plugin
The following require your attention
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.74MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.21 ▲5.7573.18 ▲28.90
Dashboard /wp-admin9.23 ▲5.8987.90 ▲26.45
Posts /wp-admin/edit.php9.23 ▲5.87102.09 ▲58.42
Add New Post /wp-admin/post-new.php11.34 ▲5.45119.24 ▲31.33
Media Library /wp-admin/upload.php9.23 ▲6.0095.05 ▲65.11
Welcome Page /wp-admin/admin.php?page=wp-table-builder-welcome9.2378.28
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2391.40

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 1,952 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
fs_active_plugins
widget_theysaidso_widget
fs_accounts
wptb_review_notify
fs_debug_mode

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Table Builder - WordPress Table Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,962 ▲21514.42 ▲0.051.65 ▼0.0127.28 ▼13.63
Dashboard /wp-admin2,361 ▲1846.11 ▲0.51121.89 ▲33.2045.28 ▲8.25
Posts /wp-admin/edit.php2,328 ▲2283.36 ▲1.3855.61 ▲19.2538.20 ▲6.26
Add New Post /wp-admin/post-new.php1,676 ▲14020.00 ▼3.17663.73 ▲42.7137.36 ▼11.84
Media Library /wp-admin/upload.php1,429 ▲294.02 ▼0.2092.63 ▼6.2450.22 ▲7.66
Welcome Page /wp-admin/admin.php?page=wp-table-builder-welcome1,5669.66256.18108.36
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,2643.1238.0025.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/wp-table-builder/inc/core/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • fs_active_plugins
    • db_upgraded
    • fs_accounts
    • widget_recent-comments
    • fs_debug_mode
    • widget_theysaidso_widget
    • wptb_review_notify
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
Please fix the following items
  • 13× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/wp-table-builder/inc/admin/views/builder/icons/half-filled-rating-star-small.php
    • > /wp-content/plugins/wp-table-builder/inc/admin/views/builder/icons/left_align.php
    • > /wp-content/plugins/wp-table-builder/inc/admin/views/builder/icons/not-filled-rating-star-small.php
    • > /wp-content/plugins/wp-table-builder/inc/admin/views/builder/icons/text.php
    • > /wp-content/plugins/wp-table-builder/inc/admin/views/builder/icons/half-filled-rating-star.php
    • > /wp-content/plugins/wp-table-builder/inc/admin/views/builder/icons/filled-rating-star-small.php
    • > /wp-content/plugins/wp-table-builder/inc/admin/views/builder/icons/image.php
    • > /wp-content/plugins/wp-table-builder/inc/frontend/views/html-wp-table-builder-public-display.php
    • > /wp-content/plugins/wp-table-builder/inc/admin/views/builder/icons/center_align.php
    • > /wp-content/plugins/wp-table-builder/inc/admin/class-wptb-listing.php
  • 31× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Table_Builder\\Inc\\Admin\\Element_Classes\\Base\\Dummy_Element_base' not found in wp-content/plugins/wp-table-builder/inc/admin/element-classes/elements/icon-element.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Table_Builder\\Inc\\Admin\\Element_Classes\\Base\\Dummy_Element_base' not found in wp-content/plugins/wp-table-builder/inc/admin/element-classes/elements/progress-bar-element.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'WP_Table_Builder\\Inc\\Common\\Interfaces\\Factory' not found in wp-content/plugins/wp-table-builder/inc/common/factory/class-dom-document-factory.php:12
    • > PHP Fatal error
      Uncaught Error: Undefined constant 'NS\\WP_TABLE_BUILDER_DIR' in wp-content/plugins/wp-table-builder/inc/admin/views/builder/additional-element.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-table-builder/inc/admin/views/builder/wptb-builder-table-setup.php:52
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Table_Builder\\Inc\\Admin\\Base\\Dummy_Control_Base' not found in wp-content/plugins/wp-table-builder/inc/admin/controls/dummy-controls/control-spacing-dummy.php:12
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/class-wp-upgrader-skin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-table-builder/inc/admin/managers/version-control-upgrader-skin.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-table-builder/inc/admin/views/builder/wptb-builder-left-panel.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Table_Builder\\Inc\\Admin\\Element_Classes\\Base\\Dummy_Element_base' not found in wp-content/plugins/wp-table-builder/inc/admin/element-classes/elements/styled-list-element.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-table-builder/inc/admin/views/builder/wptb-header-toolbox.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: table builder, table, drag and drop

wp-table-builder/wp-table-builder.php Passed 13 tests

This is the main PHP file of "WP Table Builder - WordPress Table Plugin" version 1.4.13, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
Drag and Drop Responsive Table Builder Plugin for WordPress.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected53,008 lines of code in 1,845 files:
LanguageFilesBlank linesComment linesLines of code
PHP27610,79423,27944,687
JavaScript766797734,455
SVG1,460412,074
CSS30290611,549
PO File18196207
JSON10034
Markdown1102

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity29.70
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity3.74
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces17
Interfaces1
Traits4
Classes171
▷ Abstract classes158.77%
▷ Concrete classes15691.23%
▷ Final classes00.00%
Methods1,885
▷ Static methods31716.82%
▷ Public methods1,36172.20%
▷ Protected methods904.77%
▷ Private methods43423.02%
Functions132
▷ Named functions10277.27%
▷ Anonymous functions3022.73%
Constants219
▷ Global constants10648.40%
▷ Class constants11351.60%
▷ Public constants113100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
21 PNG files occupy 0.18MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/admin/views/builder/icons/text.png0.56KB0.55KB▼ 1.93%
assets/images/what-is-new/table_pagination.png8.63KB3.33KB▼ 61.40%
inc/admin/views/builder/icons/list.png0.53KB0.58KB0.00%
assets/images/1.png1.29KB1.04KB▼ 19.77%
assets/images/what-is-new/table_search.png9.06KB3.53KB▼ 61.04%