84% list-item-filter

Code Review | List Item Filter

WordPress plugin List Item Filter scored84%from 54 tests.

About plugin

  • Plugin page: list-item-filter
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.6
  • WordPress version: 6.3.1
  • First release: Oct 14, 2016
  • Latest release: Dec 2, 2016
  • Number of updates: 9
  • Update frequency: every 5.6 days
  • Top authors: zachwtx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /983 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.01MB] [CPU: ▼2.96ms] Passed 4 tests

A check of server-side resources used by List Item Filter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.58 ▲2.77
Dashboard /wp-admin3.31 ▲0.0149.27 ▼2.24
Posts /wp-admin/edit.php3.37 ▲0.0149.90 ▼2.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.72 ▼10.02
Media Library /wp-admin/upload.php3.24 ▲0.0139.74 ▲2.80

Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for List Item Filter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.371.75 ▼0.3941.34 ▼1.07
Dashboard /wp-admin2,198 ▲345.58 ▼0.1195.58 ▼5.5942.46 ▲0.16
Posts /wp-admin/edit.php2,097 ▼31.97 ▲0.0236.26 ▼0.1833.68 ▼5.29
Add New Post /wp-admin/post-new.php1,528 ▲223.22 ▼0.49693.40 ▼3.9065.43 ▲2.80
Media Library /wp-admin/upload.php1,400 ▼34.24 ▼0.06112.00 ▼0.7046.38 ▲1.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/list-item-filter/list-item-filter.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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: filter, list, javascript, search, shortcode

list-item-filter/list-item-filter.php Passed 13 tests

"List Item Filter" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
Filter out list items with a shortcode-generated search field.

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
No dangerous file extensions were detected205 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript16532133
PHP1191272

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/search.png1.33KB0.36KB▼ 72.53%