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.13MB] [CPU: ▼1.59ms] Passed 4 tests
Analyzing server-side resources used by Custom Fields for Gutenberg
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.06 ▲0.17 |
Dashboard /wp-admin | 3.46 ▲0.16 | 47.11 ▼6.56 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 45.45 ▲0.49 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 86.51 ▲1.96 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.27 ▼0.46 |
Custom Fields Gutenberg /wp-admin/options-general.php?page=g7g-cfg | 3.35 | 30.88 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Fields for Gutenberg
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.07 | 1.59 ▼0.10 | 41.26 ▲3.03 |
Dashboard /wp-admin | 2,196 ▲19 | 5.77 ▲0.19 | 83.76 ▼17.14 | 37.49 ▼4.85 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.03 | 33.97 ▼8.64 | 36.77 ▲0.23 |
Add New Post /wp-admin/post-new.php | 6,270 ▲4,744 | 25.76 ▲2.03 | 960.79 ▲269.64 | 62.15 ▲5.92 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.22 ▼0.07 | 98.46 ▲0.55 | 44.60 ▼0.97 |
Custom Fields Gutenberg /wp-admin/options-general.php?page=g7g-cfg | 919 | 2.14 | 38.41 | 43.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
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
7 plugin tags: box, gutenberg, custom fields, display, meta box...
custom-fields-gutenberg/custom-fields-gutenberg.php Passed 13 tests
"Custom Fields for Gutenberg" version 2.3.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
Restores the Custom Field meta box for the Gutenberg Block Editor.
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
Good job! No executable or dangerous file extensions detected3,339 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 7 | 453 | 40 | 602 |
CSS | 3 | 10 | 2 | 49 |
JavaScript | 2 | 3 | 2 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 39 | |
▷ Named functions | 39 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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