Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼6.39ms] Passed 4 tests
Server-side resources used by Meta Field Block
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 32.32 ▼5.97 |
Dashboard /wp-admin | 3.45 ▲0.11 | 44.15 ▼19.17 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 45.88 ▼2.68 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 89.20 ▲2.25 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 37.81 ▲5.28 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Meta Field Block
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲68 | 13.31 ▼1.12 | 1.67 ▼0.37 | 43.18 ▼6.34 |
Dashboard /wp-admin | 2,203 ▲15 | 4.87 ▼1.15 | 102.37 ▼3.36 | 41.51 ▼0.95 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▲0.00 | 40.13 ▲3.20 | 36.42 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,683 ▲166 | 22.00 ▲4.19 | 686.50 ▲21.99 | 38.09 ▼19.43 |
Media Library /wp-admin/upload.php | 1,382 ▼0 | 4.22 ▲0.01 | 95.68 ▼1.14 | 41.33 ▼0.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
The SRP test was a success
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: custom field, acf, blocks, meta field, gutenberg
display-a-meta-field-as-block/meta-field-block.php 77% from 13 tests
"Meta Field Block" version 1.1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("5.8.0" instead of "5.8")
- Requires PHP: Required version does not match the one declared in readme.txt ("7.0.0" instead of "7.0")
- Main file name: Name the main plugin file the same as the plugin slug ("display-a-meta-field-as-block.php" instead of "meta-field-block.php")
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
Everything looks great! No dangerous files found in this plugin830 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 168 | 335 | 721 |
JSON | 1 | 0 | 0 | 107 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 23 | 79.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 20.69% |
Functions | 16 | |
▷ Named functions | 5 | 31.25% |
▷ Anonymous functions | 11 | 68.75% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin