74% advanced-wp-table

Code Review | Advanced WP Table

WordPress plugin Advanced WP Table scored74%from 54 tests.

About plugin

  • Plugin page: advanced-wp-table
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 14, 2020
  • Latest release: May 24, 2023
  • Number of updates: 18
  • Update frequency: every 64.8 days
  • Top authors: shamimmoeen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /836 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲4.79MB] [CPU: ▲18.18ms] Passed 4 tests

A check of server-side resources used by Advanced WP Table
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /8.89 ▲5.1673.84 ▲29.31
Dashboard /wp-admin8.91 ▲5.3474.77 ▲20.17
Posts /wp-admin/edit.php8.91 ▲5.2381.16 ▲27.56
Add New Post /wp-admin/post-new.php9.60 ▲3.45112.54 ▼2.57
Media Library /wp-admin/upload.php8.91 ▲5.4267.58 ▲27.57
Freemius Debug [v.2.5.8] /wp-admin/admin.php?page=freemius8.9165.00

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 185 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
fs_debug_mode
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
fs_accounts
fs_active_plugins
advanced_wp_table_db_version

Browser metrics Passed 4 tests

A check of browser resources used by Advanced WP Table
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲5714.34 ▼0.051.80 ▼0.0930.14 ▼9.80
Dashboard /wp-admin2,221 ▲445.57 ▲0.0190.22 ▼1.3141.67 ▼0.72
Posts /wp-admin/edit.php2,130 ▲272.03 ▼0.0142.38 ▲4.2437.45 ▼0.42
Add New Post /wp-admin/post-new.php1,550 ▲1918.26 ▼4.90646.17 ▼54.8053.37 ▲9.35
Media Library /wp-admin/upload.php1,432 ▲354.23 ▲0.0699.26 ▼39.6342.77 ▼13.31
Freemius Debug [v.2.5.8] /wp-admin/admin.php?page=freemius1,0661.7127.8927.32

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
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/advanced-wp-table/includes/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 10 options
    • widget_theysaidso_widget
    • fs_debug_mode
    • theysaidso_admin_options
    • db_upgraded
    • advanced_wp_table_db_version
    • widget_recent-posts
    • fs_active_plugins
    • fs_accounts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-wp-table/includes/class-advanced-wp-table-list.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
5 plugin tags: gutenberg table, wp table, table, advanced wp table, responsive table

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

The principal PHP file in "Advanced WP Table" v. 1.3.2 is loaded by WordPress automatically on each request
52 characters long description:
An easy to use plugin to create tables in WordPress.

Code Analysis 97% from 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 plugin33,356 lines of code in 140 files:
LanguageFilesBlank linesComment linesLines of code
PHP1218,03817,36133,106
JavaScript43459195
CSS153155

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,079)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity88.08
▷ Minimum class complexity1.00
▷ Maximum class complexity3,079.00
Average method complexity4.55
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes51
▷ Abstract classes23.92%
▷ Concrete classes4996.08%
▷ Final classes00.00%
Methods1,279
▷ Static methods19915.56%
▷ Public methods88969.51%
▷ Protected methods171.33%
▷ Private methods37329.16%
Functions96
▷ Named functions96100.00%
▷ Anonymous functions00.00%
Constants148
▷ Global constants10168.24%
▷ Class constants4731.76%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
includes/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
includes/freemius/assets/img/advanced-wp-table.png9.16KB5.26KB▼ 42.58%