Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.18ms] Passed 4 tests
A check of server-side resources used by Custom Field Builder - WordPress custom fields plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 44.89 ▲3.31 |
Dashboard /wp-admin | 3.50 ▲0.19 | 50.92 ▲1.65 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 54.07 ▲3.67 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 97.90 ▼5.70 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 39.55 ▲0.04 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Field Builder - WordPress custom fields plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲186 | 14.92 ▲0.55 | 1.68 ▼0.18 | 44.86 ▲1.20 |
Dashboard /wp-admin | 2,356 ▲179 | 6.37 ▲0.67 | 112.44 ▲16.99 | 41.32 ▲1.03 |
Posts /wp-admin/edit.php | 2,278 ▲178 | 3.51 ▲1.49 | 51.49 ▲8.87 | 32.87 ▼5.92 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 18.19 ▼4.91 | 599.18 ▼97.77 | 43.08 ▼17.85 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.35 ▲0.16 | 83.33 ▼34.56 | 44.05 ▼5.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 9× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/custom-field-builder/views/textarea.php
- > /wp-content/plugins/custom-field-builder/views/checkbox_group.php
- > /wp-content/plugins/custom-field-builder/views/media.php
- > /wp-content/plugins/custom-field-builder/views/textbox.php
- > /wp-content/plugins/custom-field-builder/views/post_relationship.php
- > /wp-content/plugins/custom-field-builder/views/repeater.php
- > /wp-content/plugins/custom-field-builder/views/logic.php
- > /wp-content/plugins/custom-field-builder/views/select.php
- > /wp-content/plugins/custom-field-builder/views/color_picker.php
- 108× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/custom-field-builder/views/logic.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/custom-field-builder/views/logic.php on line 9
- > PHP Notice
Undefined variable: field in wp-content/plugins/custom-field-builder/views/checkbox_group.php on line 4
- > PHP Notice
Undefined variable: field in wp-content/plugins/custom-field-builder/views/textarea.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/custom-field-builder/views/repeater.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/custom-field-builder/views/editor.php:8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/custom-field-builder/views/post_relationship.php on line 8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/custom-field-builder/views/checkbox_group.php on line 9
- > PHP Notice
Undefined variable: field in wp-content/plugins/custom-field-builder/views/date_picker.php on line 4
- > PHP Notice
Undefined variable: field in wp-content/plugins/custom-field-builder/views/checkbox_group.php on line 8
- > PHP Notice
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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 17 tag instead of maximum 10
custom-field-builder/custom-field-builder.php Passed 13 tests
The main file in "Custom Field Builder - WordPress custom fields plugin" v. 1.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
53 characters long description:
Create and manage custom fields simply for your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,190 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 215 | 27 | 1,043 |
SVG | 2 | 0 | 2 | 145 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 1 | 5.88% |
▷ Concrete classes | 16 | 94.12% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 4 | 7.02% |
▷ Public methods | 45 | 78.95% |
▷ Protected methods | 4 | 7.02% |
▷ Private methods | 8 | 14.04% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 5 | |
▷ Global constants | 5 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/close.png | 0.87KB | 0.46KB | ▼ 46.95% |