84% wp-jquery-datatable

Code Review | WP jQuery DataTable

WordPress plugin WP jQuery DataTable scored84%from 54 tests.

About plugin

  • Plugin page: wp-jquery-datatable
  • Plugin version: 4.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 5, 2015
  • Latest release: Dec 23, 2022
  • Number of updates: 35
  • Update frequency: every 82.3 days
  • Top authors: biztechc (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

900+ active /24,598 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.06MB] [CPU: ▼12.32ms] Passed 4 tests

Analyzing server-side resources used by WP jQuery DataTable
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.80 ▼1.47
Dashboard /wp-admin3.38 ▲0.0346.75 ▼24.29
Posts /wp-admin/edit.php3.43 ▲0.0748.31 ▲1.91
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.53 ▼25.43
Media Library /wp-admin/upload.php3.31 ▲0.0740.74 ▲5.04

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 15 new options
New WordPress options
wp_jdt_paging
wp_jdt_info
widget_recent-posts
wp_jdt_b_length_change
wp_jdt_paging_type
wp_jdt_page_length
wp_jdt_order_row
wp_jdt_searching
widget_theysaidso_widget
wp_jdt_ordering
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP jQuery DataTable
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲14113.60 ▼0.7512.94 ▲11.1646.98 ▲6.33
Dashboard /wp-admin2,211 ▲345.64 ▲0.0684.98 ▼11.0039.08 ▲0.03
Posts /wp-admin/edit.php2,119 ▲221.97 ▼0.0442.13 ▲4.4536.71 ▲1.15
Add New Post /wp-admin/post-new.php1,539 ▲223.60 ▲5.27695.89 ▲41.0760.23 ▼6.34
Media Library /wp-admin/upload.php1,413 ▲134.18 ▼0.04116.68 ▲1.4350.15 ▲6.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-jquery-datatable/wp-jquery-datatable.php:11

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
The official readme.txt might help

wp-jquery-datatable/wp-jquery-datatable.php Passed 13 tests

The entry point to "WP jQuery DataTable" version 4.0.1 is a PHP file that has certain tags in its header comment area
120 characters long description:
Features can be settings to meet your exact needs for your table implementations. like Paging,Ordering,Searching, etc...

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected6,982 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11,9686,9936,251
CSS1330420
PHP23627311

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions7
▷ Named functions7100.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
13 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/forward_enabled.png1.35KB0.58KB▼ 56.96%
screenshot-2.png96.25KB29.15KB▼ 69.72%
screenshot-1.png109.31KB29.59KB▼ 72.93%
images/forward_enabled_hover.png1.35KB0.58KB▼ 56.93%
images/forward_disabled.png1.33KB0.58KB▼ 56.42%