84% posts-data-table

Code Review | Posts Table with Search & Sort

WordPress plugin Posts Table with Search & Sort scored84%from 54 tests.

About plugin

  • Plugin page: posts-data-table
  • Plugin version: 1.4.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 29, 2016
  • Latest release: Nov 21, 2023
  • Number of updates: 98
  • Update frequency: every 29.5 days
  • Top authors: andykeith (95.92%)amirition (5.1%)

Code review

54 tests

User reviews

18 reviews

Install metrics

4,000+ active /93,275 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.75MB] [CPU: ▲1.96ms] 75% from 4 tests

An overview of server-side resources used by Posts Table with Search & Sort
The following require your attention
  • CPU: The total CPU usage must kept under 500.00ms (currently 693.91ms on /wp-admin/options-general.php?page=posts_table_search_sort)
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6240.14 ▼5.59
Dashboard /wp-admin4.16 ▲0.8158.06 ▼5.31
Posts /wp-admin/edit.php4.21 ▲0.8555.53 ▲7.42
Add New Post /wp-admin/post-new.php6.68 ▲0.7999.73 ▲12.86
Media Library /wp-admin/upload.php4.02 ▲0.7846.22 ▲11.30
Posts Table With Search & Sort /wp-admin/options-general.php?page=posts_table_search_sort4.11693.91

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 151 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Posts Table with Search & Sort
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3614.23 ▼0.481.68 ▼0.1639.41 ▼3.85
Dashboard /wp-admin2,203 ▲295.61 ▲0.0195.38 ▼7.1442.04 ▼2.36
Posts /wp-admin/edit.php2,108 ▲82.02 ▼0.0040.97 ▲2.2539.39 ▲2.93
Add New Post /wp-admin/post-new.php1,532 ▼223.29 ▼1.96609.90 ▲9.6650.09 ▼16.86
Media Library /wp-admin/upload.php1,408 ▲144.15 ▼0.0396.38 ▼2.3543.58 ▼0.85
Posts Table With Search & Sort /wp-admin/options-general.php?page=posts_table_search_sort1,5322.0624.4648.89

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 44× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Barn2\\Plugin\\Posts_Table_Search_Sort\\Dependencies\\Setup_Wizard\\Step' not found in wp-content/plugins/posts-data-table/dependencies/barn2/setup-wizard/src/Steps/Welcome_Free.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Barn2\\Plugin\\Posts_Table_Search_Sort\\Dependencies\\Lib\\Registerable' not found in wp-content/plugins/posts-data-table/src/Plugin_Setup.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Barn2\\Plugin\\Posts_Table_Search_Sort\\Dependencies\\Setup_Wizard\\Steps\\Cross_Selling' not found in wp-content/plugins/posts-data-table/src/Admin/Wizard/Steps/Upsell.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Barn2\\Plugin\\Posts_Table_Search_Sort\\Dependencies\\Lib\\Plugin\\License\\License_Summary' not found in wp-content/plugins/posts-data-table/dependencies/barn2/barn2-lib/src/Plugin/License/License.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Barn2\\Plugin\\Posts_Table_Search_Sort\\Dependencies\\Lib\\Registerable' not found in wp-content/plugins/posts-data-table/dependencies/barn2/barn2-lib/src/Plugin/License/Admin/License_Key_Setting.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'Barn2\\Plugin\\Posts_Table_Search_Sort\\Dependencies\\Lib\\Schedulable' not found in wp-content/plugins/posts-data-table/dependencies/barn2/barn2-lib/src/Scheduled_Task.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Barn2\\Plugin\\Posts_Table_Search_Sort\\Dependencies\\Lib\\Registerable' not found in wp-content/plugins/posts-data-table/src/Table_Shortcode.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Barn2\\Plugin\\Posts_Table_Search_Sort\\Dependencies\\Lib\\Registerable' not found in wp-content/plugins/posts-data-table/src/Frontend_Scripts.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'Barn2\\Plugin\\Posts_Table_Search_Sort\\Dependencies\\Lib\\Plugin\\Plugin' not found in wp-content/plugins/posts-data-table/dependencies/barn2/barn2-lib/src/Plugin/Simple_Plugin.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Barn2\\Plugin\\Posts_Table_Search_Sort\\Dependencies\\Lib\\Registerable' not found in wp-content/plugins/posts-data-table/dependencies/barn2/barn2-lib/src/Rest/Base_Server.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: wordpress table plugin, data-table plugin, table, wordpress table, table plugin

posts-data-table/posts-data-table.php Passed 13 tests

"Posts Table with Search & Sort" version 1.4.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
60 characters long description:
List your posts in an instantly searchable & sortable table.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin15,311 lines of code in 126 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript92,3037,3857,955
PHP955573,4986,422
CSS74432488
PO File45659215
JSON880144
Sass22083
Markdown1304

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.13
▷ Minimum class complexity1.00
▷ Maximum class complexity77.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces21
Interfaces20
Traits2
Classes63
▷ Abstract classes57.94%
▷ Concrete classes5892.06%
▷ Final classes11.72%
Methods566
▷ Static methods11420.14%
▷ Public methods49787.81%
▷ Protected methods71.24%
▷ Private methods6210.95%
Functions13
▷ Named functions538.46%
▷ Anonymous functions861.54%
Constants26
▷ Global constants00.00%
▷ Class constants26100.00%
▷ Public constants26100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/datatables/DataTables-1.11.3/images/sort_asc.png0.16KB0.25KB0.00%
assets/js/datatables/DataTables-1.11.3/images/sort_desc.png0.15KB0.25KB0.00%
assets/js/datatables/DataTables-1.11.3/images/sort_both.png0.20KB0.29KB0.00%
assets/js/datatables/DataTables-1.11.3/images/sort_asc_disabled.png0.14KB0.25KB0.00%
assets/js/datatables/DataTables-1.11.3/images/sort_desc_disabled.png0.14KB0.25KB0.00%