10% all-custom-fields-groups

Code Review | All custom fields & groups

WordPress plugin All custom fields & groups scored 10% from 54 tests.

About plugin

  • Plugin page: all-custom-fields...
  • Plugin version: 1.05
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4+
  • WordPress version: 6.3.1
  • First release: Apr 25, 2019
  • Latest release: Jul 30, 2022
  • Number of updates: 43
  • Update frequency: every 27.7 days
  • Top authors: ttodua (69.77%)puvoxsoftware (32.56%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 997 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
    • > Error in wp-content/plugins/all-custom-fields-groups/library_wp.php+2677
    Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/all-custom-fields-groups/library_wp.php:2677
    Stack trace:
    #0 wp-content/plugins/all-custom-fields-groups/library_wp.php(2611): Puvox\wp_plugin->is_not_bulk_activation()
    #1 wp-includes/class-wp-hook.php(312): Puvox\wp_plugin->Puvox\{closure}()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/includes/plugin.php(720): do_action()

Server metrics [RAM: ▲0.41MB] [CPU: ▼2.72ms] Passed 4 tests

Analyzing server-side resources used by All custom fields & groups
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4244.82 ▲6.22
Dashboard /wp-admin3.71 ▲0.4046.86 ▼3.29
Posts /wp-admin/edit.php3.76 ▲0.4045.65 ▼1.30
Add New Post /wp-admin/post-new.php6.35 ▲0.4686.23 ▼12.23
Media Library /wp-admin/upload.php3.63 ▲0.4039.77 ▲5.96
All custom fields & groups /wp-admin/options-general.php?page=all-custom-fields-groups3.6041.46

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables
wp_all_custom_fields_groups__errors_log
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
all-custom-fields-groups
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for All custom fields & groups
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.34 ▼0.891.83 ▲0.1446.29 ▼5.44
Dashboard /wp-admin2,216 ▲255.88 ▼0.03107.57 ▲2.3744.28 ▲0.73
Posts /wp-admin/edit.php2,098 ▲92.00 ▼0.0240.86 ▲0.1831.46 ▼4.00
Add New Post /wp-admin/post-new.php1,520 ▲117.63 ▼5.66672.97 ▲66.0062.86 ▲14.24
Media Library /wp-admin/upload.php1,389 ▲14.22 ▼0.1898.90 ▼3.5339.62 ▼4.69
All custom fields & groups /wp-admin/options-general.php?page=all-custom-fields-groups9522.1637.0751.10

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
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_all_custom_fields_groups__errors_log
  • The uninstall procedure has failed, leaving 7 options in the database
    • all-custom-fields-groups
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/all-custom-fields-groups/library_wp.php:25

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

all-custom-fields-groups/index.php 92% from 13 tests

"All custom fields & groups" version 1.05's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("all-custom-fields-groups.php" instead of "index.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin3,607 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31,2645,0993,599
CSS1108

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 1,076)
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity347.80
▷ Minimum class complexity16.00
▷ Maximum class complexity1,076.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods850
▷ Static methods10212.00%
▷ Public methods84399.18%
▷ Protected methods00.00%
▷ Private methods70.82%
Functions89
▷ Named functions00.00%
▷ Anonymous functions89100.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin