84% flexible-table-block

Code Review | Flexible Table Block

WordPress plugin Flexible Table Block scored84%from 54 tests.

About plugin

  • Plugin page: flexible-table-block
  • Plugin version: 3.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4
  • WordPress version: 6.3.1
  • First release: Oct 21, 2021
  • Latest release: Oct 31, 2023
  • Number of updates: 31
  • Update frequency: every 23.9 days
  • Top authors: wildworks (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

10,000+ active /92,108 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.04MB] [CPU: ▼0.40ms] Passed 4 tests

Analyzing server-side resources used by Flexible Table Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0645.38 ▲7.12
Dashboard /wp-admin3.35 ▲0.0058.45 ▼0.72
Posts /wp-admin/edit.php3.40 ▲0.0449.87 ▲3.57
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.33 ▼8.36
Media Library /wp-admin/upload.php3.27 ▲0.0436.95 ▲3.92

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Flexible Table Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4814.25 ▼0.101.89 ▲0.1742.64 ▲1.90
Dashboard /wp-admin2,192 ▲175.59 ▼0.1396.39 ▼4.3946.17 ▲5.05
Posts /wp-admin/edit.php2,103 ▲32.14 ▲0.0340.36 ▲5.0531.10 ▼0.83
Add New Post /wp-admin/post-new.php6,379 ▲4,85322.66 ▼0.52857.18 ▲156.3361.98 ▼4.19
Media Library /wp-admin/upload.php1,397 ▼64.23 ▲0.0196.51 ▼6.2939.83 ▼7.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Flexible_Table_Block\\add_action() in wp-content/plugins/flexible-table-block/classes/class-enqueue.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Flexible_Table_Block\\add_action() in wp-content/plugins/flexible-table-block/classes/class-api.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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: gutenberg, table, block

flexible-table-block/flexible-table-block.php Passed 13 tests

The principal PHP file in "Flexible Table Block" v. 3.1.0 is loaded by WordPress automatically on each request
44 characters long description:
Easily create flexible configuration tables.

Code Analysis Passed 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
There were no executable files found in this plugin9,123 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
TypeScript407616797,225
Sass41676772
JSON200558
PHP787143444
JavaScript267122
CSS2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity11.60
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods19
▷ Static methods736.84%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin