68% customizing

Code Review | Customizing - Post Types, Taxonomies & Fields

WordPress plugin Customizing - Post Types, Taxonomies & Fields scored68%from 54 tests.

About plugin

  • Plugin page: customizing
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Sep 17, 2019
  • Latest release: Dec 29, 2020
  • Number of updates: 47
  • Update frequency: every 10.0 days
  • Top authors: Alfredo J P Barbosa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /805 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.58MB] [CPU: ▼29.06ms] Passed 4 tests

Server-side resources used by Customizing - Post Types, Taxonomies & Fields
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.96 ▼3.85
Dashboard /wp-admin3.41 ▲0.1029.59 ▼19.09
Posts /wp-admin/edit.php3.41 ▲0.0529.42 ▼18.47
Add New Post /wp-admin/post-new.php3.41 ▼2.4828.32 ▼73.78
Media Library /wp-admin/upload.php3.41 ▲0.1827.84 ▼4.90
Customizing Settings /wp-admin/admin.php?page=customizing-settings3.4127.51
All Custom Boxes /wp-admin/edit.php?post_type=cff-custom-box3.4126.39
All Custom Taxonomies /wp-admin/edit.php?post_type=cff-custom-taxonomy3.4126.82
All Custom Types /wp-admin/edit.php?post_type=cff-custom-type3.4126.57

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 10 new options
New WordPress options
cff-custom-user-boxes
cff-custom-boxes
widget_recent-posts
can_compress_scripts
widget_recent-comments
cff-custom-types
cff-custom-taxonomies
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Customizing - Post Types, Taxonomies & Fields
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲10813.16 ▼1.521.69 ▼0.2044.77 ▼4.32
Dashboard /wp-admin2,249 ▲614.89 ▼0.1598.94 ▼10.3541.08 ▼3.65
Posts /wp-admin/edit.php2,139 ▲502.23 ▲0.2636.26 ▼5.2334.06 ▼1.75
Add New Post /wp-admin/post-new.php1,555 ▲2723.20 ▲4.77580.74 ▼86.9633.88 ▼15.51
Media Library /wp-admin/upload.php1,428 ▲464.17 ▼0.02101.84 ▲2.9342.90 ▲0.20
Customizing Settings /wp-admin/admin.php?page=customizing-settings9021.8124.3927.39
All Custom Boxes /wp-admin/edit.php?post_type=cff-custom-box1,0972.1629.3028.62
All Custom Taxonomies /wp-admin/edit.php?post_type=cff-custom-taxonomy1,1032.1732.3427.09
All Custom Types /wp-admin/edit.php?post_type=cff-custom-type1,0972.1732.9830.62

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
    • > Notice in wp-content/plugins/customizing/includes/custom-settings.php+53
    Undefined index: menu
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=cff-custom-type
    • > Notice in wp-content/plugins/customizing/includes/custom-settings.php+53
    Undefined index: menu
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=cff-custom-type
    • > Notice in wp-content/plugins/customizing/includes/custom-settings.php+69
    Undefined index: icon
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=cff-custom-type
    • > Notice in wp-content/plugins/customizing/includes/custom-settings.php+70
    Undefined index: position
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/custom-settings.php+104
    Undefined index: slabel
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/fields-functions.php+33
    Undefined index: classes
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/fields-functions.php+45
    Undefined index: span
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/fields-functions.php+54
    Undefined index: label
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/fields-functions.php+191
    Undefined index: repeatable
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+57
    Undefined index: group
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+61
    Undefined index: index
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+153
    Undefined index: multiple
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+153
    Undefined index: readonly
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+153
    Undefined index: required
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+153
    Undefined index: disabled
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+153
    Undefined index: autofocus
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+159
    Undefined index: placeholder
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+159
    Undefined index: pattern
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+159
    Undefined index: min
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+159
    Undefined index: max
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+159
    Undefined index: step
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+162
    Undefined index: autocomplete
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+178
    Undefined index: onblur
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+178
    Undefined index: onchange
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+178
    Undefined index: oncontextmenu
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+178
    Undefined index: onfocus
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+178
    Undefined index: oninput
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+178
    Undefined index: oninvalid
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+178
    Undefined index: onreset
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+178
    Undefined index: onsearch
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+178
    Undefined index: onselect
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=customizing-settings
    • > Notice in wp-content/plugins/customizing/includes/functions.php+178
    Undefined index: onsubmit
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=cff-custom-type
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/customizing/includes/custom-types.php+277
    Invalid argument supplied for foreach()

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
The following issues need your attention
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/customizing/includes/custom-taxonomies.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/customizing/includes/custom-types.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customizing/includes/meta-boxes.php:75
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customizing/includes/fields-functions.php:72
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customizing/includes/user-meta-boxes.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customizing/includes/custom-settings.php:75
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/customizing/includes/custom-user-boxes.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cff_add_custom_field() in wp-content/plugins/customizing/includes/custom-fields.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/customizing/includes/custom-boxes.php:31

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 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: type, field, post, taxonomy, custom

customizing/customizing.php Passed 13 tests

"Customizing - Post Types, Taxonomies & Fields" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
Custom post types, taxonomies and fields for WordPress.

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
No dangerous file extensions were detected2,186 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP121344912,004
CSS146143
JavaScript17039

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions70
▷ Named functions6998.57%
▷ Anonymous functions11.43%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin