Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.10ms] Passed 4 tests
Analyzing server-side resources used by Gutenberg Custom Fields
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 51.07 ▲9.70 |
Dashboard /wp-admin | 3.41 ▲0.10 | 50.06 ▲0.20 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 54.17 ▼0.58 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 90.77 ▼17.57 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 43.10 ▲5.57 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Gutenberg Custom Fields
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.26 ▼1.42 | 1.87 ▲0.13 | 43.02 ▼4.54 |
Dashboard /wp-admin | 2,219 ▲28 | 5.77 ▲0.89 | 103.65 ▼1.75 | 39.97 ▼4.14 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.03 ▼0.01 | 39.82 ▼2.98 | 35.75 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,548 ▲29 | 24.73 ▲1.61 | 726.55 ▲107.51 | 38.33 ▼15.72 |
Media Library /wp-admin/upload.php | 1,401 ▲19 | 4.24 ▲0.10 | 100.87 ▲0.58 | 50.20 ▼1.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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 items
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gutenberg-custom-fields/lib/fields-script.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gutenberg-custom-fields/lib/hacks.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/gutenberg-custom-fields/lib/endpoint.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gutenberg-custom-fields/lib/hacks.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gutenberg-custom-fields/lib/i18n-script.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gutenberg-custom-fields/languages/gcf-translations.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gutenberg-custom-fields/lib/config-app-page.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gutenberg-custom-fields/lib/config-app-script.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gutenberg-custom-fields/lib/register-templates.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gutenberg-custom-fields/lib/custom-post-type.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: gutenberg
gutenberg-custom-fields/gutenberg-custom-fields.php Passed 13 tests
"Gutenberg Custom Fields" version 1.5.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
32 characters long description:
Custom Fields, The Gutenberg way
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin474 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 105 | 147 | 463 |
CSS | 2 | 0 | 0 | 6 |
JavaScript | 3 | 0 | 17 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 1 | 6.25% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin