84% dbtable-to-datatable

Code Review | DbTable to DataTable

WordPress plugin DbTable to DataTable scored84%from 54 tests.

About plugin

  • Plugin page: dbtable-to-datatable
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Feb 12, 2016
  • Latest release: Feb 12, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: rikemsen (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active /3,166 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.60ms] Passed 4 tests

Server-side resources used by DbTable to DataTable
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.63 ▼5.02
Dashboard /wp-admin3.32 ▲0.0245.30 ▼5.14
Posts /wp-admin/edit.php3.38 ▲0.0247.91 ▼1.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.25 ▼6.37
Media Library /wp-admin/upload.php3.25 ▲0.0234.38 ▼1.88

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for DbTable to DataTable
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▼0.081.68 ▼0.2239.05 ▼4.09
Dashboard /wp-admin2,200 ▲185.86 ▼0.15100.79 ▼5.0135.71 ▼10.71
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0339.54 ▲2.8235.40 ▼0.79
Add New Post /wp-admin/post-new.php1,533 ▼223.50 ▲0.30652.44 ▲68.9751.79 ▲0.19
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0297.47 ▼8.8844.10 ▲0.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dbtable-to-datatable/dbTable2dataTable.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: datatable, sortable, mysql, table, jquery

dbtable-to-datatable/dbTable2dataTable.php 92% from 13 tests

"DbTable to DataTable" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("dbtable-to-datatable.php" instead of "dbTable2dataTable.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected330 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2615174
PHP12535105
Markdown128050
CSS13111

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods375.00%
▷ Protected methods125.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin