72% ultimate-wp-filter

Code Review | Ultimate WP Filter

WordPress plugin Ultimate WP Filter scored 72% from 54 tests.

About plugin

  • Plugin page: ultimate-wp-filter
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.1
  • WordPress version: 6.3.1
  • First release: Feb 13, 2013
  • Latest release: Feb 1, 2015
  • Number of updates: 37
  • Update frequency: every 19.5 days
  • Top authors: faleddo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 2,914 total downloads

Benchmarks

Plugin footprint 83% 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: ▼0.00MB] [CPU: ▼0.88ms] Passed 4 tests

This is a short check of server-side resources used by Ultimate WP Filter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0335.88 ▼7.60
Dashboard /wp-admin3.32 ▲0.0149.85 ▲3.79
Posts /wp-admin/edit.php3.37 ▲0.0146.43 ▲1.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.13 ▲4.35
Media Library /wp-admin/upload.php3.24 ▲0.0135.57 ▼1.08

Server storage [IO: ▲0.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: 8 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
uwpf_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate WP Filter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲6213.51 ▼0.865.15 ▲3.1743.06 ▲1.80
Dashboard /wp-admin2,213 ▲285.86 ▼0.0192.61 ▼7.8938.26 ▼0.37
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0339.25 ▲5.6834.23 ▲0.43
Add New Post /wp-admin/post-new.php1,517 ▼1117.74 ▼0.70689.39 ▲66.5150.71 ▼3.35
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0195.46 ▼3.6445.45 ▲2.27
Ultimate WP Filter /wp-admin/uwpf_panel.php260.440.0814.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ultimate-wp-filter/index.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-wp-filter/uwpf_panel.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/uwpf_panel.php
    • > Network (severe)
    wp-admin/uwpf_panel.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Explicit content after filtering), #2 (Explicit post before filtering), #3 (Explicit comment before filtering)
You can look at the official readme.txt

ultimate-wp-filter/uwpf_panel.php 85% from 13 tests

The main PHP file in "Ultimate WP Filter" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ultimate-wp-filter.php" instead of "uwpf_panel.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)

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
Success! There were no dangerous files found in this plugin214 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP54411199
Markdown16015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions9
▷ Named functions9100.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
No PNG files were detected