72% filter-custom-fields-taxonomies-light

Code Review | Filter Custom Fields & Taxonomies Light

WordPress plugin Filter Custom Fields & Taxonomies Light scored72%from 54 tests.

About plugin

  • Plugin page: filter-custom-fie...
  • Plugin version: 1.05
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Aug 14, 2014
  • Latest release: Dec 15, 2015
  • Number of updates: 47
  • Update frequency: every 12.1 days
  • Top authors: websupporter (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

500+ active /61,564 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.16MB] [CPU: ▼6.07ms] Passed 4 tests

This is a short check of server-side resources used by Filter Custom Fields & Taxonomies Light
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1638.57 ▲1.33
Dashboard /wp-admin3.47 ▲0.1646.35 ▲1.11
Posts /wp-admin/edit.php3.58 ▲0.2245.70 ▼6.54
Add New Post /wp-admin/post-new.php6.05 ▲0.1685.69 ▼18.24
Media Library /wp-admin/upload.php3.39 ▲0.1634.84 ▼0.59
Edit Filter /wp-admin/admin.php?page=search-filter-edit3.6334.86
Search Filter /wp-admin/admin.php?page=search-filter3.3936.82
New Filter /wp-admin/admin.php?page=search-filter-new3.5137.54

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Filter Custom Fields & Taxonomies Light
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲14813.75 ▼0.686.46 ▲4.7336.55 ▼6.20
Dashboard /wp-admin2,232 ▲494.95 ▲0.05108.04 ▼1.0176.80 ▲36.11
Posts /wp-admin/edit.php2,115 ▲232.02 ▲0.0235.58 ▼5.6033.66 ▼0.47
Add New Post /wp-admin/post-new.php1,535 ▼221.94 ▲3.46750.53 ▲94.3047.25 ▼12.95
Media Library /wp-admin/upload.php1,414 ▲264.17 ▼0.08115.18 ▲16.3544.80 ▲1.40
Edit Filter /wp-admin/admin.php?page=search-filter-edit1,8044.1578.1137.94
Search Filter /wp-admin/admin.php?page=search-filter1,0253.3443.1979.40
New Filter /wp-admin/admin.php?page=search-filter-new1,0783.3440.1161.19

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

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

Smoke tests 25% 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
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=search-filter-edit
    • > Warning in wp-content/plugins/filter-custom-fields-taxonomies-light/admin/edit.php+388
    Invalid argument supplied for foreach()
  • 23 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=search-filter-edit
    • > Notice in wp-content/plugins/filter-custom-fields-taxonomies-light/admin/edit.php+441
    Undefined variable: field
  • 22 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=search-filter-edit
    • > Notice in wp-content/plugins/filter-custom-fields-taxonomies-light/admin/edit.php+388
    Trying to access array offset on value of type null

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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/filter-custom-fields-taxonomies-light/templates/res/template-standard-noresult.php
    • > /wp-content/plugins/filter-custom-fields-taxonomies-light/templates/res/template-standard.php
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/filter-custom-fields-taxonomies-light/includes/acf-checkboxes.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/filter-custom-fields-taxonomies-light/includes/types-checkboxes.php:5
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/filter-custom-fields-taxonomies-light/includes/acf-checkboxes.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/filter-custom-fields-taxonomies-light/includes/types-checkboxes.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/filter-custom-fields-taxonomies-light/ajax.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/filter-custom-fields-taxonomies-light/profi-search-filter.php:19
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/filter-custom-fields-taxonomies-light/includes/types-checkboxes.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/filter-custom-fields-taxonomies-light/admin/new.php:8
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/filter-custom-fields-taxonomies-light/includes/acf-checkboxes.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/filter-custom-fields-taxonomies-light/admin/admin.php:2

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: ajax, meta data, postmeta, filter, custom fields...

filter-custom-fields-taxonomies-light/profi-search-filter.php 85% from 13 tests

The main file in "Filter Custom Fields & Taxonomies Light" v. 1.05 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("filter-custom-fields-taxonomies-light.php" instead of "profi-search-filter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,225 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP12226261,966
PO File34618741,159
JavaScript2903646
CSS2910454

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
res/admin/input-fulltext.png1.00KB0.50KB▼ 49.51%
res/admin/radiobox.png0.83KB0.39KB▼ 52.81%
res/admin/logo.png3.99KB1.49KB▼ 62.56%
res/admin/gopro.png33.39KB12.55KB▼ 62.41%
res/admin/layout-li-column1.png2.00KB0.45KB▼ 77.46%