10% custom-field-taxonomies

Code Review | Custom Field Taxonomies

WordPress plugin Custom Field Taxonomies scored10%from 54 tests.

About plugin

  • Plugin page: custom-field-taxo...
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.4
  • WordPress version: 6.3.1
  • First release: Feb 4, 2009
  • Latest release: Sep 26, 2012
  • Number of updates: 155
  • Update frequency: every 8.6 days
  • Top authors: scribu (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /15,216 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/custom-field-taxonomies/custom-field-taxonomies.php+25
    Non-static method CFT_Admin::init() should not be called statically

Server metrics [RAM: ▼1.78MB] [CPU: ▼53.33ms] Passed 4 tests

This is a short check of server-side resources used by Custom Field Taxonomies
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.84 ▼0.41
Dashboard /wp-admin2.16 ▼1.147.75 ▼48.43
Posts /wp-admin/edit.php2.17 ▼1.197.46 ▼47.44
Add New Post /wp-admin/post-new.php2.16 ▼3.727.75 ▼91.00
Media Library /wp-admin/upload.php2.17 ▼1.067.83 ▼26.43

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Field Taxonomies
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▼0.381.74 ▼0.2637.87 ▼2.04
Dashboard /wp-admin2,198 ▲215.58 ▼0.0990.12 ▼4.6540.54 ▼0.92
Posts /wp-admin/edit.php2,097 ▼32.00 ▲0.0436.72 ▼0.8231.75 ▼1.56
Add New Post /wp-admin/post-new.php1,526 ▼717.69 ▼5.81650.67 ▼31.7351.63 ▼12.62
Media Library /wp-admin/upload.php1,400 ▲34.24 ▼0.0797.00 ▼7.1641.91 ▼4.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/custom-field-taxonomies/custom-field-taxonomies.php+25
    Non-static method CFT_Admin::init() should not be called statically
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-field-taxonomies/scb/Widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/custom-field-taxonomies/custom-field-taxonomies.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/custom-field-taxonomies/scb/BoxesPage.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: taxonomy, meta, metadata, custom fields

custom-field-taxonomies/custom-field-taxonomies.php Passed 13 tests

Analyzing the main PHP file in "Custom Field Taxonomies" version 2.0.3
59 characters long description:
Convert custom fields to tags, categories or taxonomy terms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,564 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP125702891,522
PO File1142142

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 complexity10.95
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes20
▷ Abstract classes525.00%
▷ Concrete classes1575.00%
▷ Final classes00.00%
Methods160
▷ Static methods5433.75%
▷ Public methods12779.38%
▷ Protected methods2415.00%
▷ Private methods95.62%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin