90% db-views-data-table

Code Review | DB-Views: Data Tables and Webforms

WordPress plugin DB-Views: Data Tables and Webforms scored90%from 54 tests.

About plugin

  • Plugin page: db-views-data-table
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 9, 2023
  • Latest release: Aug 13, 2023
  • Number of updates: 7
  • Update frequency: every 5.0 days
  • Top authors: componentsoftware (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /287 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by DB-Views: Data Tables and Webforms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.43 ▼2.82
Dashboard /wp-admin3.32 ▲0.0145.12 ▼6.06
Posts /wp-admin/edit.php3.37 ▲0.0147.02 ▼0.22
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.15 ▼16.93
Media Library /wp-admin/upload.php3.24 ▲0.0135.78 ▼1.01

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

DB-Views: Data Tables and Webforms: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.171.76 ▲0.1638.98 ▲0.38
Dashboard /wp-admin2,203 ▲154.85 ▼1.05106.02 ▼1.1539.50 ▼0.31
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0533.17 ▼1.6531.24 ▼5.57
Add New Post /wp-admin/post-new.php1,535 ▲2122.92 ▲5.52633.14 ▼36.0461.78 ▲8.85
Media Library /wp-admin/upload.php1,388 ▼34.29 ▲0.0994.43 ▼3.8241.66 ▼0.08

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 detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: webform, tablepress, database, mysql, webforms...

db-views-data-table/db-views-data-table.php 92% from 13 tests

The main file in "DB-Views: Data Tables and Webforms" v. 1.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Everything looks great! No dangerous files found in this plugin44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1131044

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods466.67%
▷ Protected methods00.00%
▷ Private methods233.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin