84% wp-table-pixie

Code Review | WP Table Pixie

WordPress plugin WP Table Pixie scored84%from 54 tests.

About plugin

  • Plugin page: wp-table-pixie
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4
  • WordPress version: 6.3.1
  • First release: Apr 4, 2018
  • Latest release: Oct 25, 2023
  • Number of updates: 18
  • Update frequency: every 112.8 days
  • Top authors: ianmjones (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,487 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.56MB] [CPU: ▼3.34ms] Passed 4 tests

A check of server-side resources used by WP Table Pixie
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5440.46 ▲3.02
Dashboard /wp-admin3.90 ▲0.5949.46 ▲2.68
Posts /wp-admin/edit.php3.94 ▲0.5843.66 ▼0.74
Add New Post /wp-admin/post-new.php6.53 ▲0.6481.90 ▼17.78
Media Library /wp-admin/upload.php3.78 ▲0.5538.82 ▲2.47

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP Table Pixie
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲9614.36 ▲0.011.75 ▼0.0843.26 ▲3.69
Dashboard /wp-admin2,292 ▲1125.67 ▼0.0084.22 ▼4.0044.31 ▼5.55
Posts /wp-admin/edit.php2,196 ▲962.02 ▲0.0136.55 ▲1.4031.19 ▼5.78
Add New Post /wp-admin/post-new.php1,539 ▲1323.70 ▲0.60664.88 ▼15.8870.37 ▲14.89
Media Library /wp-admin/upload.php1,496 ▲994.22 ▲0.0392.69 ▼2.6144.29 ▼0.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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
Good news, no errors were detected

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 take a closer look at the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-table-pixie/admin/partials/table-pixie-admin-edit-tmpl.php:15
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-table-pixie/includes/class-table-pixie-list-table.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-table-pixie/includes/class-table-pixie-list-table.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-table-pixie/includes/class-table-pixie-list-table.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-table-pixie/admin/partials/table-pixie-admin-display.php:20

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

readme.txt 88% from 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
These attributes need your attention:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-table-pixie === )
You can take inspiration from this readme.txt

wp-table-pixie/wp-table-pixie.php Passed 13 tests

This is the main PHP file of "WP Table Pixie" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
Search, sort, view and edit your settings and metadata, even serialized and base64 encoded values.

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
Everything looks great! No dangerous files found in this plugin14,741 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS41,231319,176
JavaScript49033573,472
PHP134979492,093

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity52.22
▷ Minimum class complexity1.00
▷ Maximum class complexity170.00
Average method complexity5.31
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods107
▷ Static methods2018.69%
▷ Public methods8175.70%
▷ Protected methods00.00%
▷ Private methods2624.30%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin