88% wp-post-list-ui

Code Review | WP Post List UI

WordPress plugin WP Post List UI scored 88% from 54 tests.

About plugin

  • Plugin page: wp-post-list-ui
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 5.9.2
  • First release: Jul 27, 2015
  • Latest release: Jan 6, 2016
  • Number of updates: 7
  • Update frequency: every 23.3 days
  • Top authors: rksh8148 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 2,362 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.82MB] [CPU: ▼307.36ms] Passed 4 tests

This is a short check of server-side resources used by WP Post List UI
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1166.76 ▲18.04
Dashboard /wp-admin3.53 ▲0.1351.23 ▼25.58
Posts /wp-admin/edit.php3.76 ▲0.1239.18 ▲1.61
Add New Post /wp-admin/post-new.php3.33 ▼3.6432.96 ▼1,202.74
Media Library /wp-admin/upload.php3.42 ▲0.1327.14 ▼2.74
Add New /wp-admin/post-new.php?post_type=wplpui3.3327.81
All Lists /wp-admin/edit.php?post_type=wplpui3.4630.52

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 442 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Post List UI
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,859 ▲11516.52 ▲0.566.10 ▲0.173.11 ▲0.90
Dashboard /wp-admin2,952 ▲947.21 ▲1.12123.34 ▼15.09160.55 ▼12.87
Posts /wp-admin/edit.php2,761 ▲913.57 ▲0.32118.96 ▲36.72147.31 ▼14.70
Add New Post /wp-admin/post-new.php1,720 ▲5515.88 ▼4.30443.38 ▲5.71178.12 ▲12.60
Media Library /wp-admin/upload.php1,767 ▲696.23 ▲0.71135.46 ▼7.51195.25 ▲6.28
Add New /wp-admin/post-new.php?post_type=wplpui3,4005.36114.23200.25
All Lists /wp-admin/edit.php?post_type=wplpui1,4483.7179.84111.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+293
    Undefined index: wplpuimeta_noncename
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+101
    Trying to get property '_post_types' of non-object
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+376
    in_array() expects parameter 2 to be array, null given
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+125
    Trying to get property '_orderby' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+133
    Trying to get property '_order' of non-object
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+139
    Trying to get property '_posts_per_page' of non-object
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+144
    Trying to get property '_offset' of non-object
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+149
    Trying to get property '_post__in' of non-object
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+154
    Trying to get property '_post__not_in' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+161
    Trying to get property '_pagination' of non-object
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+175
    Trying to get property '_post_status' of non-object
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+558
    Only variables should be passed by reference
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+185
    Trying to get property '_template' of non-object
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+196
    Trying to get property '_template_name' of non-object
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+202
    Trying to get property '_wplpui_template_code' of non-object
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+370
    Undefined index: post_type
    • > GET request to /wp-admin/post-new.php?post_type=wplpui
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php+376
    Trying to get property '_tax_query' of non-object

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
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/wp-post-list-ui/templates/content-default.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-list-ui/wp-post-list-ui.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (This screen-shot shows the simple list of post lists. This screen also shows the "Add New List Button".), #2 (This screen-shot is to add new Post List. Here you can add your own code.), #3 (Screenshot to add new template and add code.), #4 (Shortcode sidebar after publish the post list.)
  • Plugin Name: Please specify the plugin name on the first line ( === wp-post-list-ui === )
The official readme.txt is a good inspiration

wp-post-list-ui/wp-post-list-ui.php Passed 13 tests

"WP Post List UI" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
38 characters long description:
List the post by make the custom list.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected73,966 lines of code in 424 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1995,4313,88250,636
HTML1663,3921220,461
CSS503421842,050
PHP2127146518
SVG111179
Markdown222077
JSON20037
Bourne Shell1015
YAML1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.89MB with 0.62MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
codemirror/doc/yinyang.png4.52KB2.03KB▼ 55.19%
assets/screenshot-1.png76.78KB21.41KB▼ 72.12%
screenshot-4.png236.38KB63.98KB▼ 72.93%
assets/screenshot-2.png215.36KB58.18KB▼ 72.99%
screenshot-3.png81.77KB22.88KB▼ 72.02%