84% custom-field-finder

Code Review | Custom field finder

WordPress plugin Custom field finder scored84%from 54 tests.

About plugin

  • Plugin page: custom-field-finder
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.3
  • WordPress version: 6.3.1
  • First release: Apr 18, 2013
  • Latest release: Sep 20, 2023
  • Number of updates: 12
  • Update frequency: every 317.3 days
  • Top authors: joostdevalk (58.33%)Yoast (50%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /13,131 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▲4.26ms] Passed 4 tests

This is a short check of server-side resources used by Custom field finder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.67 ▲2.71
Dashboard /wp-admin3.31 ▲0.0155.21 ▲8.30
Posts /wp-admin/edit.php3.36 ▲0.0045.02 ▼1.57
Add New Post /wp-admin/post-new.php5.89 ▲0.00112.70 ▲24.52
Media Library /wp-admin/upload.php3.23 ▲0.0041.76 ▲7.58
Custom field finder /wp-admin/tools.php?page=cff3.2036.87

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Custom field finder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼1.481.97 ▼0.0544.11 ▼0.47
Dashboard /wp-admin2,213 ▲384.89 ▼0.04113.36 ▼9.4542.31 ▼9.59
Posts /wp-admin/edit.php2,093 ▲12.15 ▲0.1034.52 ▼5.6236.88 ▲0.54
Add New Post /wp-admin/post-new.php1,523 ▼423.05 ▲4.97693.30 ▲69.9857.78 ▲4.24
Media Library /wp-admin/upload.php1,389 ▲14.08 ▼0.13117.42 ▲4.1350.08 ▲3.34
Custom field finder /wp-admin/tools.php?page=cff7692.0529.7730.31

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 were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-field-finder/cff.php:24

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

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: custom fields

custom-field-finder/cff.php 92% from 13 tests

"Custom field finder" version 0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-field-finder.php" instead of "cff.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin65 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1112265

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected