90% wp-datatable

Code Review | WP DataTable

WordPress plugin WP DataTable scored90%from 54 tests.

About plugin

  • Plugin page: wp-datatable
  • Plugin version: 0.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 6, 2016
  • Latest release: Nov 2, 2022
  • Number of updates: 31
  • Update frequency: every 72.6 days
  • Top authors: samsk (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /11,710 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.48ms] Passed 4 tests

This is a short check of server-side resources used by WP DataTable
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.43 ▲9.47
Dashboard /wp-admin3.31 ▲0.0044.68 ▼5.43
Posts /wp-admin/edit.php3.36 ▲0.0045.62 ▲0.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.52 ▼8.91
Media Library /wp-admin/upload.php3.23 ▲0.0032.14 ▲0.29

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP DataTable
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.205.81 ▲4.1641.91 ▲1.31
Dashboard /wp-admin2,209 ▲174.84 ▼0.0697.70 ▼10.7939.40 ▼1.59
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0434.83 ▼2.3437.54 ▲4.53
Add New Post /wp-admin/post-new.php1,533 ▲1923.19 ▲5.52657.96 ▼55.6149.75 ▼3.89
Media Library /wp-admin/upload.php1,385 ▼04.14 ▼0.1595.78 ▼2.9842.28 ▼3.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: jquery, datatables

wp-datatable/wp-datatable.php 92% from 13 tests

The entry point to "WP DataTable" version 0.2.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin808 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript281188712
PHP3237858
Markdown14027
CSS2242211

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sort_desc_disabled.png0.14KB0.25KB0.00%
images/sort_both.png0.20KB0.29KB0.00%
images/sort_asc.png0.16KB0.25KB0.00%
images/sort_desc.png0.15KB0.25KB0.00%
images/sort_asc_disabled.png0.14KB0.25KB0.00%