68% posts-table-filterable

Code Review | TableOn - WordPress Posts Table Filterable 

WordPress plugin TableOn - WordPress Posts Table Filterable  scored68%from 54 tests.

About plugin

  • Plugin page: posts-table-filte...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: WP 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Nov 2, 2020
  • Latest release: Aug 23, 2023
  • Number of updates: 57
  • Update frequency: every 18.1 days
  • Top authors: RealMag777 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

300+ active /3,728 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.24MB] [CPU: ▲3.73ms] Passed 4 tests

This is a short check of server-side resources used by TableOn - WordPress Posts Table Filterable 
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.66 ▲1.2042.58 ▲1.56
Dashboard /wp-admin4.55 ▲1.2454.00 ▲8.63
Posts /wp-admin/edit.php4.66 ▲1.3058.50 ▲11.56
Add New Post /wp-admin/post-new.php7.15 ▲1.2694.04 ▼6.84
Media Library /wp-admin/upload.php4.47 ▲1.2445.49 ▲12.06

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 100 new files
Database: 4 new tables, 7 new options
New tables
wp_tableon_tables_meta
wp_tableon_tables_columns
wp_tableon_tables
wp_tableon_vocabulary
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
tableon_db_ver
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by TableOn - WordPress Posts Table Filterable 
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲15313.72 ▼0.691.60 ▼0.2737.60 ▼7.93
Dashboard /wp-admin2,229 ▲475.08 ▲0.20104.37 ▲1.3937.08 ▼4.05
Posts /wp-admin/edit.php2,115 ▲262.05 ▲0.0141.52 ▲3.5636.68 ▲3.70
Add New Post /wp-admin/post-new.php1,543 ▲2923.15 ▲5.49646.06 ▼20.5664.51 ▼1.88
Media Library /wp-admin/upload.php1,411 ▲234.23 ▲0.0197.62 ▼4.3340.17 ▼3.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_tableon_tables_columns
    • wp_tableon_vocabulary
    • wp_tableon_tables
    • wp_tableon_tables_meta
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • tableon_db_ver
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 7× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/posts-table-filterable/views/popup.php
    • > /wp-content/plugins/posts-table-filterable/views/options.php
    • > /wp-content/plugins/posts-table-filterable/lib/storage.php
    • > /wp-content/plugins/posts-table-filterable/views/table.php
    • > /wp-content/plugins/posts-table-filterable/install.php
    • > /wp-content/plugins/posts-table-filterable/views/set.php
    • > /wp-content/plugins/posts-table-filterable/views/gallery.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/posts-table-filterable/views/blank-template.php:10

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)
No browser issues were found

Optimizations

Plugin configuration 90% 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: filter, posts filter, tableon, table, posts table

posts-table-filterable/index.php 77% from 13 tests

The main PHP script in "TableOn - WordPress Posts Table Filterable " version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 211 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("posts-table-filterable.php" instead of "index.php")
  • Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "WP 4.9")

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
Good job! No executable or dangerous file extensions detected16,176 lines of code in 85 files:
LanguageFilesBlank linesComment linesLines of code
PHP301,6071,7526,321
CSS279401054,638
JavaScript261,3104134,448
PO File1318332742
SVG115027

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity43.55
▷ Minimum class complexity8.00
▷ Maximum class complexity250.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes15.00%
▷ Concrete classes1995.00%
▷ Final classes526.32%
Methods190
▷ Static methods2211.58%
▷ Public methods16988.95%
▷ Protected methods00.00%
▷ Private methods2111.05%
Functions108
▷ Named functions32.78%
▷ Anonymous functions10597.22%
Constants6
▷ Global constants6100.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
4 PNG files occupy 0.14MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/banners/woot-banner.png113.64KB40.54KB▼ 64.32%
assets/img/download.png1.18KB0.59KB▼ 49.71%
assets/img/move.png1.70KB1.67KB▼ 2.01%
assets/img/banners/wpbe-banner.png26.11KB27.38KB0.00%