Benchmarks
Plugin footprint 83% 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.00MB] [CPU: ▼5.31ms] Passed 4 tests
Analyzing server-side resources used by Ultimate Field Collections (UFC) – Field & Content Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.36 ▼6.68 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.81 ▼3.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.48 ▲0.88 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.33 ▼11.04 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.96 ▼0.52 |
Server storage [IO: ▲20.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 416 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Ultimate Field Collections (UFC) – Field & Content Manager: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 14.84 ▲0.47 | 1.79 ▼0.02 | 39.67 ▼4.97 |
Dashboard /wp-admin | 2,206 ▲18 | 4.88 ▲0.01 | 107.94 ▼7.62 | 37.22 ▼4.90 |
Posts /wp-admin/edit.php | 2,086 ▼0 | 2.01 ▼0.00 | 40.05 ▼0.54 | 34.53 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,523 ▲3 | 23.24 ▲0.38 | 662.56 ▼4.89 | 60.58 ▲4.07 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.23 ▲0.01 | 94.94 ▼3.01 | 42.05 ▲0.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% 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 0% 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
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ultimate-field-collections/templates/ufc-save-field-group-settings-tab.php
- > /wp-content/plugins/ultimate-field-collections/templates/ufc-save-field-group-post-meta-tab.php
- 374× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: field_required in wp-content/plugins/ultimate-field-collections/templates/post-meta-edit-view/color_picker.php on line 5
- > PHP Notice
Undefined variable: field_required in wp-content/plugins/ultimate-field-collections/templates/post-meta-edit-view/relationship.php on line 5
- > PHP Notice
Undefined variable: field_name in wp-content/plugins/ultimate-field-collections/templates/post-meta-edit-view/checkbox.php on line 8
- > PHP Notice
Undefined variable: field_key in wp-content/plugins/ultimate-field-collections/templates/post-meta-edit-view/message.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/ultimate-field-collections/templates/field-edit-view/file.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/ultimate-field-collections/templates/field-edit-view/password.php:2
- > PHP Notice
Undefined variable: field_key in wp-content/plugins/ultimate-field-collections/templates/post-meta-edit-view/wysiwyg.php on line 6
- > PHP Notice
Undefined variable: field_type in wp-content/plugins/ultimate-field-collections/templates/post-meta-edit-view/link.php on line 3
- > PHP Notice
Undefined variable: field_required in wp-content/plugins/ultimate-field-collections/templates/post-meta-edit-view/user.php on line 21
- > PHP Notice
Undefined variable: field_required in wp-content/plugins/ultimate-field-collections/templates/post-meta-edit-view/file.php on line 16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (16 tag instead of maximum 10)
ultimate-field-collections/ultimate-field-collections.php 92% from 13 tests
The main PHP file in "Ultimate Field Collections (UFC) – Field & Content Manager" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin84,506 lines of code in 356 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 15 | 0 | 0 | 52,565 |
JavaScript | 237 | 2,328 | 2,558 | 14,519 |
PHP | 73 | 1,388 | 958 | 9,119 |
CSS | 22 | 935 | 265 | 5,210 |
Markdown | 8 | 804 | 0 | 3,077 |
JSON | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 72.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 250.00 |
Average method complexity | 6.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 62 | 96.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.12% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
32 PNG files occupy 0.23MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/css/libs/select2/select2.png | 0.51KB | 0.99KB | 0.00% |
includes/js/libs/ckeditor/skins/moono-lisa/images/lock.png | 0.49KB | 0.17KB | ▼ 64.82% |
includes/css/libs/images/ui-icons_777620_256x240.png | 4.56KB | 4.18KB | ▼ 8.31% |
includes/js/libs/ckeditor/skins/moono-lisa/images/hidpi/lock.png | 1.04KB | 0.40KB | ▼ 61.68% |
includes/js/libs/ckeditor/skins/moono-lisa/images/refresh.png | 0.74KB | 0.33KB | ▼ 56.01% |